Making Linux Simple!
Install DKMS-VirtualBox driver not installed: Error after updating to new Linux Kernel
Yesterday I did a post on How to install virtualbox on Ubuntu 9.04 and run WindowsXP as virtual OS. However, today after I upgraded my Linux Kernel I realized that VirtualBox stopped working throwing the error saying Kernel driver not installed (rc=-1908). Also, it was suggested by VirtualBox that installing DKMS package would solve theongrat issue. Let’s see how to correct the error and to make sure that this error doesn’t occur again in future. Following is the error I got:
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. Re-setup the kernel module by executing
‘/etc/init.d/vboxdrv setup’
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

About DKMS
This package contains the framework for the Dynamic Kernel Module. Support (DKMS) method for installing and updating kernel modules.
Solution
Install the DKMS package by typing the follow command at the terminal.
sudo apt-get install dkms
This should install DKMS and should take care of coordinating upgrades of individual applications with upgrades of the linux kernel in future, so they always stay in synch.
However we have to still fix the current virtualbox error. To do so, reinstall VirtualBox. Follow the steps at How to install virtualbox on Ubuntu 9.04 and run WindowsXP as virtual OS.
Don’t worry about your current setting and VMs and Vdi disks. All the settings will be saved. You’ll no more face a similar situation once you have DKMS and wont have to worry about Linux Kernel Upgrade.
Homepage
Related posts:
| Print article | This entry was posted by Vivek on August 5, 2009 at 8:58 pm, and is filed under How-to, Linux, Ubuntu. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
Comments are closed.



















about 1 year ago
Thanks for the DKMS insite. I just re-installed my VirtBox. when I received the error. That did resolve it, but I didnt know the root cause, now I do and I know that DKMS should help keep it from happening again. Great heads up! Thanks!
about 1 year ago
Despite installed DKMS installed my Virtual-Box failed because of the lack of the kernel module.
I did
sudo /etc/init.d/vboxdrv setup
to resolve it.
my 2 cents
brainextender
about 1 year ago
I’ve installed dkms before I upgraded the grub to grub-2, but this is still occured. I’ve tried to re-install the virtualbox but didn’t resolve this problem yet.
about 1 year ago
@rotyyu that is strange coz re-installing should work out of the box. I did a reinstall and it worked. You might want to check the log files of installation for VirtualBox
about 7 months ago
grandioso!!
bastante simple y directo!! estupendo post!!
saludos
about 4 months ago
I just installed Ubuntu 10.04 beta and had the problem with VBox as described above. Followed your instructions and problem solved, Thanks for helping, Stav
about 3 months ago
I had hope, until I got file not found for the DKMS file.
about 3 months ago
I had hope, until I got file not found for the DKMS file.
about 2 months ago
Using Mandriva, I got the error after installing Virtualbox OSE and creating my first machine, then trying to start it. So I installed DKMS package from download. Tried the /etc/init.d/vboxdrv setup command, which failed because of no such prog vboxdrv in that directory. listed directory and found that there is a process called ./virtualbox. executed ./virtualbox restart then ./virtualbox status which said that the kernel module was loaded. re started the Virtual box programme and my Win98 VM started up no problem….so hopefully it's fixed