您的位置:首页 > 运维架构 > Linux

【linux】——安装vmware-tools

2013-06-02 12:01 267 查看
一:点击安装VMware Tools;



二:此时系统桌面上会出现图标VMware Tools;这里面文件位于/media 文件夹下;里面有两个文件我们用第二个;





三:把第二个文件用命令:tar xvfz /media/VMware\ Tools/VMwareTools-6.0.2-59824.tar.gz -C /opt 把文件加压到/opt文件夹中;

四:用命令:cd /opt/vmware-tools-distrib/ 转到此目录下;

五:执行命令: ./vmware-install.p1 安装工具;然后就是一路enter键,需要yes的输入yes ,需要no的输入no;即可;

如果比较幸运,那就安装成功了,不过在安装的过程中会碰到一下现象:

一、 配置vmware-config-tool会有以下报错:

Unable to create the directory /mnt/hgfs.

Execution aborted.

原因:在/mnt下已经mount了光盘。

解决方法:将其umount,再重新配置vmware-config-tool。

二、配置vmware-config-tool还会有以下报错:

CentOS5 kernet: unregister_netdevice: waiting for eth0 to become free.

主要原因:配置vmware-config-tool与网卡的IPv6地址有冲突。

解决方法:将该网卡的IPv6禁用。

1. Add the two lines, if not already present, to /etc/modprobe.conf:

alias net-pf-10 off
alias ipv6 off

add the command to blacklist(/etc/modprobe.d/blacklist) instead as shown below:

blacklist net-pf-10

Note: Try to copy-paste these lines instead of typing them. I faced problems in one computer after typing it in. It wasn't something which was visible to me on casual inspection but copy-paste solved it.

2. Open /etc/sysconfig/network and look for the line containing NETWORKING_IPV6 and change the value to no as shown below:

NETWORKING_IPV6=no

3. Stop ip6tables firewall:

/sbin/service ip6tables stop

4. Prevent the ip6tables firewall from coming up ever again:

/sbin/chkconfig ip6tables off

5. Restart your network to see if everything is working correctly:

/sbin/service network restart

6. Some articles suggest rebooting the machine at this stage so you may do that too.

按照上面的步骤做完重启电脑重新安装即可!

安装vmware-tools的时候还会出现以下两种情况:

1、what is the location of the gcc program on your machine?

  这是因为没有安装gcc的原因,用yum -y install gcc安装即可;

2、What is the location of the directory of C header files that match your running kernel?

  用yum -y install kernel-devel安装即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: