virtualbox中centos装VBOXADDITIONS的注意事项

第二次搞这个了,就是又忘记了,这次要记下。

一般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.el5

Building 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

详细参考:这里

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值