Stop does, in fact, kill the qemu process. There are few situations were such kill might not work, i.e. when the storage where the VM is breaks/becomes innaccesible.
Your issue is that you try to
shutdown the VM first. As the VM keeps running, you issue a
stop. That
stop task must wait for the previous
shutdown task to finish (
trying to acquire lock...
). The default timeout for the shutdown task is 10 minutes. For the
stop task to succeed you need to either wait for the timeout or stop the
shutdown task.
The shutdown timeout can be configured in VM options, Start/Shutdown order, Shutdown timeout (seconds).
For a
shutdown task to succeed you either need that:
- The OS responds to ACPI requests.
- Have the QEMU guest agent configured in the VM, installed and running in the guest OS.
When installing an OS or running some live CD neither ACPI nor QEMU GA is available and
shutdown request will fail. Use a
stop directly instead of
shutdown.
Btw, you don't even need kill is you want to use CLI to forcibly stop a VM:
Code:
qm stop <vmid> --skiplock
Would a "kill -9 --come-on-do-what-I-say-mate" be useful in the GUI? Maybe. But I'm sure that understanding what's happening under the hood will help you manage Proxmox efficiently.