VMTools install on CentOS 6.x

The following procedure was tested with VMTools V9 (ESXi 5.1) on CentOS 6.4 Minimal Install

  1. From the VMware vSphere Client, select “Install/Upgrade VMware Tools” for your Virtual Machine
  2. Login to your VM as root
  3. Install Perl  yum -y install perl
  4. Make the mount point  mkdir /mnt/cdrom
  5. Mount the CD-ROM  mount /dev/cdrom /mnt/cdrom
  6. Go to the tmp folder  cd /tmp
  7. Extract the files from the CD-ROM tar -zxf /mnt/cdrom/VMwareTools-*.tar.gz
  8. Unmount the CD-ROM  umount /mnt/cdrom
  9. 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 –

  1. Run cp /etc/vmware-tools/services.sh /etc/init.d/vmware-tools
  2. 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
  3. Run chkconfig –add vmware-tools (There are two dashes before the add)
  4. 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 –

  1. Run service vmware-tools stop
  2. 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.
  3. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *