CentOS5.5中安装VirtualBOX增强工具

发布时间:2022-05-02 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了CentOS5.5中安装VirtualBOX增强工具脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
#sudo sh ./vboxLinuxAddITions.run

提示失败

Building the VirtualBox Guest Additions kernel modules [FaiLED]
Your System does not seem to be set up to build kernel modules.
Look at /VAR/LOG/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can run /etc/init.d/vboxadd SETUP to build them.

#gedit /var/log/vboxadd-install.log 内容

Makefile:23: *** Error: unable to find the sources of your current Linux kernel. SPEcify KERN_DIR=<directory> and run Make again.. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

安装GCC

#yum install gcc

# yum install gcc kernel-devel kernel-headers

重启。

再次安装VBoxLinuxAdditions,OK。

脚本宝典总结

以上是脚本宝典为你收集整理的CentOS5.5中安装VirtualBOX增强工具全部内容,希望文章能够帮你解决CentOS5.5中安装VirtualBOX增强工具所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:CentOSCentOS