mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-06-14 13:26:24 +00:00
migration: fix issue with qcow2 cloudinit disk live migration
The check for with_snapshots for qcow2 needs to happen for these too. Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
1e5405838a
commit
e9f12f967a
@ -394,6 +394,11 @@ sub scan_local_volumes {
|
||||
$local_volumes->{$volid}->{drivename} = $attr->{drivename}
|
||||
if $attr->{drivename};
|
||||
|
||||
# If with_snapshots is not set for storage migrate, it tries to use
|
||||
# a raw+size stream, but on-the-fly conversion from qcow2 to raw+size
|
||||
# back to qcow2 is currently not possible.
|
||||
$local_volumes->{$volid}->{snapshots} = ($local_volumes->{$volid}->{format} =~ /^(?:qcow2|vmdk)$/);
|
||||
|
||||
if ($attr->{cdrom}) {
|
||||
if ($volid =~ /vm-\d+-cloudinit/) {
|
||||
$local_volumes->{$volid}->{ref} = 'generated';
|
||||
@ -401,10 +406,6 @@ sub scan_local_volumes {
|
||||
}
|
||||
die "local cdrom image\n";
|
||||
}
|
||||
# If with_snapshots is not set for storage migrate, it tries to use
|
||||
# a raw+size stream, but on-the-fly conversion from qcow2 to raw+size
|
||||
# back to qcow2 is currently not possible.
|
||||
$local_volumes->{$volid}->{snapshots} = ($local_volumes->{$volid}->{format} =~ /^(?:qcow2|vmdk)$/);
|
||||
|
||||
my ($path, $owner) = PVE::Storage::path($storecfg, $volid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user