【linux】——安装vmware-tools
一:点击安装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安装即可
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步