vmware tools in Centos 5.x and 6.x


A really boring post, but I want to have this for future records. Here is a manual way of installing vmware tools running on CentOS 5/6

First, import the keys to RPM:

rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub

Add the repository to yum by creating file /etc/yum.repos.d/vmware-tools.repo:

cat <<EOT > /etc/yum.repos.d/vmware-tools.repo
name=VMware Tools </span>
#baseurl=http://packages.vmware.com/tools/esx/5.0u1/rhel5/\$basearch baseurl=http://packages.vmware.com/tools/esx/5.0u1/rhel6/\$basearch

Then, install using:

# for non-PAE kernel:

yum -y install vmware-tools-esx-kmods vmware-tools-esx

# for PAE kernel:

yum -y install vmware-tools-esx-kmods-pae vmware-tools-esx

For no X windows:

yum -y install vmware-tools-esx-nox

BUT, here is a puppet manifest that does the job for you 🙂

class vmtools

if $::osfamily == 'RedHat' and $::operatingsystem != 'Fedora' {

yumrepo { 'vmware-tools-repo':
 baseurl => "http://packages.vmware.com/tools/esx/5.0u1/rhel$ {::os_maj_version}/${::architecture}",
 enabled => '1',
 gpgcheck => '1',
 descr => "VMware tools package for ESX 5.0 update 1"


exec { "install GPG-DSA keys":

command => "/bin/rpm --import http://packages.vmware.com/tools/keys/

unless => "/bin/rpm -q gpg-pubkey --qf
 '%{name}-%{version}-%{release} -->
 %{summary}\n' |/bin/grep VMware >
 /dev/null 2>&1"


exec { "install GPG-RSA keys":
 command => "/bin/rpm --import http://packages.vmware.com/tools/keys/

unless => "/bin/rpm -q gpg-pubkey --qf
 '%{name}-%{version}-%{release} -->
 %{summary}\n' |/bin/grep VMware >
 /dev/null 2>&1"

 package { "vmware-tools-esx-nox" : ensure => "installed" }
 } else {

notice ("Your operating system ${::operatingsystem} is not
 supported vmtools to run with this puppet manifest")


Leave a Reply

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

WordPress.com Logo

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

Google photo

You are commenting using your Google 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