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:
parent
4d6626e849
commit
c992cabb28
@ -194,9 +194,9 @@ class VirtualBoxVM(BaseVM):
|
|||||||
yield from self.resume()
|
yield from self.resume()
|
||||||
return
|
return
|
||||||
|
|
||||||
# VM must be powered off and in saved state to start it
|
# VM must be powered off to start it
|
||||||
if vm_state != "poweroff" and vm_state != "saved":
|
if vm_state != "poweroff":
|
||||||
raise VirtualBoxError("VirtualBox VM not powered off or saved")
|
raise VirtualBoxError("VirtualBox VM not powered off")
|
||||||
|
|
||||||
yield from self._set_network_options()
|
yield from self._set_network_options()
|
||||||
yield from self._set_serial_console()
|
yield from self._set_serial_console()
|
||||||
|
Loading…
Reference in New Issue
Block a user