VirtualBox "Kernel driver not installed" error despite running /sbin/vboxconfig

Solution 1:

same problem with me, abort it if you not use vagrant.

the output when i run vagrant up:

The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:

VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.

output VBoxManage --version:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.19.0-47-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/rcvboxdrv setup

         You will not be able to start VMs until this problem is fixed.
5.0.14r105127

output sudo /sbin/rcvboxdrv setup:

Bad argument setup

My problem solved after run this command sudo /usr/lib/virtualbox/vboxdrv.sh setup

$ sudo /usr/lib/virtualbox/vboxdrv.sh setup
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...done.
Starting VirtualBox kernel modules ...done.
$ VBoxManage --version
5.0.14r105127

Solution 2:

You can always use modprobe to add a kernel module. I solved the same problem on my server by doing:

[root@mageia5][/home/afk]# modprobe -a vboxdrv

Solution 3:

I found the following virtualbox dkms related packages:

  • virtualbox-dkms
  • virtualbox-guest-dkms

Did you install these packages?

Solution 4:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.7.1-1-ARCH) or it failed to load. Please recompile the kernel module and install it by sudo

/sbin/vboxconfig

You will not be able to start VMs until this problem is fixed.

The fix for this for me was to install the linux-headers package