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] 

如果一直提示如下信息

What is the location of the "ifconfig" program on your machine?

請安裝ifconfig,重新執行vmware-install.pl

> yum search ifconfig
> yum install net-tools.x86_64

如果一直提示如下信息

The path "" is not a valid path to the 3.10.0-327.el7.x86_64 kernel headers.
Would you like to change it?

則需要安裝

> yum install kernel-devel

然后在上面的步驟里輸入內核頭文件的目錄

/usr/src/kernels/3.10.0-327.36.3.el7.x86_64/include

如果出現如下信息

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 headers

> 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

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM