â€‹When trying to power off a VDI or VM in vSphere sometimes the machine will stop itself at 95% complete in the task, you’re unable to make any changes and it won’t respond to further commands. Follow these steps below to try to remedy the situation.
- Determine which host the VM is on.
- While on the VM in vSphere click Summary and look at the “Host” field under “General”
- Connect to that host through vSphere.
- Click the VM and try to power it down.
- If that fails you’ll need to use Putty to SSH into the host.
- First SSH needs to be enabled on the host. You can activate it by going to the configuration tab on the host in vSphere and make sure the SSH service is running.
- Log in as Root and run the following commands:
esxcli vm process list
This is to find the world ID of the unresponsive VM.
esxcli vm process kill --type=[soft,hard,force] --world-id=WorldNumber
- Three power-off methods are available. Soft is the most graceful, hard performs an immediate shutdown, and force should be used as a last resort.
Additional information HERE