Kill VM Process on ESXi 5.0 via command line

ESXCLI is a great command that simplifies the way to kill unresponsive virtual machine

to do so:

1. open DUCI or SSH session to your esxi

2. view your VM list by using:

#esxcli vm process list

3. Identify the unresponsive VM world ID number, for example VM2 has a world id: 14896

4. now u can kill this VM using:

#esxcli vm process kill –world-id=14896 –type=hard

Regards,

Shay Hyams

Advertisements

2 comments on “Kill VM Process on ESXi 5.0 via command line

  1. Thanks for the post. Unfortunately this did not help me kill my VM that was in a weird state, but this is good knowledge. You should change step one to say “esxcli vm process LIST’ not get.

    • thank you cody for the update
      i did change the command to list instead og get 🙂

      another way to kill a vm is to:
      1.On the ESXi console, enter Tech Support mode and log in as root. For more information, see Tech Support Mode for Emergency Support (1003677).

      2.Run the esxtop utility using this command:

      esxtop

      3.Press c to switch to the CPU resource utilization screen.
      4.Press Shift+v to limit the view to virtual machines. This may make it easier to find the Leader World ID in step 7.
      5.Press f to display the list of fields.
      6.Press c to add the column for the Leader World ID.
      7.Identify the target virtual machine by its Name and Leader World ID (LWID).
      8.Press k.
      9.At the World to kill prompt, type in the Leader World ID from step 6 and press Enter.
      10.Wait 30 seconds and validate that the process is not longer listed.

      Regards
      Shay

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s