How to Fix a Stuck Virtual Machine in Proxmox VE When Shutdown Fails
Proxmox VEVM stuckQEMU processkill processPVE troubleshooting
Published·Modified·
Recently, I encountered a VM that became unresponsive. The server was unreachable, and I could not access it through PVE VNC. Attempts to shut down or restart the VM via the PVE interface yielded no response, and the following error appeared:
TASK ERROR: VM quit/powerdown failed - got timeout
Solution
First, use the ps command to locate the process corresponding to the VM:
# Replace 101 with your own VM ID
ps -ef | grep "/usr/bin/kvm -id 101" | grep -v grep
In this case, the process ID found was 20582.

Terminate this process:
kill 20582
Return to the PVE interface, and you will see that VM 101 has stopped.

You can now restart the VM either through the PVE interface or by using the following command:
# Replace 101 with your own VM ID
qm start 101
The issue is resolved, although the root cause remains undetermined.