> If qemu agent is enable on the VM and detected a running qemu agent in > the VM do you use qemu agent poweroff when shutdown is activated in > pve-manager? yes if (defined($conf) && $conf->{agent}) { vm_qmp_command($vmid, { execute => "guest-shutdown" }, $nocheck); } else { vm_qmp_command($vmid, { execute => "system_powerdown" }, $nocheck); }