1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Merge pull request #63 from Raizo62/master

Add snapshot named reset to linked cloned Vbox
This commit is contained in:
Jeremy Grossmann 2015-01-11 17:16:16 -07:00
commit 14cc6d414f

View File

@ -778,6 +778,13 @@ class VirtualBoxVM(object):
"--register"] "--register"]
result = self._execute("clonevm", args) result = self._execute("clonevm", args)
args = [self._name,
"take",
"reset"]
result = self._execute("snapshot", args)
self._vmname = self._name self._vmname = self._name
self._execute("setextradata", [self._vmname, "GNS3/Clone", "yes"]) self._execute("setextradata", [self._vmname, "GNS3/Clone", "yes"])
log.debug("cloned VirtualBox VM: {}".format(result)) log.debug("cloned VirtualBox VM: {}".format(result))