Fix VirtualBox Kernel Module Installation Issue on CentOS

centoskernel-modulesvirtualbox

I installed VirtualBox, in the first run i got this warning:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (3.10.0-327.4.4.el7.x86_64) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/rcvboxdrv setup

After launching this command, I got:

sudo /sbin/rcvboxdrv

setup Bad argument setup

I tried another way which is the following commands:

/etc/init.d/vboxdrv setup

bash: /etc/init.d/vboxdrv: No such file or directory

Last way that I tried:

/usr/lib/virtualbox/boxdrv.sh setup

Stopping VirtualBox kernel modules [ OK ]

Uninstalling old VirtualBox DKMS kernel modules [ OK ]

Removing old VirtualBox pci kernel module [ OK ]

Removing old VirtualBox netadp kernel module [ OK ]

Removing old VirtualBox netflt kernel module [ OK ]

Removing old VirtualBox kernel module [ OK ]

Trying to register the VirtualBox kernel modules using DKMSdepmod:
Some Warnings … [ OK ]

Starting VirtualBox kernel modules [FAILED]

What can i try?

Best Answer

I hit the same issue today after upgrading to 5.0.14 (I am on Ubuntu 15.10, using the official Virtualbox apt repo)

I fixed it with:

sudo /usr/lib/virtualbox/vboxdrv.sh setup
Related Question