The following procedure was tested with VMTools V9 (ESXi 5.1) on CentOS 6.4 Minimal Install
- From the VMware vSphere Client, select “Install/Upgrade VMware Tools” for your Virtual Machine
- Login to your VM as root
- Install Perl yum -y install perl
- Make the mount point mkdir /mnt/cdrom
- Mount the CD-ROM mount /dev/cdrom /mnt/cdrom
- Go to the tmp folder cd /tmp
- Extract the files from the CD-ROM tar -zxf /mnt/cdrom/VMwareTools-*.tar.gz
- Unmount the CD-ROM umount /mnt/cdrom
- Install VMTools with defaults ./vmware-tools-distrib/vmware-install.pl -d
The above will start the vmtools in your Virtual Machine however it will not automatically restart them if you reboot your server. This is what you will have to do –
- Run cp /etc/vmware-tools/services.sh /etc/init.d/vmware-tools
- Edit the file vi /etc/init.d/vmware-tools
and place the following line as line 6 of the file and save
#chkconfig: 235 03 99
- Run chkconfig –add vmware-tools (There are two dashes before the add)
- Check that everything is OK by running service vmware-tools restart and you should see all the services stop and then start again.
If you find that the two “VM communication interface” services do not start, the chances are that the kernel has be updated since you installed the tools. To fix this –
- Run service vmware-tools stop
- Then run vmware-config-tools.pl -d to reconfigure the tools. You can leave off the “-d” which just accepts the default answers and answer each question in turn.
- The above should have started the newly configured tools however you can checkk all is OK by running service vmware-tools restart and checking all the services started OK.
There is an option to “enable VMware automatic kernel modules” but this is experimental and I have not tried it. If you try it and it works, leave me a comment on this post and I will update.