(self, vm, name)
Create named snapshot of virtual machine
Create named snapshot of virtual machine
Create named snapshot of virtual machine
def _create_snapshot(self, vm, name):
        """Create named snapshot of virtual machine"""
        log.info(
            "Creating snapshot %s for machine %s",
            name, vm.summary.config.name
        )

        task = vm.CreateSnapshot_Task(name=name,
                                      description="Created by Cuckoo sandbox",
                                      memory=True,
                                      quiesce=False)
        try:
            self._wait_task(task)
        except CuckooMachineError as e:
            raise CuckooMachineError("CreateSnapshot: %s" % e)
def _create_snapshot ( self , vm , name ) : log . info ( "Creating snapshot %s for machine %s" , name , vm . summary . config . name ) task = vm . CreateSnapshot_Task ( name = name , description = "Created by Cuckoo sandbox" , memory = True , quiesce = False ) try : self . _wait_task ( task ) except CuckooMachineError as e : raise CuckooMachineError ( "CreateSnapshot: %s" % e )