[pve-devel] [PATCH 07/11] convert serial device to new device syntax

Derumier Alexandre aderumier at odiso.com
Wed Sep 7 15:34:42 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 f666d5d..c99fd7c 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1933,7 +1933,8 @@ sub config_to_command {
 	foreach my $dev (@dl) {
 	    next if !$dev;
 	    if (-c $dev) {
-		push @$cmd, '-serial', "$dev";
+                push @$cmd, '-chardev tty,id=serial0,path=', "$dev";
+                push @$cmd, '-device isa-serial,chardev=serial0';
 	    }
 	}
     }
-- 
1.7.2.5




More information about the pve-devel mailing list