Monday, November 26, 2012

Kill a VM (The HARD way)!!

Use this method only after you have tried every other method.

If you have a VM that will not power off or reboot first attempt all of the following methods to shutdown the VM:

  • Shutdown in vCenter
  • Connect vCenter client to host and shutdown
  • Perform a Stop-VM command in Powershell
    • Stop-VM -VM -Kill -Confirm:$false


If after all of these methods fail you can still power down a VM by killing the WorldID on the ESXi hosts

1.  SSH into the host
2. Get a list of all running VMs

  • esxcli vm process list

3. Once you have found your VM document is World ID
4. Issue the following command to kill the VM

  • esxcli vm process kill --type=[soft,hard,force] --world-id=WorldNumber
    • This command may require the --type=hard option to be successful.

No comments:

Post a Comment