virtualbox 4.08安装虚机Ubuntu11.04增强功能失败解决方法

NongJushi 2011-06-23

在笔记本安装Ubuntu11.04增强功能失败

引用

fuliang@fuliang-VirtualBox:~$sudo/etc/init.d/vboxaddsetup

RemovingexistingVirtualBoxDKMSkernelmodules...done.

RemovingexistingVirtualBoxnon-DKMSkernelmodules...done.

BuildingtheVirtualBoxGuestAdditionskernelmodules

Theheadersforthecurrentrunningkernelwerenotfound.Ifthefollowing

modulecompilationfailsthenthiscouldbethereason.

BuildingthemainGuestAdditionsmodule...done.

Buildingthesharedfoldersupportmodule...done.

BuildingtheOpenGLsupportmodule...done.

Doingnon-kernelsetupoftheGuestAdditions...done.

Youshouldrestartyourguesttomakesurethenewmodulesareactuallyused

在BuildingVirtualBoxGuestAdditionskernelmodules的时候,缺少kernal的头文件,

使用下面的命令安装:

引用

sudoapt-getinstalldkmsbuild-essentiallinux-headers-$(uname-r)

其实build-essentiallinux-headers已经是最新的了,只是缺少dkms(DynamicKernelModuleSupport),当有新的kernal安装的时候,它能让kernal的设备驱动自动的重新构建。

详情见:http://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support

之后再

引用

sudo/etc/init.d/vboxaddsetup

成功:

引用

RemovingexistingVirtualBoxDKMSkernelmodules...done.

RemovingexistingVirtualBoxnon-DKMSkernelmodules...done.

BuildingtheVirtualBoxGuestAdditionskernelmodules...done.

Doingnon-kernelsetupoftheGuestAdditions...done.

Youshouldrestartyourguesttomakesurethenewmodulesareactuallyused

相关推荐

KINGJENSEN / 0评论 2012-04-16