I have installed VirtualBox through the software centre, but when I try to start a VM, I get the following error:
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 by executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
I already updated my dkms
and installed linux-headers
, but this /etc/init.d/vboxdrv
doesn't exist.
I have been googling but I can't find an answer.
I also encountered this issue several times once I upgrade my linux kernel.
What I did:
Reconfigure dkms and load module:
Then VirtualBox works. No computer reboot needed.
Here's EXACTLY how to do it on 12.10:
Make sure there are no traces of dkms, (virtualbox/ virtualbox-4.2), linux generic headers (..17):
***Replace virtualbox-4.2 with the version you have already installed. If you haven't installed it yet then proceed to step 2.
sudo apt-get purge virtualbox-4.2 dkms linux-headers-$(uname -r)
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install virtualbox-4.2
You MUST install the linux headers BEFORE virtualbox otherwise the VBox installation will error when trying to set up the vboxdrv section because the linux headers aren't installed.
Reinstall "virtualbox-dkms"
It worked for me.
Should peruse /var/log/vbox-install.log file to determine the issue. If the problem persists, you may want to download and install the latest v4.2.2 version directly from https://www.virtualbox.org/wiki/Downloads (for kernel 3.6.* and below). Good luck.
I had the same problem and I solved with the installation of the kernel headers.
After the installation of the headers, DKMS was set-up properly and Virtualbox just worked after a reboot.
Still, there is no vboxdrv in /etc/init.d.
Note: the package I initially installed was virtualbox (non ose):
I'm on Ubuntu 12.04 64-bit and encountered exactly this problem. I did all the recommended stuff listed here (uninstall, re-install headers, dkms, etc) and still couldn't get it to work.
What finally worked was going to the virtualbox website (https://www.virtualbox.org/wiki/Linux_Downloads), downloading the package and installing it via:
Then I ran:
And it worked like a charm.
With Ubuntu 12.04 I was not able to solve it via standard repositories. I had to download Virtualbox from its website and use version 4.3
VirtualBox Installation
Open the terminal and issue these commands for Ubuntu 12.10/Linux Mint:
Web: http://www.upubuntu.com/2012/10/virtualbox-424-released-ppa.html
what i found instead is that if you run
before running virtualbox, you will not have that sign
so I just add
in /
which is equivalent to run
after system start
1) If you have not yet installed DKMS run this command
If is already installed resintallation should fix the problem
2) After the (re)installation process you should see something similar to this
vboxnetflt.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.5.0-61-generic/updates/dkms/
vboxpci.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.5.0-61-generic/updates/dkms/
depmod.........
DKMS: install completed. * Stopping VirtualBox kernel modules [ OK ] * Starting VirtualBox kernel modules [ OK ] Setting up virtualbox-qt (4.1.12-dfsg-2ubuntu0.10) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place
3) Close VirtualBox and wait for at least 10 seconds for the daemon to shutdown.
4) Open VirtualBox again and Start the machine, it should be fixed