小记:
1.启动虚拟机中的系统,并将VMtools文件添加到虚拟光驱
2.虚拟机->设置->硬件->CD/DVD->使用ISO映像文件(从VMwareworkstation安装包里找到linux.iso文件),点击确定
3.在VMware workstation选项栏上点:虚拟机->安装或重新安装VMware Tools
4.打开VM,新建一个目录/mnt/cdrom,用于挂载虚拟光驱
Su root (转为root身份进行操作)
# mkdir /mnt/cdrom
5.查看/mnt/cdrom文件的内容找到VMtools的文件名
#cd /mnt/cdrom
6.新建一个文件夹如/tmp,将/mnt/cdrom的文件拷贝过来
# mkdir /tmp/cdrom
cp /mnt/cdrom/VMwareTools-xxxxx.tar.gz /tmp/cdrom/
7.Tar解压VMwareTools-xxxxx.tar.gz
#tar –zxv –f VMwareTools-xxxxx.tar.gz
如果显示文件为只读文件,解压不成功,可以改成-zx –f就能运行
8.解压完毕之后,再cd到/tmp/cdrom目录下的vmware-tools-distrib文件夹
#cd /tmp/cdrom/vmware-tools-distrib
9.运行该目录下的vmware-install-distrib
./vmware-install.pl(./表示当前目录)
10.在运行的过程中,由于之前错误安装过tools,如果跳出下列信息: The installer found the following conflicting packages installed on the system and will now remove them: open-vm-tools
Failed to remove the following packages:
open-vm-tools
Please manually remove them before installing VMware Tools.
Execution aborted.
Found VMware Tools CDROM mounted at /run/media/olay/VMware Tools. Ejecting
device /dev/sr0 ...
需要先卸载open-vm-tools-desktop
11.卸载
rpm -e open-vm-tools-desktop
12.卸载完之后再重新安装
./vmware-install.pl
来源:https://www.cnblogs.com/soso-what/p/6685766.html