Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

Installing VMware tools on Centos 6 via yum

Luca Dell'Oca, April 2, 2012December 4, 2016

Yum is tha package manager used to install, remove and update sofware for linux distributions based on Red Hat, like Centos and Fedora.
It allows an easy management of installations and most of all updates, since by using yum upgrade we can check our local software lists against the available public repositories, check for new versions, and update the easily.

However, usually CentOS virtual machines have their VMware tools installed via the local binaries available from vSphere. It’s possible to configure Centos to install VMware Tools via yum.

First of all, we need to add the VMware repository. To do so, we create the file /etc/yum.repos.d/vmware.repo and we place this text in it:

[vmware-tools]
name=VMware Tools for Red Hat Enterprise Linux $releasever – $basearch
baseurl=http://packages.vmware.com/tools/esx/latest/rhel6/$basearch
enabled=1
gpgcheck=1
gpgkey=http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub

If we installed previously VMware tools via the local vSphere, we will need to remove them using /usr/bin/vmware/vmware-uninstall-tools.pl

We can now install VMware tools via yum:

yum install vmware-tools-esx-nox

In the first run, we will be asked to import the public key, and we have to answer y

After the install, it can happen the installer does not configure the daemon for automatic start. If we execute:

chkconfig --list

and we do not see vmware-tools in the list, we need to configure the auto-start. First of all we check if the startup script is present:

ll /etc/init.d/vmware-tools

If the script is there, we add it to the autostart list using these two commands, one after the other:

chkconfig --add vmware-tools
chkconfig vmware-tools on

We can finally start the daemon:

/etc/init.d/vmware-tools start

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
Tech

Post navigation

Previous post
Next post

Search

Sponsors

Latest Posts

  • Migrate WSL (Windows Subsystem for Linux) to a new computer
  • Pass keystrokes to a pfSense virtual machine to install it automatically
  • Automatically deploy pfSense with Terraform and Ansible
  • My Automated Lab project: #6 Create a S3 Bucket with Terraform
  • My Automated Lab project: #5 Deploy a Linux vSphere VM with Terraform and custom disks
©2025 Virtual To The Core | WordPress Theme by SuperbThemes
We use cookies to ensure that we give you the best experience on our website, and to collect anonymous data regarding navigations stats using 3rd party plugins; they all adhere to the EU Privacy Laws. If you continue to use this site we will assume that you are ok with it.OkNoPrivacy Policy