CalculatešŸ§Forum

VirtualBox modules missing

#1

Hello all, thanks again for this great distro!

VirtualBox was working until a recent upgrade, now I get the following message when I try to open a VM in VirtualBox:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module ...

virtualbox-bin and virtualbox-modules are installed:

 # eix virtualbox
[I] app-emulation/virtualbox-bin
     Installed versions:  6.0.4.128413^m{tbz2}(03:52:52 01/03/19)(additions chm -headless -python -rdesktop-vrdp -sdk -vboxwebsrv PYTHON_TARGETS="python2_7")
[I] app-emulation/virtualbox-modules
     Installed versions:  6.0.4{tbz2}(12:19:47 26/03/19)(-pax_kernel KERNEL="linux")

I tried adding the following to /etc/conf.d/modules

modules="vboxdrv vboxnetflt vboxnetadp vboxpci"

but I get

 # /etc/init.d/modules restart
modules           | * WARNING: you are stopping a boot service
modules           | * Caching service dependencies ...                                                                      [ ok ]
modules           | * Loading module vboxdrv ...
modules           | * Failed to load vboxdrv                                                                                [ !! ]
modules           | * Loading module vboxnetflt ...
modules           | * Failed to load vboxnetflt                                                                             [ !! ]
modules           | * Loading module vboxnetadp ...
modules           | * Failed to load vboxnetadp                                                                             [ !! ]
modules           | * Loading module vboxpci ...
modules           | * Failed to load vboxpci                                                                                [ !! ]
modules           | * Loading kernel modules ...
modules           |modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.19.24-calculate
modules           |modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.19.24-calculate
modules           |modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.19.24-calculate
modules           |modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.19.24-calculate                    [ ok ]

The modules are not there:

 # ls -l /lib/modules/4.19.24-calculate
total 3600
lrwxrwxrwx  1 root root     32 Feb 22 02:15 build -> /usr/src/linux-4.19.24-calculate
drwxr-xr-x 11 root root   4096 Mar  1 16:00 kernel
-rw-r--r--  1 root root 968326 Mar 26 12:20 modules.alias
-rw-r--r--  1 root root 925083 Mar 26 12:20 modules.alias.bin
-rw-r--r--  1 root root  11982 Feb 22 02:14 modules.builtin
-rw-r--r--  1 root root  13221 Mar 26 12:20 modules.builtin.bin
-rw-r--r--  1 root root 330267 Mar 26 12:20 modules.dep
-rw-r--r--  1 root root 454212 Mar 26 12:20 modules.dep.bin
-rw-r--r--  1 root root    344 Mar 26 12:20 modules.devname
-rw-r--r--  1 root root 103133 Feb 22 02:14 modules.order
-rw-r--r--  1 root root    649 Mar 26 12:20 modules.softdep
-rw-r--r--  1 root root 377527 Mar 26 12:20 modules.symbols
-rw-r--r--  1 root root 469385 Mar 26 12:20 modules.symbols.bin
drwxr-xr-x  3 root root   4096 Mar  1 16:24 net
lrwxrwxrwx  1 root root     32 Feb 22 02:15 source -> /usr/src/linux-4.19.24-calculate

I am not sure how to add these, any suggestions would be very welcome! A re-install of virtualbox-bin and virtualbox-modules did not help.

Thanks, Bill

#2

Hi,

do not use virtualbox-bin but virtualbox.

On Calculate virtualbox package have binaries.

Uninstall first virtualbox-bin

emerge -C virtualbox-bin

And install all packages for Virtualbox :

emerge -avq app-emulation/virtualbox app-emulation/virtualbox-extpack-oracle app-emulation/virtualbox-modules app-emulation/virtualbox-additions

Add you in the vboxusers group :

usermod -G vboxusers -a YOURUSERNAME

Reboot or load manually one the modules :

modprobe vboxdrv
modprobe vboxnetflt
modprobe vboxnetadp
modprobe vboxpci

:slight_smile:

Mastodon Mastodon