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 have an Ubuntu 9.10 Server running as guest from VMware Fusion. How can I check if it's running VMware tools from the command line?

share|improve this question

closed as off-topic by Sven Jan 6 '15 at 8:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Sven
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 20 down vote accepted

This works in SLES:

ps ax|grep vmware
8885 ?        Ss     8:05 /usr/lib/vmware-tools/sbin64/vmware-guestd --background /var/run/

/etc/init.d/vmware-tools status
vmware-guestd is running

You can also check if the vm kernel modules are running

vmw_pvscsi             22359  0 
vmxnet3                44475  0 
vmwgfx                114733  3
share|improve this answer
The answer is slightly different if you're using open-vm-tools instead. lsmod shows up the same modules. For the running process, you would do ps ax | grep vmtoolsd instead. – Ehtesh Choudhury Jan 8 '14 at 3:56

Tested on Ubuntu 12.xx

$ sudo service vmware-tools status

It works on my machines (from 12.04 to 14.04)

share|improve this answer

Check that the vmware-guestd is running

ps -ef | grep vmware-guestd
share|improve this answer

You could use initctl to request a list of the known jobs and instances and output the status of each to standard output:

#sudo initctl list

Note: It's important to prefix the command with sudo (or be logged in as root). If you don't have root privilages, you could get an error like "unable to connect to system bus: failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory." Which is very confusing.

Filtering the results

The initctl command might produce a large list of results that flow over many screens.

So, it might be better to pipe the standard output to a paginator program like less or more.

However, I prefer to pipe the output to a filter program like grep like so:

# sudo initctl list | grep vmware

This runs initctl but filters its results to exclude all lines of output unless they contain the phrase vmware.

Understanding the output

I ran the, grep-filtered, command (sudo initctl list | grep vmware) and got the following output:

vmware-tools start/running
vmware-tools-thinprint start/running

The first line confirmed, to me, that vmware-tools was running.

If there was no output at all, I'd deduce that vmware-tools was not running.

As the initctl manual page says, each line of output reflects a job's status in the format:

job-name goal/state


The job name is given first followed by the current goal and state of the selected instance. The goal is either start or stop, the status may be one of waiting, starting, pre-start, spawned, post-start, running, pre-stop, stopping, killed or post-stop.


  • For your information, my machine was Ubuntu 13.10 Saucy Salamander Final Beta.

  • View the initctl man page's section on list and status for more info.

  • For the best introduction to Linux pipes etc. it's worth reading those 26, short, pages of that seminal article: The Unix Time-Sharing System, by D. M. Ritchie and K. Thompson

share|improve this answer

Here you have a little help, with images: Look at the end of the article.

share|improve this answer
Please insert the most important parts as text in your comment when linking to external articles. – mkzero Oct 7 '15 at 6:23

protected by Sven Jan 6 '15 at 8:39

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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