NEWS.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
From: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
NEWS.rst | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/NEWS.rst b/NEWS.rst
index 98ca838642..45d48c1485 100644
--- a/NEWS.rst
+++ b/NEWS.rst
@@ -35,6 +35,23 @@ v11.2.0 (unreleased)
or even map them to specific virtqueues similarly to the ``virtio-blk``
device allowing for better performance in certain scenarios.
+ * qemu: integrate support for VM shutdown on host shutdown
+
+ It is now possible to instruct the QEMU driver to automatically perform
+ managed save, graceful shutdown, or hard poweroff on running VMs, when a
+ host shutdown is requested. This feature is intended to eventually replace
+ usage of the libvirt-guests script. The new approach improves on the
+ libvirt-guests script, by proactively monitor logind for a signal that a
+ host shutdown has been requested. It will initiate the chosen action on
+ running guests immediately, allowing shutdown inhibitors to be released
+ sooner. The new solution is also able to iteratively try multiple actions
+ until one of them succeeeds in shutting down the VM.
+
+ Since it must be mutually exclusive with the libvirt-guests script, this
+ feature currently requires an manual opt-in through editting of the
+ /etc/libvirt/qemu.conf configuration file. The libvirt-guests script must
+ be disabled before doing this.
+
* **Improvements**
* **Bug fixes**
--
2.48.1
On 3/20/25 10:57 AM, Daniel P. Berrangé via Devel wrote: > From: Daniel P. Berrangé <berrange@redhat.com> > > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> > --- > NEWS.rst | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/NEWS.rst b/NEWS.rst > index 98ca838642..45d48c1485 100644 > --- a/NEWS.rst > +++ b/NEWS.rst > @@ -35,6 +35,23 @@ v11.2.0 (unreleased) > or even map them to specific virtqueues similarly to the ``virtio-blk`` > device allowing for better performance in certain scenarios. > > + * qemu: integrate support for VM shutdown on host shutdown > + > + It is now possible to instruct the QEMU driver to automatically perform > + managed save, graceful shutdown, or hard poweroff on running VMs, when a > + host shutdown is requested. This feature is intended to eventually replace > + usage of the libvirt-guests script. The new approach improves on the > + libvirt-guests script, by proactively monitor logind for a signal that a s/monitor/monitoring/ :-) > + host shutdown has been requested. It will initiate the chosen action on > + running guests immediately, allowing shutdown inhibitors to be released > + sooner. The new solution is also able to iteratively try multiple actions > + until one of them succeeeds in shutting down the VM. > + > + Since it must be mutually exclusive with the libvirt-guests script, this > + feature currently requires an manual opt-in through editting of the > + /etc/libvirt/qemu.conf configuration file. The libvirt-guests script must > + be disabled before doing this. > + > * **Improvements** > > * **Bug fixes**
On Thu, Mar 20, 2025 at 13:44:41 -0400, Laine Stump wrote: > On 3/20/25 10:57 AM, Daniel P. Berrangé via Devel wrote: > > From: Daniel P. Berrangé <berrange@redhat.com> > > > > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> > > --- > > NEWS.rst | 17 +++++++++++++++++ > > 1 file changed, 17 insertions(+) > > > > diff --git a/NEWS.rst b/NEWS.rst > > index 98ca838642..45d48c1485 100644 > > --- a/NEWS.rst > > +++ b/NEWS.rst > > @@ -35,6 +35,23 @@ v11.2.0 (unreleased) > > or even map them to specific virtqueues similarly to the ``virtio-blk`` > > device allowing for better performance in certain scenarios. > > > > + * qemu: integrate support for VM shutdown on host shutdown > > + > > + It is now possible to instruct the QEMU driver to automatically perform > > + managed save, graceful shutdown, or hard poweroff on running VMs, when a > > + host shutdown is requested. This feature is intended to eventually replace > > + usage of the libvirt-guests script. The new approach improves on the > > + libvirt-guests script, by proactively monitor logind for a signal that a > > s/monitor/monitoring/ :-) > > > > + host shutdown has been requested. It will initiate the chosen action on > > + running guests immediately, allowing shutdown inhibitors to be released > > + sooner. The new solution is also able to iteratively try multiple actions > > + until one of them succeeeds in shutting down the VM. > > + > > + Since it must be mutually exclusive with the libvirt-guests script, this > > + feature currently requires an manual opt-in through editting of the And s/ an / a / :-) Jirka
On Thu, Mar 20, 2025 at 06:59:20PM +0100, Jiri Denemark via Devel wrote: >On Thu, Mar 20, 2025 at 13:44:41 -0400, Laine Stump wrote: >> On 3/20/25 10:57 AM, Daniel P. Berrangé via Devel wrote: >> > From: Daniel P. Berrangé <berrange@redhat.com> >> > >> > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> >> > --- >> > NEWS.rst | 17 +++++++++++++++++ >> > 1 file changed, 17 insertions(+) >> > >> > diff --git a/NEWS.rst b/NEWS.rst >> > index 98ca838642..45d48c1485 100644 >> > --- a/NEWS.rst >> > +++ b/NEWS.rst >> > @@ -35,6 +35,23 @@ v11.2.0 (unreleased) >> > or even map them to specific virtqueues similarly to the ``virtio-blk`` >> > device allowing for better performance in certain scenarios. >> > >> > + * qemu: integrate support for VM shutdown on host shutdown >> > + >> > + It is now possible to instruct the QEMU driver to automatically perform >> > + managed save, graceful shutdown, or hard poweroff on running VMs, when a >> > + host shutdown is requested. This feature is intended to eventually replace >> > + usage of the libvirt-guests script. The new approach improves on the >> > + libvirt-guests script, by proactively monitor logind for a signal that a >> >> s/monitor/monitoring/ :-) >> >> >> > + host shutdown has been requested. It will initiate the chosen action on >> > + running guests immediately, allowing shutdown inhibitors to be released >> > + sooner. The new solution is also able to iteratively try multiple actions >> > + until one of them succeeeds in shutting down the VM. >> > + >> > + Since it must be mutually exclusive with the libvirt-guests script, this >> > + feature currently requires an manual opt-in through editting of the > >And s/ an / a / :-) > And s/editting/editing/ O:-)
On Thu, Mar 20, 2025 at 01:44:41PM -0400, Laine Stump wrote: > On 3/20/25 10:57 AM, Daniel P. Berrangé via Devel wrote: > > From: Daniel P. Berrangé <berrange@redhat.com> > > > > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> > > --- > > NEWS.rst | 17 +++++++++++++++++ > > 1 file changed, 17 insertions(+) > > > > diff --git a/NEWS.rst b/NEWS.rst > > index 98ca838642..45d48c1485 100644 > > --- a/NEWS.rst > > +++ b/NEWS.rst > > @@ -35,6 +35,23 @@ v11.2.0 (unreleased) > > or even map them to specific virtqueues similarly to the ``virtio-blk`` > > device allowing for better performance in certain scenarios. > > + * qemu: integrate support for VM shutdown on host shutdown > > + > > + It is now possible to instruct the QEMU driver to automatically perform > > + managed save, graceful shutdown, or hard poweroff on running VMs, when a > > + host shutdown is requested. This feature is intended to eventually replace > > + usage of the libvirt-guests script. The new approach improves on the > > + libvirt-guests script, by proactively monitor logind for a signal that a > > s/monitor/monitoring/ :-) Pushed as a fixup commit, since I pushed the orignal 1 minute before seeing your comment :-) With 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 Thu, Mar 20, 2025 at 14:57:48 +0000, Daniel P. Berrangé via Devel wrote: > From: Daniel P. Berrangé <berrange@redhat.com> > > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> > --- > NEWS.rst | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) Reviewed-by: Peter Krempa <pkrempa@redhat.com>
© 2016 - 2025 Red Hat, Inc.