From e5b18771b86d16bc487af2406b43cd01e9c97bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 25 Nov 2020 11:26:35 +0100 Subject: [PATCH] status: skip query-proxmox-support if VM is offline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit otherwise pvestatd will print lots of warnings.. Signed-off-by: Fabian Grünbichler --- PVE/QemuServer.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 6966717b..0103386e 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2750,6 +2750,8 @@ sub vmstatus { foreach my $vmid (keys %$list) { next if $opt_vmid && ($vmid ne $opt_vmid); + next if !$res->{$vmid}->{pid}; #not running + # we can't use the $qmpclient since it might have already aborted on # 'query-balloon', but this might also fail for older versions... my $qemu_support = eval { mon_cmd($vmid, "query-proxmox-support") };