[CentOS] libvirt guest on host's shutdown/reboot - problem

Mon Jan 7 14:17:39 UTC 2019
Simon Matter <simon.matter at invoca.ch>

> hi guys
>
> I have just two guest after which libvirt looks and when I shutdown
> those guests:
>
> $ virsh shutdown $_dom
>
> that domain takes little time to power down, as expected one would
> say(~20sec) But! I reboot the hosts and I have in my:
>
> /etc/sysconfig/libvirt-guests :
>
> ON_SHUTDOWN=shutdown
>
> PARALLEL_SHUTDOWN=1
>
> SHUTDOWN_TIMEOUT=300

How long does it take if you do this?

systemctl stop libvirt-guests.service

I have PARALLEL_SHUTDOWN=5 with currently four guests and it takes as you
said ~20-30 seconds (those are non systemd guests).

Regards,
Simon