> mount -t auto /dev/cdrom /mnt/cdrom
> cd /mnt > mkdir cdrom
> cd /mnt/cdrom > cp VMwareTools-10.0.10-4301679.tar.gz /data
> tar -zxvf VMwareTools-10.0.10-4301679.tar.gz > cd vmware-tools-distrib > ./vmware-install.pl
Do you still want to proceed with this legacy installer? yes 看到以下信息一路回車默認就行了 Installing VMware Tools. In which directory do you want to install the binary files? [/usr/bin] What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc/rc.d] What is the directory that contains the init scripts? [/etc/rc.d/init.d] In which directory do you want to install the daemon files? [/usr/sbin] In which directory do you want to install the library files? [/usr/lib/vmware-tools]
若是一直提示以下信息php
What is the location of the "ifconfig" program on your machine?linux
請安裝ifconfig,從新執行vmware-install.plcentos
> yum search ifconfig > yum install net-tools.x86_64
若是一直提示以下信息api
The path "" is not a valid path to the 3.10.0-327.el7.x86_64 kernel headers.
Would you like to change it?this
則須要安裝centos7
> yum install kernel-devel
而後在上面的步驟裏輸入內核頭文件的目錄spa
/usr/src/kernels/3.10.0-327.36.3.el7.x86_64/include
若是出現以下信息blog
The path "/usr/src/kernels/3.10.0-327.36.3.el7.x86_64/include" is not a valid
path to the 3.10.0-327.el7.x86_64 kernel headersip
> ln -s /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/include/generated/uapi/linux/version.h /usr/src/kernels/3.10.0-327.36.3.el7.x86_64/include/linux/version.h
此時若是你的vmtools版本比較舊的話,仍是會提示not a valid path。虛擬機
這是由於3.x版本的內核version.h的路徑變了,致使vmtools沒法找到。
一路默認回車就行了,最後出現以下信息,說明安裝成功,重啓虛擬機。Enjoy, --the VMware team Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...
> umount /mnt/cdrom > shutdown -r now