Proxmox KVM machine will not stop

By | August 11, 2015

Occasionally a backup locks one of my KVM machines.

Running any of the commands from the UI or from the command yields no results –

Stop
trying to aquire lock…TASK ERROR: can’t lock file ‘/var/lock/qemu-server/lock-136.conf’ – got timeout

Reset
trying to aquire lock…TASK ERROR: can’t lock file ‘/var/lock/qemu-server/lock-136.conf’ – got timeout

Solution –
/etc/init.d/cman stop
/etc/init.d/pve-cluster stop
/etc/init.d/pve-cluster start
/etc/init.d/cman start

Now you should be able to stop the KVM machine using –
qm stop VMID