Guest restarting after issuing a shutdown

Andrea Bolognani abologna at redhat.com
Fri Apr 1 17:42:00 UTC 2022


On Fri, Apr 01, 2022 at 11:12:50AM -0400, jonetsu wrote:
> guest : % shutdown now
> host  :   Domain creation completed.
> host  :   Restarting guest.
> (virt-manager shows the guest restarting)

Try passing --no-reboot to virt-install.

> host  : % virsh shutdown test02
> (nothing happens, guest still shown)

If the guest OS is fully booted up at this point, you should be able
to initiate a clean shutdown from the host.

If that doesn't work, make sure your VM configuration contains

  <domain>
    ...
    <features>
      <acpi/>
    </features>
    ...
    <on_poweroff>destroy</on_poweroff>
    ...
  </domain>

and that there is some software running in the guest that will
process the ACPI event appropriately. systemd will usually take care
of that part.

-- 
Andrea Bolognani / Red Hat / Virtualization



More information about the libvirt-users mailing list