VBox安装增强功能报错



执行安装脚本,报错:

点击(此处)折叠或打开

  1. [root@rhel601 vboxsp]# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.12 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.12 of VirtualBox Guest Additions...
vboxadd.sh: Stopping VirtualBox Additions.
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.

查看安装日志文件:

点击(此处)折叠或打开

  1. [root@rhel601 vboxsp]# cat /var/log/VBoxGuestAdditions.log

vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
chcon: can't apply partial context to unlabeled file `/usr/lib64/VBoxGuestAdditions/mount.vboxsf'

检查gcc和make包是否安装以及kernel和kernel-devel是否安装,在本次错误中,gcc和kernel-devel包没有安装,所以需要执行安装。

点击(此处)折叠或打开

  1. yum install -y gcc*
  2. yum isntall -y kernel-devel



安装完成后结果如下:
yum list gcc
yum list make
yum list kernel kernel-devel

点击(此处)折叠或打开

  1. [root@rhel601 ~]# yum list gcc*
    Loaded plugins: product-id, security, subscription-manager
    Updating certificate-based repositories.
    Unable to read consumer identity
    Installed Packages
    gcc.x86_64                                                                          4.4.6-4.el6                                                                  @local
    gcc-c++.x86_64                                                                      4.4.6-4.el6                                                                  @local
    gcc-gfortran.x86_64                                                                 4.4.6-4.el6                                                                  @local
    gcc-gnat.x86_64                                                                     4.4.6-4.el6                                                                  @local
    gcc-java.x86_64                                                                     4.4.6-4.el6                                                                  @local
    gcc-objc.x86_64                                                                     4.4.6-4.el6                                                                  @local
    gcc-objc++.x86_64                                                                   4.4.6-4.el6                                                                  @local

  2. [root@rhel601 ~]# yum list make
    Loaded plugins: product-id, security, subscription-manager
    Updating certificate-based repositories.
    Unable to read consumer identity
    Installed Packages
    make.x86_64                

  3. [root@rhel601 ~]# yum list kernel kernel-devel
    Loaded plugins: product-id, security, subscription-manager
    Updating certificate-based repositories.
    Unable to read consumer identity
    Installed Packages
    kernel.x86_64                                             2.6.32-279.el6                                        @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3
    kernel-devel.x86_64                                       2.6.32-279.el6                                        @local       

再次执行安装:

点击(此处)折叠或打开

  1. [root@rhel601 vboxsp]# sh VBoxLinuxAdditions.run
  2. Verifying archive integrity... All good.
  3. Uncompressing VirtualBox 5.1.12 Guest Additions for Linux...........
  4. VirtualBox Guest Additions installer
  5. Removing installed version 5.1.12 of VirtualBox Guest Additions...
  6. vboxadd.sh: Stopping VirtualBox Additions.
  7. Copying additional installer modules ...
  8. Installing additional modules ...
  9. vboxadd.sh: Building Guest Additions kernel modules.
  10. vboxadd.sh: Starting the VirtualBox Guest Additions.


  11. Could not find the X.Org or XFree86 Window System, skipping.   --这里的错误忽略
上面表示插件安装完成。





来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29191018/viewspace-2132107/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29191018/viewspace-2132107/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值