code: def domain_create(hypervisor, identifier, configuration, network_name=None):
      
      mounts = []
  
      with open(configuration['configuration']) as config_file:
          domain_config = config_file.read()
  
      if 'filesystem' in configuration:
          if isinstance(configuration['filesystem'], (list, tuple)):
              for mount in configuration['filesystem']:
                  mounts.append(mountpoint(mount, identifier))
          else:
              mounts.append(mountpoint(configuration['filesystem'], identifier))
  
      xml_config = domain_xml(identifier, domain_config, tuple(mounts), network_name=network_name)
  
      return hypervisor.defineXML(xml_config)
docs: libvirt Domain definition.
  
      @raise: ConfigError, IOError, libvirt.libvirtError.