Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried to use my Virtual Box and this is the error I received - (I just updated to the new Ubuntu also) and I am VERY new at this Linux OS.

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. 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.

share|improve this question
add comment

10 Answers 10

Most probably all you have to do is run

sudo apt-get install dkms

(or install dkms from the software center)

and then run

sudo /etc/init.d/vboxdrv setup

and write your password.

share|improve this answer
3  
vboxdrv doesn't exist. –  weberc2 Jan 10 '13 at 23:01
1  
@weberc2 VirtualBox OSE from Ubuntu repo doesn't have it, the virtualbox.org version does have it. $ dpkg -S /etc/init.d/vboxdrv virtualbox-4.2: /etc/init.d/vboxdrv –  gertvdijk Jan 10 '13 at 23:19
    
@gertvdijk gotcha. I'm going to try some of the other answers in this question first, but failing that I'll use the one from virtualbox.org. Why are so many of the apps in the Ubuntu repo are crippled when the generic versions are not? /rant –  weberc2 Jan 10 '13 at 23:44
add comment

here is solution which works for me on 12.10:

  1. Install the latest version of virtualbox according your architecture and distribution version from https://www.virtualbox.org/wiki/Linux_Downloads

  2. run sudo apt-get install build-essential linux-headers-`uname -r`

  3. run sudo /etc/init.d/vboxdrv setup

Last two steps quoted from one of the comments to the bug on the same theme - https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1016165

share|improve this answer
add comment

Re-install virtualbox-dkms package first

sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms

After that You can enable it manually

sudo modprobe vboxdrv
sudo modprobe vboxnetflt
share|improve this answer
2  
sudo modprobe vboxnetflt results in FATAL: Module vboxnetflt not found. same for vboxdrv –  weberc2 Jan 10 '13 at 23:38
1  
Also, when installing virtualbox-dkms, I get non-error output like this: Module build for the currently running kernel was skipped since the kernel source for this kernel does not seem to be installed. –  weberc2 Jan 10 '13 at 23:39
    
Thanks just doing this solved it for me: sudo apt-get remove virtualbox-dkms / sudo apt-get install virtualbox-dkms –  David Sep 18 '13 at 20:15
    
On 13.10, with virtualbox-qt package installed this was the best solution for me, but with sudo apt-get install dkms virtualbox-dkms. Those packages installed the modules automatically, no other command was necessary. –  Nathan Kidd Mar 8 at 15:55
add comment

On 12.10, these solutions all failed for me. However the following worked:

  1. sudo gedit /etc/apt/sources.list.d/vbox.list and paste in this line, then save:

    deb http://download.virtualbox.org/virtualbox/debian quantal contrib
    
  2. run sudo apt-get update && sudo apt-get -y upgrade to update your machine to the latest

  3. Run sudo apt-get remove virtualbox*. Then install Oracle's version: sudo apt-get install virtualbox-4.2

Should work now. Don't forget to download the extension pack from http://www.virtualbox.org as well.

share|improve this answer
    
I'm running 12.10 64bit and this worked for me. –  greg Apr 1 '13 at 6:59
    
13.04 and works! –  asymptotically Jul 15 '13 at 18:09
add comment

I have the same issue and solved by these two steps:

sudo apt-get install linux-headers-`uname -r`

then

/etc/init.d/vboxdrv setup
share|improve this answer
add comment

Did you install Virtualbox by downloading it from some web site?

If so, I'd recommend you to install it using the Ubuntu Software Center instead (type Virtualbox and click on install and you're set).

If you have some terminal skills, type this into the console:

sudo apt-get install virtualbox-ose

If you still want to do weird stuff to you computer/OS, then install the dependencies by hand: virtualbox-ose-dkms, libgl1-mesa-glx

share|improve this answer
    
Thanks, I have no terminal skills but am going to try and learn some :) and I did not install it, but am heading to try the software center. I was getting an error when I tried to update the new Virtualbox so maybe that will help also. I have the Oracle Virtualbox will go into it and see what it has... –  Cyndi May 8 '11 at 20:35
add comment

I found this works for me (quoted from virtualbox.org forum):

sudo apt-get install dkms build-essential linux-headers-generic

If you want further granularity you can install the headers as such:

sudo apt-get install linux-headers-$(uname -r)

After this step reinstall the virtualbox related packages.

Some people in the forum said that only the second version worked for them.

share|improve this answer
add comment

I think Chriskin provided the answer, but you also want to make sure you have the proper Linux headers installed, as husni pointed out:

sudo apt-get install linux-headers-`uname -r`

then

sudo apt-get install dkms
sudo /etc/init.d/vboxdrv setup
share|improve this answer
1  
This doesn't work. The /etc/init.d/vboxdrv file still doesn't exist. It was a nice try though. –  weberc2 Jan 10 '13 at 23:47
add comment

I had exactly the same problem. My solution was to totally reinstall VirtualBox, with the following commands:

1) Delete (backup) the hidden VirutalBox directory in your home directory

mv ~/.VirtualBox ~/.VirtualBox-backup

2) Reinstall VirtualBox

sudo apt-get purge virtualbox
sudo apt-get install virtualbox

3) Run VirtualBox and set it (Virtual Images) up again.

share|improve this answer
add comment

This worked for me:

wget -O /tmp/virtualbox.patch 'http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=99;filename=vbox-wheezy.patch;att=1;bug=696011'
cd /usr/src/virtualbox-4.1.12/
patch -p4 < /tmp/virtualbox.patch
dkms autoinstall
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.