VMWare has a yum repository for vmware tools related rpms. Before we do the vmware tools installation we need to define this repository on our server.
Let’s start with importing the public key for the vmware packages.
rpm --import http://packages.vmware.com/tools/VMWARE-PACKAGING-GPG-KEY.pub
Now it is time to create a .repo file for our repositoy. This file needs to be place in the /etc/yum.repos.d folder and we will call it vmware-tools.repo
Below you can see an example repo definition.
name=VMware Tools for Red Hat Enterprise Linux $releasever – $basearch
In this repo file there are two things you need to pay attention
- . $releasever and $basearch parameters will be automatically replaced with the actual values for your system.
- You need to change the <esx-version> and <arch> tags with the applicable values for your system.
<arch> is the architecture option. For 32?bit, this is i686. For 64?bit, this is x86_64.
<esx-version> is replaced with either 3.5u2, 3.5u3, 3.5u4, 4.0, or 4.0u1 depending upon your ESX/ESXi version.
Our repository definition is ready, now we can install the vmware-tools package.
[[email protected] ~]# yum install vmware-tools