> > if (defined($conf) && $conf->{agent}) {
> > vm_qmp_command($vmid, { execute => "guest-shutdown" }, $nocheck);
> > } else {
> > vm_qmp_command($vmid, { execute => "system_powerdown" }, $nocheck);
> > }
> >
> What happens if qemu-guest-agent is not running inside the VM?
nothing