[pve-devel] [PATCH 2/2] add qmp listening tcp socket to command line

Alexandre DERUMIER aderumier at odiso.com
Tue May 29 08:26:37 CEST 2012


damn, forget this patch, I can't use same port for each vm ....

BTW, do you have using unix socket or tcp  for qmp ?


----- Mail original ----- 

De: "Alexandre Derumier" <aderumier at odiso.com> 
À: pve-devel at pve.proxmox.com 
Cc: "Alexandre Derumier" <aderumier at odiso.com> 
Envoyé: Mardi 29 Mai 2012 08:12:10 
Objet: [PATCH 2/2] add qmp listening tcp socket to command line 

listening to 0.0.0.0:4444 

Signed-off-by: Alexandre Derumier <aderumier at odiso.com> 
--- 
PVE/QemuServer.pm | 3 +++ 
1 files changed, 3 insertions(+), 0 deletions(-) 

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm 
index 8a56b04..e2febf0 100644 
--- a/PVE/QemuServer.pm 
+++ b/PVE/QemuServer.pm 
@@ -2061,6 +2061,9 @@ sub config_to_command { 
push @$cmd, '-chardev', "socket,id=monitor,path=$socket,server,nowait"; 
push @$cmd, '-mon', "chardev=monitor,mode=readline"; 

+ push @$cmd, '-chardev', "socket,id=qmp,host=0.0.0.0,port=4444,server,nowait"; 
+ push @$cmd, '-mon', "chardev=qmp,mode=control"; 
+ 
$socket = vnc_socket($vmid); 
push @$cmd, '-vnc', "unix:$socket,x509,password"; 

-- 
1.7.2.5 




-- 

-- 




	Alexandre D erumier 
Ingénieur Système 
Fixe : 03 20 68 88 90 
Fax : 03 20 68 90 81 
45 Bvd du Général Leclerc 59100 Roubaix - France 
12 rue Marivaux 75002 Paris - France 
	



More information about the pve-devel mailing list