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

Alexandre Derumier aderumier at odiso.com
Tue May 29 08:12:10 CEST 2012


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



More information about the pve-devel mailing list