0%

Windows主机环境CentOS7虚拟机安装VMware Tools

在Windows主机环境下,给CentOS7虚拟机安装VMware Tools。如果是在MacOS主机环境下,给CentOS7虚拟安装VMware Tools,请参考 mac主机待机后和虚拟机时间不统一的问题

加载linux.iso镜像

在VMware里,点击”安装VMware Tools“

光盘挂载的iso文件会自动变为:linux.iso

挂载光盘到本地目录

1
sudo mount /dev/cdrom /mnt/cdrom

从光盘拷贝文件到工作目录

1
sudo cp /mnt/cdrom/VMwareTools-10.3.10-12406962.tar.gz /usr/local/

解压:

1
2
cd /usr/local/
sudo tar -zxvf VMwareTools-10.3.10-12406962.tar.gz

安装VMware Tools

1
2
3
cd vmware-tools-distrib
./vmware-install.pl
-bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory

安装perl, gcc

1
sudo yum install perl gcc kernel-devel
1
2
3
4
5
sudo ./vmware-install.pl 
open-vm-tools packages are available from the OS vendor and VMware recommends
using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more
information.
Do you still want to proceed with this installation? [no]

输入yes,然后一路回车,默认选项安装。

1
2
3
4
5
To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session
3. Restart your X session.
1
2
vmware-user: could not open /proc/fs/vmblock/dev
15484 pts/1 R 0:00 /usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr

此处理错误未找到解决方案,不过已经不影响鼠标的移动了。