Solving VirtualBox problem in Ubuntu Gnome Remix 12.10

Written by on Tuesday October 30, 2012 - Permalink -
imgvirtualbox1Recently, I installed in my new notebook the Ubuntu Gnome Remix 12.10. Its a fantastic remix from Ubuntu, I am completely in love with this version - although sometimes I get some weird bugs related to package installations. The most recent problem I had was related to Virtualbox. I installed it from apt-get and it looked ok, but when I tried to start the newly created VM I got this 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 did some Googling but nothing seemed to work... This "/etc/init.d/vboxdrv" file didn't exist. I found just a "virtualbox" script inside init.d folder, so after trying to execute it, I got this message:
erika@velvet:/etc/init.d$ sudo virtualbox setup
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-dkms package and the appropriate headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.
What I did:
sudo apt-get install linux-headers-generic virtualbox-ose-dkms
So, after this, I ran:
sudo dpkg-reconfigure virtualbox-dkms

sudo dpkg-reconfigure virtualbox
And the problem was solved. Hope this can help someone out there!
comments powered by Disqus