第二次搞這個了,就是又忘記了,這次要記下。
一般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
詳細參考:這裏