`
zllwang
  • 浏览: 46678 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
社区版块
存档分类
最新评论

Windows下VirtualBox中RedHat5.5的增强功能安装

阅读更多

解决Redhat Enterprise Linux 5下VBOXADDITIONS插件kernel modules编译失败的问题

rhel5虽然已经在虚拟机里安装了一段时间了。但是一直没有使用。今天因为Spark XML解析的问题,开了一下虚拟机,发现自己的客户机增强工具包还没有安装好,所以就动手安装了一下,首先是切换到root用户,然后执行./autorun.sh罗,结果提示gksu没有,在红帽的系统里,当然没有这个命令了,况且我本来就是用root执行这个脚本,也没有比较再去获得root权限了,删除之,再次执行,出现了下面的错误信息。提示不能编译内核模块。

[root@rhel VBOXADDITIONS_3.1.4_57640]# ./autorun.sh 
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules     [失败]
(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
)

看log文件之前先看看我的系统版本信息

[leo@rhel ~]$ uname -a
Linux rhel 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

错误日志。提示不能找到内核Source,让指定KERN_DIR。在/usr/src下找了一下,确实没有。准备安装source文件。

[root@rhel VBOXADDITIONS_3.1.4_57640]# cat /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.。 停止。

安装kernel-devel和kernel-headers两个软件包,配置编译环境。

[root@rhel VBOXADDITIONS_3.1.4_57640]# yum install kernel-devel kernel-headers

安装成功后再次编译,编译已经OK了啊。

[root@rhel VBOXADDITIONS_3.1.4_57640]# ./autorun.sh 
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules

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.

Building the main Guest Additions module                   [确定]
Building the shared folder support module                  [确定]
Doing non-kernel setup of the Guest Additions              [确定]
Starting the VirtualBox Guest Additions                    [确定]
Installing the Window System drivers
Installing X.Org 7.1 modules                               [确定]

You appear to be running an older version of the X Window system in your
guest.  Seamless mode and dynamic resizing will not work!

Setting up the Window System to use the Guest Additions    [确定]
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 componen[确定]

 

安装完成之后,鼠标已经可以正常在主机和虚拟机之间自由滑动了,另外,系统剪贴板也已经正常共享了。写出来,方便大家吧。

再次感叹一下,服务器的启动和Ubuntu桌面版的启动速度比起来,差别还是太大了。

 

http://xieshaohu.spaces.live.com/Blog/cns!B8A0666CD7DF92E6!1062.entry

 

安装gcc时提示需要libgmp.so.3 找了好久才查到是需要安装gmp-4.1.4-10.e15.i386.rpm

 

分享到:
评论
1 楼 saup007 2010-08-14  
没看明白。。。。刚接触linux

saup007@sina.com

相关推荐

Global site tag (gtag.js) - Google Analytics