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

Mira Limbeck m.limbeck at proxmox.com
Fri Oct 4 16:10:35 CEST 2019


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
-- 
2.20.1





More information about the pve-devel mailing list