Skip to content

How To Install VMware tools on CentOS 6 and CentOS 7 / RHEL

This is a quick and dirty guide on installing VMware tools (vmtools) on a CentOS 6 or CentOS 7 virtual machine as well as RHEL (Red Hat Enterprise Linux).

First, you will need to install the VMware tools prerequisites:

[[email protected]]$  yum install make gcc kernel-devel kernel-headers glibc-headers perl net-tools

Now you will need to mount the VMware Tools ISO and select “Install/Upgrade VMware Tools” option on ESXi. This can be found a few different ways. I prefer to right click on the virtual machine, then go to guest and click on “Install/Upgrade VMware Tools.”


Once the vmtools ISO is attached to the VM, you will need to mount it, create a folder, copy the contents of the ISO to the new folder, extract and install.

[[email protected]]$  mkdir /mnt/cdrom
[[email protected]]$  mount /dev/cdrom /mnt/cdrom

[[email protected]]$  cp /mnt/cdrom/VMwareTools*.tar.gz /tmp/
[[email protected]]$  cd /tmp/
[[email protected]]$  tar xvfz VMwareTools*.tar.gz

Now, run the installer. Most of the time, all of the defaults can be accepted. The installation script is pretty good at figuring out your configuration, but you can change any of the paths and settings. You will be prompted.

[[email protected]]$  cd /tmp/vmware-tools-distrib
[[email protected]]$  ./           # add -d to auto accept defaults

That’s it! If you like, you can delete the vmware-tools-distrib folder as it is no longer needed.

Leave a Reply