[pve-devel] [PATCH qemu-server] fix #2364: allow migration with local cloudinit disk in GUI

Mira Limbeck m.limbeck at proxmox.com
Mon Oct 7 09:22:48 CEST 2019


Don't apply this. If we do it like this there's no local cloudinit disk 
conflict on live migration as well which is not supported.

Looks like we have to do the check in the GUI.

On 10/4/19 4:10 PM, Mira Limbeck wrote:
> Ignore a local cloudinit disk in the check for local disks. The
> cloudinit disk does not get migrated, only the config does. The disk
> itself gets recreated on the new node when the VM is started.
>
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
> ---
>   PVE/API2/Qemu.pm | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
> index 267a08e..6c72db9 100644
> --- a/PVE/API2/Qemu.pm
> +++ b/PVE/API2/Qemu.pm
> @@ -3179,6 +3179,7 @@ my $check_vm_disks_local = sub {
>   	# is marked as shared manually
>   	return if $attr->{shared};
>   	return if $attr->{cdrom} and $volid eq "none";
> +	return if $attr->{cdrom} and $volname =~ m/vm-$vmid-cloudinit/;
>   
>   	if (exists $local_disks->{$volid}) {
>   	    @{$local_disks->{$volid}}{keys %$attr} = values %$attr




More information about the pve-devel mailing list