From cbbb89f69cf48eaeb0716ff69565b89718ce42a5 Mon Sep 17 00:00:00 2001 From: Raizo62 Date: Sun, 11 Jan 2015 12:22:59 +0000 Subject: [PATCH] Add snapshot named reset to linked cloned Vbox --- gns3server/modules/virtualbox/virtualbox_vm.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gns3server/modules/virtualbox/virtualbox_vm.py b/gns3server/modules/virtualbox/virtualbox_vm.py index 2ff943f5..13aca08e 100644 --- a/gns3server/modules/virtualbox/virtualbox_vm.py +++ b/gns3server/modules/virtualbox/virtualbox_vm.py @@ -778,6 +778,13 @@ class VirtualBoxVM(object): "--register"] result = self._execute("clonevm", args) + + args = [self._name, + "take", + "reset"] + + result = self._execute("snapshot", args) + self._vmname = self._name self._execute("setextradata", [self._vmname, "GNS3/Clone", "yes"]) log.debug("cloned VirtualBox VM: {}".format(result))