Why does shutdown not work ?

rabol

New Member
Jun 20, 2025
23
0
1
Hi

Why does the menu 'Shutdown not work' ?

I have tried all options in the menu, but I cannot stop a vm.

Do I really need to rebut the host just to stop / force stop a vm ?
 
It could be something inside the VM or a mismatch between having QEMU Guest Agent enabled for the VM but not installed or running inside the VM.
You can use Stop instead of Shutdown to force a stop of the VM (but make sure no current task like Shutdown is still running).
Can you shut down of the OS inside the VM? Did you install and enable QEMU Guest Agent? Does the OS inside the VM respond to ACPI events?
 
Hi

yes, the agent is installed,

there is:
reboot, but it does not work
stop, but it does not work
reset, but it does not work

trying to acquire lock...
TASK ERROR: can't lock file '/var/lock/qemu-server/lock-103.conf' - got timeout
 
TASK ERROR: can't lock file '/var/lock/qemu-server/lock-103.conf' - got timeout
What other Task is still running on that VM, according to the Tasks Log? Stop only fails when some other task still has the VM locked, like a Shutdown or Backup or maybe something else. What is the output of qm config 103 (in CODE-tags please)?
 
It's just a Fedora test vm, but that is not the point - I mean, if I press 'shutdown' or 'reboot' the vm should shutdown or reboot.


Code:
agent: 1
boot: order=scsi0;ide2;net0
cores: 8
cpu: x86-64-v2-AES
ide2: local:iso/Fedora-KDE-Desktop-Live-42-1.1.x86_64.iso,media=cdrom,size=2777870K
machine: q35
memory: 16384
meta: creation-qemu=10.0.2,ctime=1758862587
name: Fedora-KDE
net0: virtio=BC:24:11:C5:04:B0,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-103-disk-0,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=9dc8d2f6-2897-4729-9ffa-eb02f1423a32
sockets: 1
vga: virtio
vmgenid: 3e2505aa-0c72-4c5f-925d-447724e3e21b
 
btw... I can easlly reproduce it:

Put the Fedora to 'sleep-mode', or if a RDP session looses connection, then it's not possible to shutdown or reboot