Install Open Source VMware Tools on Red Hat Enterprise/CentOS Linux 6

Install Open Source VMware Tools on Red Hat Enterprise/CentOS Linux 6 VMware makes a repository available for us to install the VMware tools for a variety of Linux distributions including Red Hat, CentOS, and Ubuntu.

This example will show an install VMware tools on a Red Hat Enterprise/CentOS Linux 6 guest running on a VMware ESXi/ESX 4.1 or 5.1 host.

First import the VMware repository GPG signing public keys:

# rpm --import

# rpm --import

Now add the VMware repository. You can use the “echo” command below or simply create the file and its contents are listed below it.

There are other packages available in the repository for other Linux distros, architectures, and ESX host versions.

I am showing 2 examples here for the Red Hat Enterprise 6/Centos 6 VMware ESXi/ESX 4.1 and ESXi/ESX 5.1versions.

Example 1[ESX4.1]:# echo -e "[vmware-tools]\nname=VMware Tools\nbaseurl=$HOSTTYPE\nenabled=1\ngpgcheck=1" > /etc/yum.repos.d/vmware-tools.repo

Example 2[ESX5.1]:# echo -e "[vmware-tools]\nname=VMware Tools\nbaseurl=$HOSTTYPE\nenabled=1\ngpgcheck=1" > /etc/yum.repos.d/vmware-tools.repo

Check the contents of the new repo file:

[root@localhost ~]# cat /etc/yum.repos.d/vmware-tools.repo

Here is what the contents should look like:

[vmware-tools] name=VMware Tools baseurl=$basearch enabled=1 gpgcheck=1


To do the actual install of VMware tools, in our case installing on a server system without X11 graphical interface so this is the minimum install:

# yum install vmware-tools-esx-nox

If we were installing on a workstation or server with X11 installed and would like the VMware display adapter and mouse drivers loaded use this command. The install will be a bit bigger:

# yum install vmware-tools-esx