[pve-devel] [PATCH qemu-server v5 9/9] api: import: follow guest-fsfreeze setting
Maximiliano Sandoval
m.sandoval at proxmox.com
Mon Jan 5 13:16:52 CET 2026
This branch is triggered when we import-from a disk of a running VM.
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
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
More information about the pve-devel
mailing list