diff --git a/gns3server/compute/iou/iou_vm.py b/gns3server/compute/iou/iou_vm.py index 1669c613..f8146654 100644 --- a/gns3server/compute/iou/iou_vm.py +++ b/gns3server/compute/iou/iou_vm.py @@ -547,14 +547,19 @@ class IOUVM(BaseNode): :param returncode: Process returncode """ - log.info("{} process has stopped, return code: {}".format(process_name, returncode)) self._terminate_process_iou() self._terminate_process_iouyap() self._ioucon_thread_stop_event.set() + if returncode != 0: - self.project.emit("log.error", {"message": "{} process has stopped, return code: {}\n{}".format(process_name, - returncode, - self.read_iou_stdout())}) + log.info("{} process has stopped, return code: {}".format(process_name, returncode)) + else: + if returncode == 11: + message = "{} process has stopped, return code: {}. This could be an issue with the image using a different image can fix the issue.\n{}".format(process_name, returncode, self.read_iou_stdout()) + else: + message = "{} process has stopped, return code: {}\n{}".format(process_name, returncode, self.read_iou_stdout()) + log.warn(message) + self.project.emit("log.error", {"message": message}) def _rename_nvram_file(self): """ diff --git a/gns3server/compute/virtualbox/__init__.py b/gns3server/compute/virtualbox/__init__.py index 2e3fb69b..3b716bb9 100644 --- a/gns3server/compute/virtualbox/__init__.py +++ b/gns3server/compute/virtualbox/__init__.py @@ -68,7 +68,7 @@ class VirtualBox(BaseManager): else: vboxmanage_path = "vboxmanage" - if not os.path.abspath(vboxmanage_path): + if not os.path.isabs(vboxmanage_path): vboxmanage_path = shutil.which(vboxmanage_path) if not vboxmanage_path: diff --git a/gns3server/compute/vmware/__init__.py b/gns3server/compute/vmware/__init__.py index 051b90a3..9fda4c50 100644 --- a/gns3server/compute/vmware/__init__.py +++ b/gns3server/compute/vmware/__init__.py @@ -107,7 +107,7 @@ class VMware(BaseManager): else: vmrun_path = "vmrun" - if not os.path.abspath(vmrun_path): + if not os.path.isabs(vmrun_path): vmrun_path = shutil.which(vmrun_path) if not vmrun_path: