1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-15 12:59:06 +00:00

VirtualBox VMs can only be started if powered off. Fixes #299.

This commit is contained in:
grossmj 2015-09-08 01:20:46 -06:00
parent 4d6626e849
commit c992cabb28

View File

@ -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()