code: def allocate(self):
          
          disk_path = self.provider_image
  
          self._hypervisor = libvirt.open(
              self.configuration.get('hypervisor', 'vbox:///session'))
  
          self._domain = domain_create(self._hypervisor, self.identifier,
                                       self.configuration['domain'], disk_path)
docs: Initializes libvirt resources.