Search This Blog

2013-11-19

OSP (Operating System Specific) VMware tools installation

First check if VMware tools is already installed, if it is, remove it.
rpm -qa | grep vm
ps auxwww | grep vmwa
pgrep -fl vmtoolsd
If any of the above show that VMware tools is running remove it using either
vmware-uninstall-tools.pl

OR
rpm -e VMwareTools

Depending on how it was initially installed.

Make a directory to store the GPG keys
mkdir -p /srv/crypto

Get the GPG keys
wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub
wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub

Import the keys (so we don't have to include them in the .repo file)
rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub
rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub

Create a repo file
vi /etc/yum.repos.d/vmware-tools.repo

Example content:

[vmware-tools]
name=VMware Tools
baseurl=http://packages.vmware.com/tools/esx/5.1/rhel6/x86_64
enabled=1
gpgcheck=1

Depending on your kernel version if you're running a PAE or pae kernel you might have to install a different version of VMware tools. To check if you're running PAE run the following
uname -r

By default RHEL doesn't need to specify a PAE kernel type when installing but if your kernel ends as follows you will have to
2.6.18-53.el5-PAE

Install VMware tools
yum install vmware-tools-esx-kmods vmware-tools-esx

If you have a PAE kernel it's slightly different
yum install vmware-tools-esx-kmods-PAE vmware-tools-esx

For more info check the official documentation:
http://www.vmware.com/support/packages

No comments:

Post a Comment