[pve-devel] [PATCH 3/4] convert parallel device to new qemu syntax V2

Derumier Alexandre aderumier at odiso.com
Fri Sep 9 10:27:23 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 29b304b..e76fc80 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1982,7 +1982,8 @@ sub config_to_command {
 	foreach my $dev (@dl) {
 	    next if !$dev;
 	    if (-c $dev) {
-		push @$cmd, '-parallel', "$dev";
+                push @$cmd, '-chardev', "parport,id=parallel0,path=$dev";
+                push @$cmd, '-device', "isa-parallel,chardev=parallel0";
 	    }
 	}
     }
-- 
1.7.2.5




More information about the pve-devel mailing list