您的位置:首页 > 运维架构 > Linux

解决CentOS系统mini安装后的虚拟机工具(vmware-tools)安装问题

2013-04-17 15:38 567 查看
准备工作,先安装必要的组件。

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]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐