1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00

Fix sometimes VirtualBox VM are not loading

Fix  https://github.com/GNS3/gns3-server/issues/865
This commit is contained in:
Julien Duponchelle 2017-01-13 17:20:02 +01:00
parent 1527a1a4e1
commit 7241063ddf
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -209,6 +209,7 @@ class VirtualBoxVM(BaseNode):
if os.path.exists(self._linked_vbox_file()):
tree = ET.parse(self._linked_vbox_file())
machine = tree.getroot().find("{http://www.virtualbox.org/}Machine")
if machine:
machine.set("uuid", "{" + self.id + "}")
tree.write(self._linked_vbox_file())