[pve-devel] [PATCH 06/11] convert old monitor syntax to chardev

Derumier Alexandre aderumier at odiso.com
Wed Sep 7 15:34:41 CEST 2011


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

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index af9ab3c..f666d5d 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1882,7 +1882,8 @@ sub config_to_command {
     my $use_virtio = 0;
 
     my $socket = monitor_socket ($vmid);
-    push @$cmd, '-monitor', "unix:$socket,server,nowait";
+    push @$cmd, '-chardev', "socket,id=monitor,path=$socket,server,nowait";
+    push @$cmd, '-mon', "chardev=monitor,mode=readline";
 
     $socket = vnc_socket ($vmid);
     push @$cmd,  '-vnc', "unix:$socket,x509,password";
-- 
1.7.2.5



More information about the pve-devel mailing list