docs: def _clone_vm(image=None, name=None, session=None):
      '''
      Create VM by cloning
  
      This is faster and should be used if source and target are
      in the same storage repository
  
      '''
      if session is None:
          session = _get_session()
      log.debug('Creating VM %s by cloning %s', name, image)
      source = _get_vm(image, session)
      task = session.xenapi.Async.VM.clone(source, name)
      _run_async_task(task, session)