[pve-devel] [PATCH 2/4] convert serial to-new-device-syntax V2

Dietmar Maurer dietmar at proxmox.com
Fri Sep 9 12:24:24 CEST 2011


so all serial devices gets the same ID??

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Derumier Alexandre
> Sent: Freitag, 09. September 2011 10:27
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH 2/4] convert serial to-new-device-syntax V2
> 
> 
> 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 ec4647c..29b304b
> 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -1970,7 +1970,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
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




More information about the pve-devel mailing list