]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer.pm
status: skip query-proxmox-support if VM is offline
[qemu-server.git] / PVE / QemuServer.pm
index 6966717b06ba3a05d40fc8473b5b27e4ba17ca33..0103386e760bcf46222357893fbcbeed2cb0d567 100644 (file)
@@ -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") };