Adding vmware-tools to Centos5 or RHEL

Adding vmware-tools to RHEL6 or greater is easy, assuming you have the EPEL repo enabled all you do is:

yum install open-vm-tools.x86_64

That’s it your done.

Things are a tad more complicated for lower version of RHEL, for example RHEL5, some of this is down to the way VMWare have changed the way they support vmware-tools on Linux, they scrapped having the vm-tools.rpm the linux.iso which you use to push out from the vSpehre client,  they now advise you to use your disto’s repos.

Here’s how you do for RHEL5.

Check your version/architecture etc

[root@foo ~]# cat /etc/redhat-release 
 CentOS release 5.6 (Final)
 [root@foo ~]# uname -a
 Linux foo.local 2.6.18-308.20.1.el5 #1 SMP Tue Nov 13 10:15:12 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

Create repo file

touch /etc/yum.repos.d/vmware-tools.repo
Add this and adjust for your release/architecture, tip, DO NOT USE the ''latest'' repo, it has caused issues, always go for a point/named release

 name=VMware Tools
 #baseurl= # DO NOT USE
 baseurl=   <====== THIS WORKS, NOTE THE PATH

Download the keys, you may have to export proxy settings


Import the keys

 rpm --import ./
 rpm --import ./

Now you are ready to install – IMPORTANT, install ”vmware-tools-esx-kmods.x86_64” first
yum install vmware-tools-esx-kmods.x86_64 – and it can take some time.

 yum install vmware-tools-esx-nox.x86_64

”vmware-tools-esx-nox.x86_64” is for the non GUI version or headless, which is what we want for us as we do not run GNOME etc on our servers.

Amongst other things, having vmware-tools installed allows the full potential of the vmxnet3 NIC to be exploited, and allows you to shutdown the guest from with the vSphere client.


About hedscratchers

A UK ex-pat now living in the USA.
This entry was posted in Linux & Solaris and tagged . Bookmark the permalink.

4 Responses to Adding vmware-tools to Centos5 or RHEL

  1. Michaël says:

    Last command should be :
    yum install vmware-tools-esx-nox.x86_64
    and not :
    yum install yum install vmware-tools-esx-nox.x86_64

  2. oke deh says:

    in my installation ,i’ve encounter this problem
    “base | 1.1 kB 00:00
    extras | 2.1 kB 00:00
    updates | 1.9 kB 00:00
    vmware-tools | 951 B 00:00
    vmware-tools/primary | 19 kB 00:00
    vmware-tools 41/41
    vmware-tools-collection | 951 B 00:00 [Errno -1] pygpgme is not working so repomd.xml can not be verified for vmware-tools-collection
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: vmware-tools-collection. Please verify its path and try again”
    its seems it cant find the repomd.xml , but there isnt any repomd.xml in vmware repository

    • Since I wrote the article RHEL5 has been EOL, so there no longer any repos. RHEL6 is soon to be EOL as well. Your best bet is to start working on moving over to RHEL7 or CentOS7.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s