[pve-devel] [PATCH qemu-server v4 2/8] api: clone_vm: follow guest-fsfreeze setting

Maximiliano Sandoval m.sandoval at proxmox.com
Fri Jan 2 15:35:37 CET 2026


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 190878de..fc20c1c4 100644
--- a/src/PVE/API2/Qemu.pm
+++ b/src/PVE/API2/Qemu.pm
@@ -4556,6 +4556,9 @@ __PACKAGE__->register_method({
                     $dest_info->{efisize} = PVE::QemuServer::get_efivars_size($oldconf)
                         if $opt eq 'efidisk0';
 
+                    my $qga = $oldconf->{agent}
+                        && PVE::QemuServer::Agent::get_qga_key($oldconf, 'guest-fsfreeze') // 1;
+
                     my $newdrive = PVE::QemuServer::clone_disk(
                         $storecfg,
                         $source_info,
@@ -4564,7 +4567,7 @@ __PACKAGE__->register_method({
                         $newvollist,
                         $jobs,
                         $completion,
-                        $oldconf->{agent},
+                        $qga,
                         $clonelimit,
                     );
 
-- 
2.47.3





More information about the pve-devel mailing list