mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
Fix sometimes VirtualBox VM are not loading
Fix https://github.com/GNS3/gns3-server/issues/865
This commit is contained in:
parent
1527a1a4e1
commit
7241063ddf
@ -209,8 +209,9 @@ class VirtualBoxVM(BaseNode):
|
|||||||
if os.path.exists(self._linked_vbox_file()):
|
if os.path.exists(self._linked_vbox_file()):
|
||||||
tree = ET.parse(self._linked_vbox_file())
|
tree = ET.parse(self._linked_vbox_file())
|
||||||
machine = tree.getroot().find("{http://www.virtualbox.org/}Machine")
|
machine = tree.getroot().find("{http://www.virtualbox.org/}Machine")
|
||||||
machine.set("uuid", "{" + self.id + "}")
|
if machine:
|
||||||
tree.write(self._linked_vbox_file())
|
machine.set("uuid", "{" + self.id + "}")
|
||||||
|
tree.write(self._linked_vbox_file())
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def check_hw_virtualization(self):
|
def check_hw_virtualization(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user