RedHat 5.4安装VirtualBox虚拟机增强包
来源:互联网 发布:佳能dpp下载mac版 编辑:程序博客网 时间:2024/05/18 09:38
由于工作需要,经常需要在linux下进行环境搭建,我选择的方式是在win7下安装VirtualBox,然后在VirtualBox安装RedHat 5.4。
为了能让虚拟机自动调整显示尺寸以及使用数据空间与宿主系统进行文件共享,必须在RedHat中安装增强包,也就是VBOX Additions。
OK,下面让我们开始安装。
启动虚拟机,以root登录,然后选择 “设备”-“安装增强功能”加载增强功能镜像。
打开终端,切换到刚加载的镜像所在的目录,开始安装:
由于RedHat是默认安装,缺少内核头文件,安装失败
根据提示安装缺少的包
[root@biee11g ~]# yum install kernel-devel
如果有系统DVD光盘可以将光盘配置为yum的源,详细方法可以查看我的另一篇文章
VirtualBox下RedHat 5.4 使用DVD光盘作为yum源
安装完kernel-devel之后,再次运行安装程序
[root@biee11g VBOXADDITIONS_4.1.6_74713]# sh VBoxLinuxAdditions.run Verifying archive integrity... All good.Uncompressing VirtualBox 4.1.6 Guest Additions for Linux.........VirtualBox Guest Additions installerRemoving installed version 4.1.6 of VirtualBox Guest Additions...Removing existing VirtualBox DKMS kernel modules [确定]Removing existing VirtualBox non-DKMS kernel modules [确定]Building the VirtualBox Guest Additions kernel modulesThe gcc utility was not found. If the following module compilation fails thenthis could be the reason and you should try installing it.
Not building the VirtualBox advanced graphics driver as this Linux version istoo old to use it.Building the main Guest Additions module [失败](Look at /var/log/vboxadd-install.log to find out what went wrong)Doing non-kernel setup of the Guest Additions [确定]Installing the Window System driversInstalling X.Org 7.1 modules [确定]Setting up the Window System to use the Guest Additions [确定]You may need to restart the hal service and the Window System (or just restartthe guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services componen[确定][root@biee11g VBOXADDITIONS_4.1.6_74713]#
再次失败,根据提示查看/var/log/vboxadd-install.log发现如下内容:
GCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxGuest_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxguest)" -c -o /tmp/vbox.0/.tmp_VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.c/bin/sh: gcc: command not foundmake[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] 错误 127make[1]: *** [_module_/tmp/vbox.0] 错误 2make: *** [vboxguest] 错误 2Creating user for the Guest Additions.
原来是没有安装gcc
[root@biee11g ~]# yum install gcc
安装好gcc之后,再次运行安装程序
[root@biee11g VBOXADDITIONS_4.1.6_74713]# sh VBoxLinuxAdditions.run Verifying archive integrity... All good.Uncompressing VirtualBox 4.1.6 Guest Additions for Linux.........VirtualBox Guest Additions installerRemoving installed version 4.1.6 of VirtualBox Guest Additions...Removing existing VirtualBox DKMS kernel modules [确定]Removing existing VirtualBox non-DKMS kernel modules [确定]Building the VirtualBox Guest Additions kernel modulesNot building the VirtualBox advanced graphics driver as this Linux version istoo old to use it.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 driversInstalling X.Org 7.1 modules [确定]Setting up the Window System to use the Guest Additions [确定]You may need to restart the hal service and the Window System (or just restartthe guest system) to enable the Guest Additions.Installing graphics libraries and desktop services componen[确定]
OK,安装成功,重启。
现在view下的“自动调整显示尺寸”就可用了,至此增强包安装成功。
- RedHat 5.4安装VirtualBox虚拟机增强包
- 虚拟机VirtualBox里redhat跟主机windows 7安装增强包和设置共享文件
- VirtualBox的CentOS虚拟机安装增强包
- virtualbox 增强包安装
- Centos及linux系统安装VirtualBox虚拟机增强包
- 虚拟机Ubuntu server 14.04 安装 virtualbox 增强包
- 【Virtualbox虚拟机Ubuntu系统安装VBoxGuestAdditions.iso增强包解决办法】
- Virtualbox Centos 增强包安装
- ubuntu 安装 virtualbox 增强包
- VirtualBox安装增强功能包
- Windows安装virtualbox虚拟机的增强功能
- 安装virtualbox虚拟机的增强功能
- VirtualBox下虚拟机安装增强工具
- virtualBox安装fedora后安装增强包
- 在Virtualbox中的Ubuntu虚拟机中,安装Guest Additions客户端增强包时出错
- 在Virtualbox中的Ubuntu虚拟机中,安装Guest Additions客户端增强包
- 虚拟机 minimal 安装增强包
- virtualbox增强包在ubuntu下安装
- OpenCore框架概述(一)
- 第一份工作,第一个可以自己开发的新项目
- 设计模式之工厂方法模式
- 读牛人博客
- linux下通过telnet进入开发板目录,并设置共享目录
- RedHat 5.4安装VirtualBox虚拟机增强包
- javascript中注册和移除事件的方式
- eclipse cdt编程环境设置
- JFreeChart自学整理
- java时间加法
- myeclipse5.5 svn在线更新地址和安装步骤如下
- 基于jquery的自动补全自己手写的
- Linux mail命令使用方法
- NYOJ 420 p次方求和