parameters: (self, vm, name)
docstring: Create named snapshot of virtual machine
docstring_summary: Create named snapshot of virtual machine
docstring_tokens: Create named snapshot of virtual machine
function: 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)
function_tokens: 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 )