Superseded-by: 
https://lore.proxmox.com/pve-devel/[email protected]

On Thu Nov 20, 2025 at 5:34 PM CET, Michael Köppl wrote:
> To avoid shutting down the VM when performing a live-restore, consider
> live-restore=1 to translate to a HA state of 'started', similar to
> start=1.
>
> Reported-by: Fiona Ebner <[email protected]>
> Signed-off-by: Michael Köppl <[email protected]>
> ---
> Used defined-or since in pve-manager, we only ever set one of the two
> values and in any other case I'd give precedence to the 'start'
> parameter if it is explicitly set.
>
>  src/PVE/API2/Qemu.pm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
> index c580bf63..33427ca7 100644
> --- a/src/PVE/API2/Qemu.pm
> +++ b/src/PVE/API2/Qemu.pm
> @@ -1237,7 +1237,8 @@ __PACKAGE__->register_method({
>          my $bwlimit = extract_param($param, 'bwlimit');
>          my $force = extract_param($param, 'force');
>          my $pool = extract_param($param, 'pool');
> -        my $start_after_create = extract_param($param, 'start');
> +        my $start_after_create = extract_param($param, 'start')
> +            // extract_param($param, 'live-restore');
>          my $ha_managed = extract_param($param, 'ha-managed');
>          my $storage = extract_param($param, 'storage');
>          my $unique = extract_param($param, 'unique');



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to