2011年12月12日 星期一

在CentOS 5下安装VirtualBox的增强功能

資料來源 :

http://parazzi.me/2010/10/virtualbox-centos-5-to-install-the-enhancements.html

在CentOS 5下安装VirtualBox的增强功能

我的CentOS安装的时候只安装了GNOME,也就是基本安装,其他的一概没有安装。
当在VirtualBox中安装好CentOS好,如果直接安装VirtualBox的Guest Additions时,会提示“Please install the build and header files for your current Linux kernel.”。需要安装内核开发包和gcc包。
在CentOS下安装内核开发包和gcc包的方法如下,在终端中输入
[root@localhost user]# yum install kernel-devel
[root@localhost user]# yum install gcc

然后执行:
[root@localhost user]# ln -s /usr/src/kernels/2.6.18-92.1.18.el5-i686 /usr/src/linux
[root@localhost user]# sh VBoxLinuxAdditions-x86.run

运行到这里出现Building theVirtualBox Guest Additionskernel modules …fail!
查看错误日志文件提示:make command not find,看来是还没有安装make,继续:
[root@localhost user]# yum install make
[root@localhost user]# sh VBoxLinuxAdditions-x86.run

提示:

Your guest system does not seem to have sufficient OpenGL support to enable
accelerated 3D effects (this requires Linux 2.6.27 or later in the guest
system). This Guest Additions feature will be disabled.
从字面看是说某个功能不被支持,不管它,直接重启。
[root@localhost user]# reboot
重启之后发现一切正常。
本文完。

沒有留言:

張貼留言