From 922da7c90f54ec13e8381a56e6e1fe6b9b728c02 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 12 Dec 2016 15:03:32 +0100 Subject: [PATCH] Raise error when we can't found VboxManage at GNS3 VM startup Fix #824 --- gns3server/compute/virtualbox/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gns3server/compute/virtualbox/__init__.py b/gns3server/compute/virtualbox/__init__.py index b8de6d2a..acfd9735 100644 --- a/gns3server/compute/virtualbox/__init__.py +++ b/gns3server/compute/virtualbox/__init__.py @@ -93,6 +93,9 @@ class VirtualBox(BaseManager): vboxmanage_path = self.vboxmanage_path if not vboxmanage_path: vboxmanage_path = self.find_vboxmanage() + if not vboxmanage_path: + raise VirtualBoxError("Could not found VBoxManage") + command = [vboxmanage_path, "--nologo", subcommand] command.extend(args) command_string = " ".join(command)