命令:
sudo /etc/init.d/vboxdrv setup
输出:
* Uninstalling old VirtualBox DKMS kernel modules * done.
* Trying to register the VirtualBox kernel modules using DKMS
Error! Bad return status for module build on kernel: 2.6.38-12-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/vboxhost/4.0.0/build/ for more information.
* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong
试着手动编译,发现是VirtualBox试图使用linux/autoconf.h,而在较新的Kernel中此文件更改了路径。
解决方法如下:
cd /usr/src/linux-headers-2.6.38-12-generic/include/linux
sudo ln -s ../generated/autoconf.h .
sudo /etc/init.d/vboxdrv setup
对于不同的Linux Kernel 版本,应使用对应的/usr/src下的路径名。
没有评论:
发表评论