[pve-devel] [PATCH qemu-server] qm agent : check if qga service is running

Alexandre DERUMIER aderumier at odiso.com
Tue May 29 20:55:28 CEST 2018


any comment ?


----- Mail original -----
De: "aderumier" <aderumier at odiso.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Cc: "aderumier" <aderumier at odiso.com>
Envoyé: Lundi 28 Mai 2018 17:36:29
Objet: [PATCH qemu-server] qm agent : check if qga service is running

--- 
PVE/API2/Qemu/Agent.pm | 1 + 
1 file changed, 1 insertion(+) 

diff --git a/PVE/API2/Qemu/Agent.pm b/PVE/API2/Qemu/Agent.pm 
index 9af5d5f..fbc8105 100644 
--- a/PVE/API2/Qemu/Agent.pm 
+++ b/PVE/API2/Qemu/Agent.pm 
@@ -174,6 +174,7 @@ sub register_command { 

die "No Qemu Guest Agent\n" if !defined($conf->{agent}); 
die "VM $vmid is not running\n" if !PVE::QemuServer::check_running($vmid); 
+ die "Qemu Guest Agent is not running\n" if !PVE::QemuServer::qga_check_running($vmid); 

my $cmd = $param->{command} // $command; 
my $res = PVE::QemuServer::vm_mon_cmd($vmid, "guest-$cmd"); 
-- 
2.11.0 



More information about the pve-devel mailing list