首先检查系统里面是否安装了 VMware Tools
open-vm-tools
包,检测是否预装了 open-vm-tools
yum list installed | grep open-vm-*
yum remove open-vm-tools
rpm -qa | grep open-vm-*
reboot
点击 VMware菜单栏【虚拟机(M)】,选择【安装VMware Tools(T)...】;若是安装了早期版本的 VMware Tools,则菜单项为【更新 VMware Tools】
cdrom
目录,在虚拟机中,以 root
身份登陆客户机操做系统,打开终端窗口并运行ls /dev
命令查看是否含有 cdrom
目录/mnt/cdrom
将 CD-ROM
挂载到其余目录下,通常是将 /dev/cdrom
挂载到 /mnt/cdrom
目录 使用 ls /mnt
查看是否已经含有 /cdrom
目录shell
从上图中能够发现 /mnt
中含有 /cdrom
目录,若是没有出现上图的 cdrom
目录,则本身手动建立一个,使用命令 mkdir /mnt/cdrom
或 mkdir -p /mnt/cdrom
(带上 -p
则能够一次建立多个目录),使用命令 ls /mnt
查看目录是否建立成功session
使用命令 mount -t iso9660 /dev/cdrom /mnt/cdrom
将光盘挂载在 /mnt/cdrom
目录,并使用命令 ls /mnt/cdrom
查看是否挂载成功ui
root
目录将后缀名为 tar.gz
的文件拷贝到 root
目录下,使用命令 cp /mnt/cdrom/ VMwareTools-10.3.21-14772444.tar.gz ~
,并用命令 ls ~
查看是否复制成功this
使用命令 umount /dev/cdrom
解除挂载spa
[root@localhost ~]# tar -zxvf VMwareTools-10.3.21-14772444.tar.gz [root@localhost ~]# ls ~ anaconda-ks.cfg lnmp1.7 lnmp1.7.tar.gz lnmp-install.log VMwareTools-10.3.21-14772444.tar.gz vmware-tools-distrib [root@localhost ~]#
cd vmware-tools-distrib
进入到解压后的源码文件目录vmware-install.pl
文件[root@localhost ~]# cd vmware-tools-distrib/ [root@localhost vmware-tools-distrib]# [root@localhost vmware-tools-distrib]# ./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 INPUT: [yes]
输入 yes
一路回车,而后检查是否成功操作系统
Skipping rebuilding initrd boot image for kernel as no drivers to be included in boot image were installed by this installer. Generating the key and certificate files. Successfully generated the key and certificate files. The configuration of VMware Tools 10.3.21 build-14772444 for Linux for this running kernel completed successfully. You must restart your X session before any mouse or graphics changes take effect. 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. Enjoy, --the VMware team [root@localhost vmware-tools-distrib]# ls /mnt/hgfs/ project [root@localhost vmware-tools-distrib]#