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.limb...@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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to