按照网上的提示 执行
sudo /etc/init.d/vboxdrv setup
有人这样做就好了,但我执行时却出现了错误
Stopping VirtualBox kernel module [确定]
Recompiling VirtualBox kernel module [失败]
(Look at /var/log/vbox-install.log to find out what went wrong)
打开/var/log/vbox-install.log 看到Makefile:147: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again
出现Kernel driver not installed (rc=-1908)
错误的原因是,没有成功编译供virtualbox使用的内核模块。
解决办法:
sudo apt-get install build-essential sudo apt-get install linux-headers-`uname -r`
然后在执行
sudo /etc/init.d/vboxdrv setup