From c992cabb2882e1dd1b89f46ddb2b62680feef735 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 8 Sep 2015 01:20:46 -0600 Subject: [PATCH] VirtualBox VMs can only be started if powered off. Fixes #299. --- gns3server/modules/virtualbox/virtualbox_vm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3server/modules/virtualbox/virtualbox_vm.py b/gns3server/modules/virtualbox/virtualbox_vm.py index 50c4425e..4d93995a 100644 --- a/gns3server/modules/virtualbox/virtualbox_vm.py +++ b/gns3server/modules/virtualbox/virtualbox_vm.py @@ -194,9 +194,9 @@ class VirtualBoxVM(BaseVM): yield from self.resume() return - # VM must be powered off and in saved state to start it - if vm_state != "poweroff" and vm_state != "saved": - raise VirtualBoxError("VirtualBox VM not powered off or saved") + # VM must be powered off to start it + if vm_state != "poweroff": + raise VirtualBoxError("VirtualBox VM not powered off") yield from self._set_network_options() yield from self._set_serial_console()