fix VM clone from snapshot with cloudinit disk

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>
This commit is contained in:
Mira Limbeck 2020-09-28 10:36:30 +02:00 committed by Thomas Lamprecht
parent 32e5405084
commit f8c4b2c5ba

View 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 {