From da6062b96d6cfbd4a0617b1f688f728480b86bed Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Wed, 27 May 2015 14:09:11 +0900 Subject: [PATCH] options: modified conf options for virtual console Change-Id: I024b855833d6e0c472e640255afab412d37545f8 Signed-off-by: SeokYeon Hwang --- .../tizen/emulator/manager/vms/option/CommonOption.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/org/tizen/emulator/manager/vms/option/CommonOption.java b/src/org/tizen/emulator/manager/vms/option/CommonOption.java index 04b7f8b..f9c1b28 100644 --- a/src/org/tizen/emulator/manager/vms/option/CommonOption.java +++ b/src/org/tizen/emulator/manager/vms/option/CommonOption.java @@ -53,9 +53,17 @@ public class CommonOption extends Option { + ",id=con0"); config.addQemuOption("-device isa-serial,chardev=con0"); config.addQemuOption("-device virtio-serial"); - if (EmulatorManager.isLinux()) { - config.addQemuOption("-chardev socket,path=/tmp/virtcon,server,nowait,id=con1"); - config.addQemuOption("-device virtconsole,chardev=con1"); + if (EmulatorManager.isWin()) { + config.addQemuOption("### virtual console for telnet client"); + config.addQemuOption("#-chardev socket,port=2222,host=0.0.0.0,server,nowait,id=virtcon0"); + config.addQemuOption("#-device virtconsole,chardev=virtcon0"); + } else { + config.addQemuOption("### virtual console for unix socket client"); + config.addQemuOption("#-chardev socket,path=/tmp/virtcon,server,nowait,id=virtcon0"); + config.addQemuOption("#-device virtconsole,chardev=virtcon0"); + config.addQemuOption("### virtual console for telnet client"); + config.addQemuOption("#-chardev socket,port=2222,host=0.0.0.0,server,nowait,id=virtcon1"); + config.addQemuOption("#-device virtconsole,chardev=virtcon1"); } String platformVersion = property.getPropertyValue().version; -- 2.7.4