Powering off an unresponsive virtual machine on an ESXi host

  1. Log in as root to the ESXi using SSH.
  2. Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmxconfiguration file by running this command:
  3. Take a note of the world ID of the non-responsive virtual machine. In this example the World ID is 2104633
  4. Power off the virtual machine from the list by running one of these 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
    Note:

    • Soft is the most graceful
    • Hard performs an immediate shutdown
    • Force should be used as a last resort