Oracle virtual box error: Kernel driver not installed (rc=-1908) solved.

Image courtesy virtualbox dot org

VirtualBox from Oracle is a great application to run other Operating Systems within the native OS.
We installed virtualbox-4.2_4.2.12-84980~Ubuntu~quantal_amd64.deb on a machine with Ubuntu Gnome 64bit. While it showed no error in installation, but when run, it started to display 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.

So first we installed DKMS by running a command from terminal “Sudo apt-get install dkms”. This installed DKMS. Now as suggested in above error message we tried running ‘sudo /etc/init.d/vboxdrv setup’ and we were provided with another error message: Continue reading