Will be required for generating the blockdev starting with machine version 10.0.
Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> --- src/PVE/API2/Qemu.pm | 2 ++ src/PVE/QemuServer.pm | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm index 1aa3b358..2e6358e4 100644 --- a/src/PVE/API2/Qemu.pm +++ b/src/PVE/API2/Qemu.pm @@ -530,6 +530,7 @@ my sub create_disks : prototype($$$$$$$$$$$) { $live_import_mapping->{$ds} = { path => $path, format => $source_format, + volid => $source, }; $live_import_mapping->{$ds}->{'delete-after-finish'} = $source if $needs_extraction; @@ -574,6 +575,7 @@ my sub create_disks : prototype($$$$$$$$$$$) { $live_import_mapping->{$ds} = { path => $source, format => $source_format, + volid => $source, }; } else { (undef, $dst_volid) = PVE::QemuServer::ImportDisk::do_import( diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm index 4529e270..05c19390 100644 --- a/src/PVE/QemuServer.pm +++ b/src/PVE/QemuServer.pm @@ -7095,8 +7095,9 @@ sub live_import_from_files { if !exists($conf->{$dev}); my $info = $mapping->{$dev}; - my ($format, $path) = $info->@{qw(format path)}; + my ($format, $path, $volid) = $info->@{qw(format path volid)}; die "missing path for '$dev' mapping\n" if !$path; + die "missing volid for '$dev' mapping\n" if !$volid; die "missing format for '$dev' mapping\n" if !$format; die "invalid format '$format' for '$dev' mapping\n" if !grep { $format eq $_ } qw(raw qcow2 vmdk); -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel