]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer.pm
add nowarn to qga_check_running
[qemu-server.git] / PVE / QemuServer.pm
index 9c4ac94c75a1e9a3164c2f0d47bca688fdb43a90..00e16694c67a1f837d5fb58e4e4e66d7cc47fed9 100644 (file)
@@ -6095,11 +6095,11 @@ sub do_snapshots_with_qemu {
 }
 
 sub qga_check_running {
-    my ($vmid) = @_;
+    my ($vmid, $nowarn) = @_;
 
     eval { vm_mon_cmd($vmid, "guest-ping", timeout => 3); };
     if ($@) {
-       warn "Qemu Guest Agent is not running - $@";
+       warn "Qemu Guest Agent is not running - $@" if !$nowarn;
        return 0;
     }
     return 1;