The first step after a fresh install of a CentOS 5.3 server is too install the packages gcc and kernel-devel. When these packages are installed, update them and reboot of the VM:
yum install gcc kernel-devel –y
yum update –y
reboot
Now we have to create a new folder so we can mount the VMware Tools cd-rom.
mkdir /media/cdrom –p
Start the VMware Tools Installer via the GUI:
Mount the cd-rom:
mount /dev/cdrom /media/cdrom
create a folder and copy the tar.gz file from the cd-rom to the folder:
mkdir /root/tarz –p
cp /media/cdrom/VMwareTools-4.0.0-xxxxxx.tar.gz /root/tarz/
Open the folder and extract the tar.gz file:
cd /root/tarz
tar zxvf VMwareTools-4.0.0-xxxxxx.tar.gz
Open the vmware-tools-distrib folder and start the installer:
cd vmware-tools-distrib
./vmware-install.pl
You can change the vnic to vmxnet via the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start
The final step is to reboot the VM.
You don’t have to reboot for kernel-devel, so if you first check whether or not you are running the latest kernel you might not need the reboot.
Besides, the rpm packages works fine on CentOS. Just install with ‘rpm -Uvh VMwareTools-4.0.0-xxxxx-i386.rpm (even on 64bit Linux, as the modules get compiled for the specific kernel when you run vmware-config-tools. :)).
Good article and helper for me, thank a lot… Ithink with command line is very stronger to success
Thanks for the excellent article. I think there is a need to reorder some things in though, how would you connect to the repository if you have not even configured the LAN card which is done only after the tools have been loaded and the vmxnet driver installed and started.