歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 解決CentOS系統mini安裝後的虛擬機工具(VMware Tools)安裝問題

解決CentOS系統mini安裝後的虛擬機工具(VMware Tools)安裝問題

日期:2017/2/28 14:47:03   编辑:Linux教程

准備工作,先安裝必要的組件。

yum -y groupinstall "Perl Support"

yum -y install gcc gcc-c++ automake make kernel-devel

然後在vCenter裡找到這台服務器,並掛接VMWARE的升級工具(圖形操作的略掉)。

mkdir /mnt/cdrom
mount -o loop /dev/cdrom /mnt/cdrom
cd /mnt/cdrom

cp VMwareTools*.* /home

---------------------復制完成以後,就可以斷了掛載
umount /mnt/cdrom
rm /mnt/cdrom -rf

cd /home

tar zxvf VMwareTools........tgz

cd vm....../

然後安裝即可:

./vmware_install.pl

如果一些正常,一路回車就可以了。

==================================================

Searching for GCC...

The path "" is not valid path to the gcc binary.
Would you like to change it? [yes]
如果出現這個就表明gcc沒有安裝
# yum install gcc gcc-c++ automake make
將編譯環境一次裝好


Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]
如果出現這個就表示kernel-devel包沒有安裝
# yum install


成功安裝VMware tools時的提示如下,一路回車:
Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no]

Searching for a valid kernel header path...
Detected the kernel headers of the running kernel at
"/lib/modules/2.6.32-71.el6.i686/build/include".
The path "/lib/modules/2.6.32-71.el6.i686/build/include" appears to be a valid
path to the kernel headers of the running kernel.


Would you like to change it? [no]

更多CentOS相關信息見CentOS 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=14

Copyright © Linux教程網 All Rights Reserved