Menu Close

Power off VM by command(esxcli)

Last post: Power off VM (vim-cmd)

  1. Log in as root to the ESX host where the impacted virtual machine located using an SSH client.
  2. Get a list of running virtual machines, identified by World ID and Display Name by running this command #esxcli vm process list get World ID
  3. Take a note of the world ID of the non- responsive virtual machine
  4. Power off the virtual machine from the list by running below commands
  • #esxcli vm process kill t=soft w= WorldID
  • #esxcli vm process kill t=hard w= WorldID
  • #esxcli vm process kill t=force w= WorldID
  • Soft is the most graceful
  • hard performs an immediate shutdown
  • force should be used as a last resort

Leave a Reply

Your email address will not be published. Required fields are marked *