[libvirt] [PATCH] qemu: Honour <on_reboot/>

Ruben Kerkhof ruben at rubenkerkhof.com
Wed Jun 6 10:53:33 UTC 2018


Hi Michal,

Replying to an old thread:

On Fri, Aug 4, 2017 at 9:55 AM, Michal Privoznik <mprivozn at redhat.com> wrote:

> I think this patch enables exactly that. The VM admins don't start the
> domains by hand but probably have some SW that starts configured domains
> whenever not running. E.g. if one domain crashes, the mgmt SW starts it
> up again. With such SW in place this patch is exactly what's been missing.

> Alternatively, we can introduce new <on_reboot/> target, say "reinit"
> that would kill the qemu process and start a new one instead.

I could also really use something like that.
I have no control about when my customers reboot, but when they do,
for a kernel update for instance, that's the perfect moment for the vm
to restart with new configuration.

Right now I have an external process with an event loop that looks for
the reboot event for all domains, combined with
<on_reboot>destroy</on_reboot>.
That works, but I prefer if libvirt would handle this.

>
> Michal

Kind regards,

Ruben Kerkhof




More information about the libvir-list mailing list