From 035cbac28e0e366decb794fe4634750363d245d5 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 9 Jan 2017 16:05:29 +0100 Subject: [PATCH] Fix binding console host for VMware and VirtualBox Ref https://github.com/GNS3/gns3-gui/issues/1757 --- gns3server/compute/virtualbox/virtualbox_vm.py | 3 ++- gns3server/compute/vmware/vmware_vm.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/virtualbox/virtualbox_vm.py b/gns3server/compute/virtualbox/virtualbox_vm.py index 1b597197..a56f7c11 100644 --- a/gns3server/compute/virtualbox/virtualbox_vm.py +++ b/gns3server/compute/virtualbox/virtualbox_vm.py @@ -907,7 +907,8 @@ class VirtualBoxVM(BaseNode): writer=self._remote_pipe, binary=True, echo=True) - self._telnet_server = yield from asyncio.start_server(server.run, '127.0.0.1', self.console) + print(self._manager.port_manager.console_host) + self._telnet_server = yield from asyncio.start_server(server.run, self._manager.port_manager.console_host, self.console) @asyncio.coroutine def _stop_remote_console(self): diff --git a/gns3server/compute/vmware/vmware_vm.py b/gns3server/compute/vmware/vmware_vm.py index b6f6d133..a1ed1fdb 100644 --- a/gns3server/compute/vmware/vmware_vm.py +++ b/gns3server/compute/vmware/vmware_vm.py @@ -805,7 +805,7 @@ class VMwareVM(BaseNode): writer=self._remote_pipe, binary=True, echo=True) - self._telnet_server = yield from asyncio.start_server(server.run, '127.0.0.1', self.console) + self._telnet_server = yield from asyncio.start_server(server.run, self._manager.port_manager.console_host, self.console) @asyncio.coroutine def _stop_remote_console(self):