Try to disable enable remote console for VMware to see if it's the source of timeout errors

Ref https://github.com/GNS3/gns3-gui/issues/1632
This commit is contained in:
Julien Duponchelle 2016-11-02 18:59:09 +01:00
parent 21ec2a6271
commit 7c981f9322
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -442,15 +442,15 @@ class VMwareVM(BaseNode):
if nio: if nio:
yield from self._add_ubridge_connection(nio, adapter_number) yield from self._add_ubridge_connection(nio, adapter_number)
if self._enable_remote_console and self._console is not None: # if self._enable_remote_console and self._console is not None:
try: # try:
if sys.platform.startswith("win"): # if sys.platform.startswith("win"):
yield from wait_for_named_pipe_creation(self._get_pipe_name()) # yield from wait_for_named_pipe_creation(self._get_pipe_name())
else: # else:
yield from wait_for_file_creation(self._get_pipe_name()) # wait for VMware to create the pipe file. # yield from wait_for_file_creation(self._get_pipe_name()) # wait for VMware to create the pipe file.
except asyncio.TimeoutError: # except asyncio.TimeoutError:
raise VMwareError('Pipe file "{}" for remote console has not been created by VMware'.format(self._get_pipe_name())) # raise VMwareError('Pipe file "{}" for remote console has not been created by VMware'.format(self._get_pipe_name()))
self._start_remote_console() # self._start_remote_console()
except VMwareError: except VMwareError:
yield from self.stop() yield from self.stop()
raise raise