vSphere

How do you kill a VM that will not power off?

Sometimes a virtual machine will not power off via the web client. To resolve this, the process is very simple:

  1. Enable SSH on the host that the VM is running on:

2. Login to the host via SSH

3. Run the following command:

esxcli vm process list

4. Find the world ID for the VM you want to power off:

5. Run the following command:

esxcli vm process kill -t=force -w=xxxxx

Note that force is the equivalent as pulling the power from the VM

xxxxx is the world ID as you located previously from esxcli vm process list

 

 

 

 

 

 

 

 

 

 

author avatar
Graham
Graham works closely with VMware & Microsoft solutions. He is a VMware Certified Implementation Expert, 8x VMware vExpert & a VMware User Moderator on the official VMware VMTN forums. Feel free to reach out via Twitter @VirtualG.uk or email: contact@virtualg.uk

Leave a Response

This site uses Akismet to reduce spam. Learn how your comment data is processed.