virtualbox提示Kernel driver not installed (rc=-1908)出错

以前都好好的用virtualbox在ubuntu下开xp系统,但今天开机后却不能运行。显示如下错误:

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.

如果你的系统是ubuntu的可以这样解决:

sudo aptitude update
sudo aptitude install dkms
# ubuntu 12.10后可能要先这样  sudo apt-get install build-essential linux-headers-`uname -r`
sudo /etc/init.d/vboxdrv setup

命令行中会提示:

Stopping VirtualBox kernel module
Recompiling VirtualBox kernel module
Starting VirtualBox kernel module

就可以了。

注意,需要看清楚你的内核和升级的是不是同一个,如不是还需要把old卸载,然后reboot,用新内核再vboxdrv setup