code: def _provision_vm(name=None, session=None):
      '''
      Provision vm right after clone/copy
      '''
      if session is None:
          session = _get_session()
      log.info('Provisioning VM %s', name)
      vm = _get_vm(name, session)
      task = session.xenapi.Async.VM.provision(vm)
      _run_async_task(task, sessionf _provision_vm(name=None, session=None):
      '''
      Provision vm right after clone/copy
      '''
      if session is None:
          session = _get_session()
      log.info('Provisioning VM %s', name)
      vm = _get_vm(name, session)
      task = session.xenapi.Async.VM.provision(vm)
      _run_async_task(task, session)
docs: Provision vm right after clone/copy