Solving VMs stuck on poweron or poweroff or reboot non-cancel able operations

From Notes_Wiki

Home > VMWare platform > VMWare vSphere or ESXi > Solving VMs stuck on poweron or poweroff or reboot non-cancel able operations

Sometimes a VM may get stuck in a operation such as power-on / power-off / reboot which cannot be cancelled. If VM is stuck in this state for fairly long time (eg more than 15 minutes) it is safe to assume that the operation is not going to succeed. In such cases we can kill the process using:

  1. Find the ESXi host where VM is running (or was attempted to be started)
  2. Enable SSH to ESXi host, if not enabled already
  3. SSH to ESXi host and run
    esxcli vm process list
  4. There should be a process with matching VM name in the list. Note the world-ID of the VM.
  5. Kill the hanged process via:
    esxcli vm process kill --type=soft --world-id=<World-id-of-VM>
  6. Check if the issue is resolved. If the issue is not resolved then we can try a more agressive kill of type hard and finally most agressive kill of type force.

Refer:


Home > VMWare platform > VMWare vSphere or ESXi > Solving VMs stuck on poweron or poweroff or reboot non-cancel able operations