From 3b87a199798c093440c5ffb56da8ff9e40806263 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 25 May 2019 15:31:35 +0700 Subject: [PATCH] Do not start QEMU console if QEMU process is not started. Fixes https://github.com/GNS3/gns3-gui/issues/2712 --- gns3server/compute/qemu/qemu_vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index 332e5813..d715d873 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -972,7 +972,8 @@ class QemuVM(BaseNode): await self._control_vm_commands(set_link_commands) try: - await self.start_wrap_console() + if self.is_running(): + await self.start_wrap_console() except OSError as e: raise QemuError("Could not start Telnet QEMU console {}\n".format(e))