]> git.proxmox.com Git - qemu-server.git/commitdiff
fix VM clone from snapshot with cloudinit disk
authorMira Limbeck <m.limbeck@proxmox.com>
Mon, 28 Sep 2020 08:36:30 +0000 (10:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 16 Oct 2020 13:39:43 +0000 (15:39 +0200)
All volumes contained in $vollist are activated. In this case a snapshot
of the volume. For cloudinit disks no snapshots are created so don't add
it to the list of volumes to activate as it otherwise fails with no
logical volume found.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
PVE/API2/Qemu.pm

index f1e9759038fdd301d003a224d8475821ba2ab1c6..e2bd09360ecb35abe0e52c109c7ee1e69e4988ad 100644 (file)
@@ -3031,6 +3031,7 @@ __PACKAGE__->register_method({
                                if !PVE::Storage::volume_has_feature($storecfg, 'clone', $drive->{file}, $snapname, $running);
                        }
                        $drives->{$opt} = $drive;
+                       next if PVE::QemuServer::drive_is_cloudinit($drive);
                        push @$vollist, $drive->{file};
                    }
                } else {