安装的过程中, 遇到的问题, 记录一下:
1, 选中要安装 VMware tools 的 linux 虚拟机, 然后点击 VMware Workstation12 顶部的 "虚拟机 (M)" 按钮, 选中 "安装 VMware tools" 按钮, 此时 VMware tools 的安装包就会默认放 / media/vmware tools 目录下
2, 创建一个目录:
[root@localhost ~]# mkdir /mnt/cdrom
3, 将 / media/vmware tools 目录挂载到刚建立的 / mnt/cdrom 目录, 这样在 / mnt/cdrom 目录就能看见 VMware tools 的安装包, 但是这个安装包是只读的, 必须拷贝到用户自己的目录中才可以正常使用.
[root@localhost ~]# mount /media/vmware tools /mnt/cdrom
挂载一个标准的 cd
[root@localhost ~]# mount -t iso9660 /media/VMware\ Tools//mnt/cdrom/
挂载成功以后 在 VMwareTools 里边有一个 VMwareTools-10.0.10-4301679.tar.gz (你的也许不一样) 拿去解压
解压到 / tmp / 下
[root@localhost ~]# tar -zxvf VMwareTools-10.0.10-4301679.tar.gz -C /tmp/
进入 / tmp
[root@localhost ~]# cd /tmp/vmware-tools-distrib/
4, 安装 VMware Tools
[root@localhost ~]# ./vmware-install.pl
此时报错: error:unable to execute /usr/bin/vmware-uninstall-tools.pl
原因是, 因为在安装中途中断, vmware-uninstall-tools.pl 这个卸载文件没有被 copy 到 / usr/bin 中, 导致卸载的时候提示错误. 既然没有, 我们就把 vmware-uninstall-tools.pl 复制到 / usr/bin 中, 操作如下
[root@localhost ~]# cd /tmp/vmware-tools-distrib/bin(我的安装目录)
把 vmware-unintall-tools.pl 复制到报错的目录中去:
cp -i vmware-unintall-tools.pl /usr/bin
cd 到上次目录, 开始安装
[root@localhost ~]# cd /tmp/vmware-tools-distrib
执行 vmware-install.pl
[root@localhost ~]# ./vmware-install.pl
执行的过程有很多, 默认回车即可, 直到看到下面的单词:
- Enjoy,
- -the VMware team (到此安装完毕)
安装完毕之后, reboot 一下, 进行重启, 之后打开一个终端, 测试一下, 安装成功!
tar zxvf VMwareTools-9.2.3-1031360.tar.gz -C /tmp/ 解压缩 tar 包到 / tmp 下
来源: http://www.bubuko.com/infodetail-2666378.html