mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 23:43:48 +02:00
parent
a2dfeab315
commit
da72a9501a
@ -41,6 +41,9 @@ class VirtualBox(BaseManager):
|
|||||||
|
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self._vboxmanage_path = None
|
self._vboxmanage_path = None
|
||||||
|
# It seem starting two VM in paralell can be an issue:
|
||||||
|
# https://github.com/GNS3/gns3-server/issues/190
|
||||||
|
self.start_lock = asyncio.Lock()
|
||||||
self._execute_lock = asyncio.Lock()
|
self._execute_lock = asyncio.Lock()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -178,6 +178,7 @@ class VirtualBoxVM(BaseVM):
|
|||||||
if vm_state != "poweroff" and vm_state != "saved":
|
if vm_state != "poweroff" and vm_state != "saved":
|
||||||
raise VirtualBoxError("VirtualBox VM not powered off or saved")
|
raise VirtualBoxError("VirtualBox VM not powered off or saved")
|
||||||
|
|
||||||
|
with (yield from self.manager.start_lock):
|
||||||
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