首先檢查系統裏面是否安裝了 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]#