~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Sources: http://packages.vmware.com/tools/docs/manuals/index.html)
All instructions assuming root or sudo.
Special Note: May have to remove old versions prior to upgrades:
vmware-uninstall-tools.pl or
rpm -e VmwareTools or
yum remove vmware-tools[-esx] or ..?..
First, add gpg keys for repositories:
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
rpm --import ./VMWARE-PACKAGING-GPG-RSA-KEY.pub
rpm --import ./VMWARE-PACKAGING-GPG-DSA-KEY.pub
Adding the appropriate sources depend on Release-Version and Architecture:
(Tools version can be 4.0latest, 4.1latest, 5.0latest, or 5.1latest)
(Release can be rhel5 or rhel6)
(Architecture can be i386 or x86_64)
***** edit: Thanks to Anonymous (Nov 1 2013), please do not use "*latest" as VMWare now recommends the static url/folder. Ex: "5.1u3". Find yours by traversing http://packages.vmware.com/tools/esx/
***** edit: As of Early 2014, I find "*.latest" is still working with ESXi 5.1 and CentoOS 6.5 -- proceed at your own discretion.
Confirm your architecture with uname -m (or -a) (if i686, use i386)
Create the repository file /etc/yum.repos.d/vmware-tools.repo and edit it to contain the following, based on the above confirmations and desired vmware version:
(your baseurl will be http://packages.vmware.com/tools/esx/<version>/<release>/<architecture>
(note various examples are commented with #)
----------------------------------------------------------------------------------------------
[vmware-tools]
name=VMware Tools
baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel6/x86_64
#baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel6/i386
#baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel5/i386
#baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel5/x86_64#baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel6/x86_64
#baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel5/i686
#baseurl=http://packages.vmware.com/tools/esx/4.0latest/rhel6/i686
enabled=1
gpgcheck=1
----------------------------------------------------------------------------------------------
Installation for VMWare 4.x tools (option 1 or 2 exclusively):
option 1) 4.x including X11 dependencies:
yum install vmware-tools
option 2) 4.x excluding X11 dependencies (headless):
yum install vmware-tools-nox
Installation for VMWare 5.x tools:
Step 1) Confirm PAE or not (if not PAE, will not see it):
uname -a
Step 2) Install kmods: (option 1 or 2 exclusively)
Option 1) non-pae:
yum install vmware-tools-esx-kmods
Option 2) pae:
yum install vmware-tools-esx-kmods-PAE
Step3) Install tools: (option 1 or 2 exclusively)
Option 1) including X11 dependencies:
yum install vmware-tools-esx
Option 2) excluding X11 dependencies (headless):
yum install vmware-tools-esx-nox
yum install vmware-tools-esx-kmods[-kerneltype] vmware-tools-esx[-nox]
where [-kerneltype] is "-PAE" or nothing and "-nox" or not.
Therefore, this is the no pae, no X (headless) install command:
yum install vmware-tools-esx-kmods vmware-tools-esx-nox
~~~
As always, good luck!
Please consider crypto tipping:
-------------
Hello Steronius,
ReplyDeleteThanks to your guide, I've used:
baseurl=http://packages.vmware.com/tools/esx/5.1latest/rhel6/x86_64
for my CentOS release 6.4 (Final) x86_64 which runs on ESXi 5.1 and it worked like a charm.
This is the best guide ever for VMWare tools, thank you, thank you and thank you from my heart and best wishes!
+1. Well done, thanks so much. Perfect on 5.0u3 as well.
DeleteWanted to let you know that your instructions are somewhat off. VMware has stated themselves that you should not be using repo locations pointed at /*latest/ locations, but should point your repo file at specific locations. As an example, to point at the latest 5.1 toolset for each respective OS in your above example, your sample repo file should look like:
ReplyDelete[vmware-tools]
name=VMware Tools
#baseurl=http://packages.vmware.com/tools/esx/5.1p03/rhel5/i386
baseurl=http://packages.vmware.com/tools/esx/5.1p03/rhel5/x86_64
enabled=1
gpgcheck=1
VMware themselves have stated:
"If you are reading this, then its because you tried to use the rhel5 or rhel6 symlink under the *latest directory (or you are very curious). We have disabled these links due to known bugs during the upgrade process. Please use the release directories instead of the *latest directories to access the OSPs for RHEL 5 and 6.
Please see the engineering release note in the docs directory
(/docs/engineering-release-notes/rhel-upgrade) for more details.
Thanks."
TY
DeleteThank you Anon! ...when did that change :P ....
ReplyDeleteAnonymous, it seems that is only true for "5.0latest" on RedHat/CentOS version 5.0 and 6.0, not 5.1+ nor 6.1+. :
ReplyDeletereference: https://github.com/razorsedge/puppet-vmwaretools/blob/master/TODO
It is true for every version/update of 5.0 and 5.1, both RHEL 5 and 6. I don't know about vSphere 5.5, as we aren't running it yet because of other software incompatibilities.
ReplyDeleteI concur; I witnessed my first issue yesterday. I had to use the static folder /5.1p03/ ... This is not as manageable as "*latest" unfortunately.
DeleteFor what it's worth, I took issue with the inability to have a manageable "latest" structure so that if you did a yum update you could just get the latest vmtools update, and asked that they re-think having to have a specific patch-level indication in the yum repo path/description. So, I'm going to open a different ticket with them to hopefully remedy this issue. I told them if they didn't want people using the "latest" path, they shouldn't even expose it to customers. They agreed with that advice/sentiment.
DeleteHello again,
ReplyDeleteHow do I uninstall, this doesn't work: "yum remove vmware-tools-esx" nor "yum remove vmware-tools-esx-kmods"
First, edit /etc/yum.repos.d/vmware-tools.repo to contain the original repo you tried, then
Deleteyum -y remove vmware*
rm -f /var/cache/yum/vmware-tools/repomd.xml
rm -r -f /etc/vmware-tools
rm -r -f /usr/lib/vmware-tools
Edit /etc/yum.repos.d/vmware-tools.repo to contain the new repo, or if preferred, delete it altogether.
worked for me :) Thanks a lot Steronius!!
ReplyDelete