解决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
分享到:
相关推荐
使用VirtualBox虚拟技术,在RedHat Enterprise Linux 5.5上安装Oracle Database 11g RAC
此文档是安装oracle11g rac 在redhost5.5上配置集群操作
virtualbox redhat6.0 linux 安装oracle11g,详细步骤让你安装好oracle数据库
virtualBox(虚拟机)下的redhat安装增强工具和windows
VirtualBox + redhat7.5 +oracle19C安装
用VirtualBox-4.1.8安装redHat9
VirtualBox安装CentOS5
在虚拟机VirtualBox 上安装redHat rhel-server-5.5 Linux服务器
uos安装VirtualBox增强工具
在Win7下用Virtualbox虚拟机安装RedHat Linux系统报错以及解决的方法
文档中介绍了使用VirtualBox安装WindowsXP的方法。
本文档主要内容为,在Windows下怎么样安装虚拟机VirtualBox-4.2.6,并在虚拟机上安装Linux系统Ubuntu 10.04,以及相应环境的搭建。
这是 VirtualBox 7.0.10 版本的 Windows 安装程序,支持最新的 Windows 10/11 操作系统. VirtualBox 是一款强大的 x86 和 amd64/Intel64 虚拟化产品 软件,适用于企业和家庭使用。此版本提供了一系列新的功能和改进,...
Virtualbox red hat Linux 5.4 oracle 11g rac 安装手册
NULL 博文链接:https://crazyidea.iteye.com/blog/797006
windows 版 VirtualBox(6.0.10-132072版本)
VirtualBox-windows版本编译方法。 本文档是基于4.26版本的VirtualBox制作的手册,仅供参考。
主要介绍了在virtualbox虚拟机下如何安装64位的redhat linux 6.4。
该镜像文件可以安装到VMware Workstation 或virtualbox虚拟机中。
VirtualBox 可以在 Linux 和 Windows 主机中运行,并支持在其中安装 Windows (NT 4.0、2000、XP、Server 2003、Vista)、DOS/Windows 3.x、Linux (2.4 和 2.6)、OpenBSD 等系列的客户操作系统。 假如你曾经有用过...