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 is a seasoned expert in VMware and Microsoft solutions, bringing deep expertise to his role at Dell Technologies. As a Senior Principal Engineer he focuses on cutting-edge virtualization and storage projects. A VMware Certified Implementation Expert, 9x VMware vExpert, and VMware User Moderator on the official VMTN forums, Graham is a trusted community resource. Connect with him on Twitter for insights! @VirtualG.uk

Leave a Response

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