Prepare and install necessary components first.
Yum-y groupinstall "Perl Support"
Yum-y install gcc-c ++ automake make kernel-devel
Find the server in vCenter and install the VMWARE upgrade tool (omitted for graphic operations ).
Mkdir/mnt/cdrom
Mount-o loop/dev/cdrom/mnt/cdrom
Cd/mnt/cdrom
Cp VMwareTools *. */home
--------------------- After the copy is completed, the mounting can be broken.
Umount/mnt/cdrom
Rm/mnt/cdrom-rf
Cd/home
Tar zxvf VMwareTools ...... tgz
Cd vm ....../
Then install:
./Vmware_install.pl
If it is normal, press enter all the way.
========================================================== ============
Searching for GCC...
The path "" is not valid path to the gcc binary.
Wocould you like to change it? [Yes]
If this occurs, it indicates that gcc is not installed.
# Yum install gcc-c ++ automake make
Install the compiling environment once
Searching for a valid kernel header path...
The path "" is not valid.
Wocould you like to change it? [Yes]
If this occurs, the kernel-devel package is not installed.
# Yum install
When VMware tools is successfully installed, press enter as follows:
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.
Wocould you like to change it? [No]
Searching for a valid kernel header path...
Detected the kernel headers of the running kernel
"/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.
Wocould you like to change it? [No]