Google Fu: Shutting Down Proxmox when you get a file lock error
Posted: 02 May 2020
Updated: 02 May 2020
Verified: 11 Aug 2022
Sometimes, Proxmox becomes unable to shutdown a VM. This is far more common if your OS doesn’t have the Qemu agent installed. To fix this:
Open PVE shell
rm /run/lock/qemu-server/lock-102.conf
qm unlock 102
For a script, see # How to: Fix Proxmox (PVE)
Or, use glances
(see Process Monitoring Tools and find the running kvm and kill it.