Hi all, as you surely know, after changing some domain parameters via libvirt (ie: NIC type), the guest need to be shutdown and restarted. A simple reboot will not be sufficient, as libvirt will not launch a new qemu domain (ie: the same qemu process will be in charge to start the new guest instance). It is possible to configure libvirt to start a new qemu domain on guest reboot? Can the <on_reboot> domain attribute be used for implementing something similar? Thanks. -- Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it email: g.danti@assyoma.it - info@assyoma.it GPG public key ID: FF5F32A8
Daniel P. Berrangé
2020-Jan-16 18:14 UTC
Re: Reload domain configuration on guest restart
On Thu, Jan 16, 2020 at 06:56:30PM +0100, Gionatan Danti wrote:> Hi all, > as you surely know, after changing some domain parameters via libvirt (ie: > NIC type), the guest need to be shutdown and restarted. A simple reboot will > not be sufficient, as libvirt will not launch a new qemu domain (ie: the > same qemu process will be in charge to start the new guest instance). > > It is possible to configure libvirt to start a new qemu domain on guest > reboot? Can the <on_reboot> domain attribute be used for implementing > something similar?With the current impl this is not possible. From a technical POV though it is possible to extend libvirt to have a <on_reboot>recreate</on_reboot> option which would kill QEMU & recreate it with the new config. Basically just needs someone motivated to write the code... Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
On 16/01/20 19:14, Daniel P. Berrangé wrote:> With the current impl this is not possible. From a technical POV though > it is possible to extend libvirt to have a <on_reboot>recreate</on_reboot> > option which would kill QEMU & recreate it with the new config. Basically > just needs someone motivated to write the code...Ok, thanks Daniel. -- Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it email: g.danti@assyoma.it - info@assyoma.it GPG public key ID: FF5F32A8