You are not logged in.

#1 2023-08-20 08:19:15

keibak
Member
Registered: 2017-05-24
Posts: 48

Virtualbox kernel module is no longer built

Hi,

since the last kernel update to 6.4.11-arch1-1 Virtualbox is no longer starting any machines. It's reporting a missing kernel module:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

'/sbin/vboxconfig'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 

When reinstalling package virutalbox-bin the kernel module fails to install. Interestingly the lts module seems to be fine:

(6/8) Install DKMS modules
==> dkms install --no-depmod vboxhost/7.0.10_non_OSE -k 6.4.11-arch1-1
Error! Bad return status for module build on kernel: 6.4.11-arch1-1 (x86_64)
Consult /var/lib/dkms/vboxhost/7.0.10_non_OSE/build/make.log for more information.
==> WARNING: `dkms install --no-depmod vboxhost/7.0.10_non_OSE -k 6.4.11-arch1-1' exited 10
==> dkms install --no-depmod vboxhost/7.0.10_non_OSE -k 6.1.46-1-lts
==> depmod 6.1.46-1-lts

Any ideas how to work around this?

Offline

#2 2023-08-20 10:30:47

ua4000
Member
Registered: 2015-10-14
Posts: 561

Re: Virtualbox kernel module is no longer built

a) virtualbox-bin is in AUR... it's not an official package...
b) LTS virtualbox module is no help here, you need one for your current kernel
c) https://wiki.archlinux.org/title/VirtualBox presents two ways for current or other kernel with official packages
d) https://axebase.net/blog/2023/08/12/vbo … ux-6-4-10/ suggest it's an virtualbox issue, will be fixed in next built, probably already out ? It says fixed in VBox-Version 7.0.10-2...

Offline

#3 2023-08-20 10:40:26

keibak
Member
Registered: 2017-05-24
Posts: 48

Re: Virtualbox kernel module is no longer built

Corresponding vbox issue [url=https://www.virtualbox.org/ticket/21796]#21796 new defect
unable to build kernel modules with Kernel 6.4.10[/url]

Offline

#4 2023-08-20 14:44:42

tekstryder
Member
Registered: 2013-02-14
Posts: 582

Re: Virtualbox kernel module is no longer built

Virtualbox Ticket:
https://www.virtualbox.org/ticket/21796

Arch Patch:
https://gitlab.archlinux.org/archlinux/ … 7bdcef0bd7

This was fixed in Arch packaged version virtualbox 7.0.10-2.

Will be resolved by Virtualbox proper in 7.0.12, and latest development snapshots & test builds.

Last edited by tekstryder (2023-08-27 16:08:09)

Offline

#5 2023-08-27 00:40:13

drankinatty
Member
From: Nacogdoches, Texas
Registered: 2009-04-24
Posts: 104
Website

Re: Virtualbox kernel module is no longer built

For anyone still using the 6.1.46 version of virtualbox, a simple fix is to add the following to the end of the prepare() function in the PKGBUILD:

    # fix 6.4.10 include requirement
    sed -i 's|#include <linux/inetdevice.h>|&\n#if RTLNX_VER_MIN(6,4,10)\n#include <net/gso.h>\n#endif|' "${_extractdir}/src/vboxhost/vboxnetflt/linux/VBoxNetFlt-linux.c"

This will work for the current and LTS kernels (and any others). The preprocessor conditional conditionally adds the new include only for kernel versions 6.4.10 and later.

Last edited by drankinatty (2023-08-27 00:40:57)


David C. Rankin, J.D.,P.E.

Offline

#6 2023-08-27 00:49:38

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Virtualbox kernel module is no longer built

drankinatty wrote:

For anyone still using the 6.1.46 version of virtualbox

Which is completely off-topic. Don't hijack threads.

Offline

#7 2023-08-29 03:28:24

realasking
Member
Registered: 2023-08-18
Posts: 4

Re: Virtualbox kernel module is no longer built

On archlinux, the kernel modules provided by oracle version virtualbox ( also the vmware ) had failed compiling many times before. So I think that to use linux-lts might be a better choice for non-KVM virtual machine users like us.

Offline

Board footer

Powered by FluxBB