Alan's sysadmin Blog

Working smarter not harder

Terminating a stuck VM on ESX

Posted by Alan McBurney on September 1, 2009

One of the VM’s had got itself hung and wouldn’t power off correctly.

Getting the PID (Process ID) of the stuck VM and terminating it from the CLI worked for me.

Try the following command to resolve the issue

ps auxfww | grep <vmname>

The first number to appear in the output is your PID. The PID can be used to terminate the process by issuing kill -9 PID.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: