在ubuntu上用virtualbox虚拟机来装的windows,一切正常,可重启后运行虚拟机出现Kernel driver not installed (rc=-1908)!
卸载,重新安装后正常,但只要重启就出错
开始Google吧,找到一个答案:
原因是缺少module-assistant模块,赶快安装吧!
<pre>sudo apt-get install module-assistant\r\nsudo modprobe vboxnetflt</pre>
错误没有了,虚拟机也可以正常启动了!
By Debian WIKI:\r\nmodule-assistant is an extremely powerful, but underdocumented Tool to build Debian kernel modules. Module assistant aims to facilitate the process of building kernel modules from source. It uses source code from apt repositories and produces binary .deb packages.
当时虚拟机正常运行,但重新启动后,错误继续出现,还是好好看下提示的具体错误吧:
<pre>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''
nas 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. </pre>
说是要现安装DKMS包,然后重新编译下vboxdrv。
<pre>sudo aptitude update
sudo aptitude install dkms
sudo /etc/init.d/vboxdrv setup</pre>
虚拟机能正常工作了,马上重启下看看,OK,一切正常了!
转载于:https://blog.51cto.com/dongyulong/388578