设为首页 收藏本站
查看: 1182|回复: 0

[经验分享] Windows下VirtualBox中RedHat5.5的增强功能安装

[复制链接]
YunVN网友  发表于 2016-1-10 15:18:09 |阅读模式
  
解决Redhat Enterprise Linux 5下VBOXADDITIONS插件kernel modules编译失败的问题
rhel5虽然已经在虚拟机里安装了一段时间了。但是一直没有使用。今天因为Spark XML解析的问题,开了一下虚拟机,发现自己的客户机增强工具包还没有安装好,所以就动手安装了一下,首先是切换到root用户,然后执行./autorun.sh罗,结果提示gksu没有,在红帽的系统里,当然没有这个命令了,况且我本来就是用root执行这个脚本,也没有比较再去获得root权限了,删除之,再次执行,出现了下面的错误信息。提示不能编译内核模块。
[iyunv@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文件。
[iyunv@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两个软件包,配置编译环境。
[iyunv@rhel VBOXADDITIONS_3.1.4_57640]# yum install kernel-devel kernel-headers
安装成功后再次编译,编译已经OK了啊。
[iyunv@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、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-162615-1-1.html 上篇帖子: Ubuntu下VirtualBox虚拟机串口设置 下篇帖子: Ubuntu 9.10 VirtualBox添加新硬盘
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表