X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FQemuMigrate.pm;h=97fd9940e2b2dcf0411796d3d49042ef07be9718;hb=38311a1d17e371902fa06e2d7cc2a1d6d00b10cd;hp=0a6277db6a4226330682ed24d6b352de71fbd270;hpb=ea5b4008122b5b51cf7b35808d87a0e930c8d388;p=qemu-server.git diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 0a6277db..97fd9940 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -1143,7 +1143,17 @@ sub phase3_cleanup { } if ($self->{volume_map}) { + my $target_drives = $self->{target_drive}; + + # FIXME: for NBD storage migration we now only update the volid, and + # not the full drivestr from the target node. Workaround that until we + # got some real rescan, to avoid things like wrong format in the drive + delete $conf->{$_} for keys %$target_drives; PVE::QemuConfig->update_volume_ids($conf, $self->{volume_map}); + + for my $drive (keys %$target_drives) { + $conf->{$drive} = $target_drives->{$drive}->{drivestr}; + } PVE::QemuConfig->write_config($vmid, $conf); }