vbox安装的Linux光标有延迟,RedHat安装VirtualBox增强功能出现问题的解决方法

其中第一点为bad interpreter: permission denied的解决方法

Install VirtualBox Guest Additions in CentOS (RedHat) Linux Guest

When you try to install the VirtualBox Guest Additions for a Linux guest system, this will fail due to some weired ‘features’ in the installation. This post is based on my experience with VirtualBox 3.0.6.

To perform the installation do the following:

Choose Install Guest Additions... from the VirtualBox menu. Open a terminal window in your guest system. Do a

cd /media/VBOXADDITIONS_3.0.6_52128/

(the foldername will change depending on the VBox version). Proceed as described below.

1. Cannot execute .run file

When you try to execute the installation file (e.g. VBoxLinuxAdditions-amd64.run), you get an error message like this

[root@integration /]# cd /media/VBOXADDITIONS_3.0.6_52128/

[root@integration VBOXADDITIONS_3.0.6_52128]# ./VBoxLinuxAdditions-amd64.run

-bash: ./VBoxLinuxAdditions-amd64.run: /bin/sh: bad interpreter: Permission denied

The solution is to use the command

sh VBoxLinuxAdditions-amd64.run

instead (choosing the right architecture, it was 64bit in this case).

2. Installer complains about missing gcc and Linux kernel headers

The solution to this is to update your kernel to the latest version and install headers and sources for it. VirtualBox requires to compile some drivers when it installs.

Just execute

yum update kernel

yum install gcc

yum install kernel-devel

.

Run the installer again and everything should be ok.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值