This branch is triggered when we import-from a disk of a running VM.

Signed-off-by: Maximiliano Sandoval <[email protected]>
---
 src/PVE/API2/Qemu.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
index fc20c1c4..bd2eab97 100644
--- a/src/PVE/API2/Qemu.pm
+++ b/src/PVE/API2/Qemu.pm
@@ -374,6 +374,9 @@ my $import_from_volid = sub {
 
         my ($src_storeid) = PVE::Storage::parse_volume_id($src_volid);
 
+        my $qga = $src_conf->{agent}
+            && PVE::QemuServer::Agent::get_qga_key($src_conf, 
'guest-fsfreeze') // 1;
+
         return PVE::QemuServer::clone_disk(
             $storecfg,
             $source_info,
@@ -382,7 +385,7 @@ my $import_from_volid = sub {
             $vollist,
             undef,
             undef,
-            $src_conf->{agent},
+            $qga,
             PVE::Storage::get_bandwidth_limit('clone', [$src_storeid, 
$dest_info->{storage}]),
         );
     };
-- 
2.47.3



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to