Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to find a generic way of checking, in the guest operating system of a virtual machine, if the VMware Tools are out of date.

The best way I have found so far has been to check the output of "vmware-toolbox-cmd -v", and to compare it to the expected version number. For example:

if [ "`vmware-toolbox-cmd -v`" = " (build-975338)" ]
   echo "The vmware tools are OK"
   echo "The vmware tools are out of date"

But the version number changes with time, so I would need to update the script every time, on every virtual machine. Or maybe I could read the "expected version number" from some shared resource, with wget or curl.

Can you help me find a better way ?


share|improve this question
up vote 7 down vote accepted

I don't bother checking VMware tools versions on my Linux guest virtual machines now with the frequency of updates to ESXi and vSphere.

I'm a heavy proponent of VMware Operating System Specific Packages (OSPs).

This allows me to handle VMware guest tools independently of the host and control updates/installation at the Linux package manager level. I think it's a better way because I can also get newer tools to my guest VMs in situations where the vSphere infrastructure is older (e.g. version 4.1).

For instance, in Red Hat and CentOS, I just add the following in my routine to install guest tools:

# rpm -ivh
# yum -y install vmware-tools-esx-kmods vmware-tools-esx

The result is cleaner and easier to manage than manual tools updates from the vCenter or vSphere client level.

share|improve this answer
This is a good solution, I didn't know about the OSPs. But there's the problem of the unsupported O.S. such as Debian – Aurelio Martin Massoni May 10 '13 at 11:07
Well, it works for Ubuntu... – ewwhite Jul 9 '13 at 14:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.