lkubuntu

A listing of random software, tips, tweaks, hacks, and tutorials I made for Ubuntu

Virtualbox shows “Kernel driver not installed”

This error happens when you upgraded to a newer kernel and virtualbox-dkms hasn’t been built for it.

Instead of writing a huge post about the how and when etc…, I’ll just write the solution below (I don’t see a need to add a lot more information anyways):

sudo dpkg-reconfigure virtualbox-dkms
sudo modprobe vboxdrv
sudo modprobe vboxnetadp
sudo modprobe vboxnetflt
sudo modprobe vboxpci

All this does is that it recompiles virtualbox-dkms so that it works on your kernel, and then it loads the VirtualBox kernel modules. After running this code, you should be able to use virtualbox :)

Notice that you don’t need to run the modprobe commands if you’re going to reboot right after (or rather, reboot before you want to use virtualbox).

Advertisements

5 responses to “Virtualbox shows “Kernel driver not installed”

  1. Seegras October 22, 2012 at 8:32 am

    dpkg-reconfigure virtualbox-dkms

    • Anonymous Meerkat October 22, 2012 at 4:39 pm

      Oh right… Thanks, I’ll update the post.

  2. Pingback: Today’s Links | PICwebs

  3. Jason January 31, 2013 at 8:53 pm

    which directory should theses commands run from

    • Anonymous Meerkat January 31, 2013 at 8:54 pm

      Doesn’t matter :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: