Solution for Unable to Shut Down Virtual Machine in PVE

Publish: 2022-03-24 | Modify: 2022-03-24

Recently I encountered a VM that froze, and the server couldn't be accessed. Even trying to enter through PVE VNC didn't work. I attempted to shut down and restart the VM through PVE, but it didn't respond and the following error occurred:

TASK ERROR: VM quit/powerdown failed - got timeout

Solution

I used the ps command to find the process of the corresponding VM:

# Replace 101 with the VM ID of your own virtual machine
ps -ef|grep "/usr/bin/kvm -id 101"|grep -v grep

Here, xiaoz found the process ID 20582.

I killed this process:

kill 20582

Returning to the PVE interface, I could see that the virtual machine 101 had stopped.

You can either restart this virtual machine through the PVE interface or using the following command:

# Replace 101 with your own VM ID
qm start 101

Finally, the problem was resolved, but the root cause still remains unknown.


Comments