When the virtual machine is stuck and cannot be shut down directly using proxmox VE
1. Select the node where the virtual machine task is located, and select Shell on the right
2. Enter in the shell
qm list
View the VMID of the virtual machine that needs to be forced to shut down
3. Use qm stop to shut down the virtual machine
qm stop 105
//Here 105 is the query result in the second step, and it is also the unique virtual machine ID you set when creating the virtual machine
prompt error
4. If prompted to report the following error
trying to acquire lock...
can't lock file '/var/lock/qemu-server/lock-100.conf' - got timeout
a) Delete the above file
rm -rf /var/lock/qemu-server/lock-100.conf
b) Re-execute
qm stop 105
At this point the virtual machine is forcibly shut down