mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-23 23:38:21 +00:00
VirtualBox VMs can only be started if powered off. Fixes #299.
This commit is contained in:
parent
4d6626e849
commit
c992cabb28
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user