Installing VMWare Tools on CentOS/RHEL 6.5

Print Friendly, PDF & Email

To install VMWare tools using YUM on CentOS/RHEL 6.5, do the following.

Note, I’m logged in as the ‘root’ user, but you could execute these commands using ‘sudo’ as well.

Step 1: Download and import GPG keys

[root@techedemic /var/tmp]# wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
[root@techedemic /var/tmp]# rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub

Step 2: Add VMWare repository

# Create/Modify  /etc/yum.repos.d/vmware-tools.repo, I use 'vim' as an editor
[root@techedemic /var/tmp]# vim /etc/yum.repos.d/vmware-tools.repo


Add the following text to the file and save/quit:

[vmware-tools]
name=VMware Tools for CentOS (or OEL) $releasever - $basearch
baseurl=http://packages.vmware.com/tools/esx/latest/rhel6/x86_64
#baseurl=http://packages.vmware.com/tools/esx/5.0u2/rhel6/x86_64
enabled=1
gpgcheck=1
gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub

Step 3: Clean and Update yum

[root@techedemic /var/tmp]# yum clean all
[root@techedemic /var/tmp]# yum update

Step 4: Install VMWare tools

[root@techedemic /var/tmp]# yum install vmware-tools-core
Loaded plugins: downloadonly, product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vmware-tools-core.x86_64 0:9.4.5-1.el6 will be installed
--> Processing Dependency: vmware-tools-guestlib = 9.4.5 for package: vmware-tools-core-9.4.5-1.el6.x86_64
--> Processing Dependency: vmware-tools-libraries-nox = 9.4.5 for package: vmware-tools-core-9.4.5-1.el6.x86_64
--> Processing Dependency: vmware-tools-foundation >= 9.4.5 for package: vmware-tools-core-9.4.5-1.el6.x86_64
--> Running transaction check
---> Package vmware-tools-foundation.x86_64 0:9.4.5-1.el6 will be installed
---> Package vmware-tools-guestlib.x86_64 0:9.4.5-1.el6 will be installed
---> Package vmware-tools-libraries-nox.x86_64 0:9.4.5-1.el6 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
=================================================================================================================================================================================
 Package                                               Arch                              Version                                   Repository                               Size
=================================================================================================================================================================================
Installing:
 vmware-tools-core                                     x86_64                            9.4.5-1.el6                               vmware-tools                            3.9 M
Installing for dependencies:
 vmware-tools-foundation                               x86_64                            9.4.5-1.el6                               vmware-tools                            213 k
 vmware-tools-guestlib                                 x86_64                            9.4.5-1.el6                               vmware-tools                             45 k
 vmware-tools-libraries-nox                            x86_64                            9.4.5-1.el6                               vmware-tools                            2.1 M
 
Transaction Summary
=================================================================================================================================================================================
Install       4 Package(s)
 
Total download size: 6.2 M
Installed size: 18 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): vmware-tools-core-9.4.5-1.el6.x86_64.rpm                                                                                                           | 3.9 MB     00:01
(2/4): vmware-tools-foundation-9.4.5-1.el6.x86_64.rpm                                                                                                     | 213 kB     00:00
(3/4): vmware-tools-guestlib-9.4.5-1.el6.x86_64.rpm                                                                                                       |  45 kB     00:00
(4/4): vmware-tools-libraries-nox-9.4.5-1.el6.x86_64.rpm                                                                                                  | 2.1 MB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                            1.7 MB/s | 6.2 MB     00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : vmware-tools-foundation-9.4.5-1.el6.x86_64                                                                                                                    1/4
  Installing : vmware-tools-guestlib-9.4.5-1.el6.x86_64                                                                                                                      2/4
  Installing : vmware-tools-libraries-nox-9.4.5-1.el6.x86_64                                                                                                                 3/4
  Installing : vmware-tools-core-9.4.5-1.el6.x86_64                                                                                                                          4/4
  Verifying  : vmware-tools-foundation-9.4.5-1.el6.x86_64                                                                                                                    1/4
  Verifying  : vmware-tools-guestlib-9.4.5-1.el6.x86_64                                                                                                                      2/4
  Verifying  : vmware-tools-core-9.4.5-1.el6.x86_64                                                                                                                          3/4
  Verifying  : vmware-tools-libraries-nox-9.4.5-1.el6.x86_64                                                                                                                 4/4
 
Installed:
  vmware-tools-core.x86_64 0:9.4.5-1.el6
 
Dependency Installed:
  vmware-tools-foundation.x86_64 0:9.4.5-1.el6              vmware-tools-guestlib.x86_64 0:9.4.5-1.el6              vmware-tools-libraries-nox.x86_64 0:9.4.5-1.el6
 
Complete!

VMWare Tools successfully installed!

14 comments

  1. On the line “yum clean”, it should be “yum clean all”. yum expects an option for the “clean” keyword.

  2. I had to add the line below to vmware-tools.repo to get it to work.
    gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub

    Otherwise it works great!!!

    Thanks

      1. Same here. I installed open-vm-tools using yum install open-vm-tools which worked, but esxi/hypervisor does not recognize that they are installed. It still has the “not running” status next to “vmtools”. esxi version is 6 and CentOS is version 7 64 bit.

        1. Never mine , rebooting the VM worked. It’s cool that the tools are installable via yum now. Back the day, I remember downloading and compiling them for installation by hand!

  3. I followed the directions yesterday and everything went as described. At the end, I could not copy-and-paste between the host (Windows 7) and guest (Centos 6.5) but I thought maybe a restart was needed so I shutdown and tried again today. I still can’t copy-and-paste or move files, etc. I still have the “install VMware Tools” button. I tried to do the install using tar and only got permission denied no matter what I did.

    So I decided to start again with your instructions and at the end I got:
    “Package vmware-tools-core-9.10.1-1.el6.x86_64 already installed and latest version” !

    But I still can’t communicate between host and guest. Any ideas? I’ve never used Centos before, only Ubuntu and Mint.

    BTW, your PDF does not match the instructions here, the little corrections have not been included in it.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.