Re: [PATCH 20/26] qemu: add config to control if auto-shutdown VMs are restored

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux