VMware下centos7安裝VMware Tools

右鍵虛擬機設置,找到CD/DVD,選擇使用ISO映像文件,在VMware安裝目錄下找到linux.iso。
VMware下centos7安裝VMware Tools - 懷素真 - 因上努力 果上隨緣
 
掛載iso文件
> mount -t auto /dev/cdrom /mnt/cdrom
若是/mnt下沒有cdrom文件夾,則建立
> cd /mnt
> mkdir cdrom
把/mnt/cdrom下的VMwareTools-10.0.10-4301679.tar.gz拷貝到/data目錄下
> cd /mnt/cdrom
> cp VMwareTools-10.0.10-4301679.tar.gz /data
解壓壓縮包並執行vmware-install.pl
> 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
相關文章
相關標籤/搜索