第二次搞这个了,就是又忘记了,这次要记下。
一般centos下装VBOXADDITIONS会出现以下问题:
Verifying archive integrity… All good. Uncompressing VirtualBox
4.1.2 Guest Additions for Linux……… VirtualBox Guest Additions installer Removing existing VirtualBox DKMS kernel modules [
OK ] Removing existing VirtualBox non-DKMS kernel modules [ OK
] Building the VirtualBox Guest Additions kernel modules The headers
for the current running kernel were not found. If the following module
compilation fails then this could be the reason. The missing package
can be probably installed with yum install
kernel-devel-2.6.32-100.26.2.el5Building the main Guest Additions module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers Installing X.Org 7.1 modules
[ OK ] Setting up the Window System to use the Guest Additions [
OK ] You may need to restart the hal service and the Window System
(or just restart the guest system) to enable the Guest Additions.Installing graphics libraries and desktop services component[ OK ]
Press Return to close this window…
以上是centos安装VBOXADDITIONS失败的提示。解决办法:
默认安装的CentOS,在安装VBOXADDITIONS前还需要
yum groupinstall “Development Tools”
yum install kernel-devel
最后再装VBOXADDITIONS
如果以上方法还不行的话
yum update
yum install gcc
yum install kernel-uek-devel
详细参考:这里