Does Virtualbox 7.x support Linux Kernel 4.19.x?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
brunni
Posts: 2
Joined: 17. Apr 2024, 13:38

Does Virtualbox 7.x support Linux Kernel 4.19.x?

Post by brunni »

hi all

from my vbox-setup.log in my attempt to upgrade from 6.x to 7.x on Kernel 4.19.312:

Code: Select all

In file included from /tmp/vbox.0/include/iprt/assert.h:45,
                 from /tmp/vbox.0/include/VBox/sup.h:44,
                 from /tmp/vbox.0/SUPDrvInternal.h:49,
                 from /tmp/vbox.0/SUPDrv.c:43:
/tmp/vbox.0/include/VBox/vmm/hm_vmx.h:532:29: error: 'VMX_BF_EPT_PT_0_MASK' undeclared here (not in a function); did you mean 'VMX_BF_EPT_PT_READ_MASK'?
  532 | RT_BF_ASSERT_COMPILE_CHECKS(VMX_BF_EPT_PT_, UINT64_C(0), UINT64_MAX,
      |                             ^~~~~~~~~~~~~~
This person had the same problem with an EOL kernel but 4.19.x is not EOL: forums dot gentoo dot org/viewtopic-p-8771139.html?sid=95fd6a050da46395987dbb665746d030

So does Virtualbox 7.x support Linux kernel 4.19.x? If not, where can I find a list of supported kernels? It seems Oracle itself will not help with this: www dot virtualbox dot org/ticket/17055

Regards,

Michael Brunnbauer
WFV
Posts: 88
Joined: 7. Mar 2016, 13:28
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: ArchLinux; Fedora; Ubuntu; Win7pro64; WinXP
Contact:

Re: Does Virtualbox 7.x support Linux Kernel 4.19.x?

Post by WFV »

where can I find a list of supported kernels?
Oracle kernel support page info is 4yrs old, last update, though most the info is much older...
brunni
Posts: 2
Joined: 17. Apr 2024, 13:38

Re: Does Virtualbox 7.x support Linux Kernel 4.19.x?

Post by brunni »

Thank you. It is indeed probably not the kernel version - something seems to be failing with the new macro check

RT_BF_ASSERT_COMPILE_CHECKS(VMX_BF_EPT_PT_, UINT64_C(0), UINT64_MAX,
(READ, WRITE, EXECUTE, MEMTYPE, IGNORE_PAT, IGN_7, ACCESSED, DIRTY, EXECUTE_USER, IGN_59_11,
SUPER_SHW_STACK, IGN_62_61, SUPPRESS_VE));

in include/VBox/vmm/hm_vmx.h as I get errors for

VMX_BF_EPT_PT_0_MASK
VMX_BF_EPT_PT_1_MASK
VMX_BF_EPT_PT_0_SHIFT
VMX_BF_EPT_PT_1_SHIFT

being undeclared. 0 and 1 in those macro names apparently should be one of items in the fourth argument for RT_BF_ASSERT_COMPILE_CHECKS.

Maybe some unexpected header file on my system causes this (defining READ/WRITE as 0/1?) or my gcc (version 10.4.0) needs upgrading. As I am not running a supported distribution, I'll have to look deeper into this.
multiOS
Volunteer
Posts: 874
Joined: 14. Sep 2019, 16:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WIN11,10, 7, Linux (various)
Location: United Kingdom

Re: Does Virtualbox 7.x support Linux Kernel 4.19.x?

Post by multiOS »

The VirtualBox User Manual (7.0.18), Section 2.4 describes those Linux Host systems and kernel versions officially supported. Kernel '4.x' is still in the supported list.
Post Reply