On Wed, Jan 08, 2025 at 19:42:53 +0000, Daniel P. Berrangé wrote: > If shutting down running VMs at host shutdown, it can be useful to > automatically start them again on next boot. This adds a config > parameter 'auto_shutdown_restore', which defaults to enabled, which > leverages the autostart once feature. > > Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx> > --- > src/qemu/libvirtd_qemu.aug | 1 + > src/qemu/qemu.conf.in | 4 ++++ > src/qemu/qemu_conf.c | 3 +++ > src/qemu/qemu_conf.h | 1 + > src/qemu/qemu_driver.c | 1 + > src/qemu/test_libvirtd_qemu.aug.in | 1 + > 6 files changed, 11 insertions(+) [...] > diff --git a/src/qemu/qemu.conf.in b/src/qemu/qemu.conf.in > index d26ab4cb57..ace4b20a0c 100644 > --- a/src/qemu/qemu.conf.in > +++ b/src/qemu/qemu.conf.in > @@ -681,6 +681,10 @@ > # when 'auto_shutdown_try_shutdown' is enabled > #auto_shutdown_wait = 30 > > +# Whether VMs that are automatically shutdown are set to Consider: shutdown or saved > +# automatically restore on next boot > +#auto_shutdown_restore = 1 > + > # When a domain is configured to be auto-saved on shutdown, enabling > # this flag has the same effect as using the VIR_DOMAIN_SAVE_BYPASS_CACHE > # flag with the virDomainManagedSave API. That is, the system will Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>