<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I believe you need libvirt-daemon-driver-libxl</p>
    <p>Here is my libvirt installed RPMs (Its a stable system so does
      not get frequent updates so may be older than yours)</p>
    <p>libvirt-daemon-driver-xen-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-kvm-3.2.1-402.el7.x86_64<br>
      libvirt-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-secret-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-storage-core-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-storage-logical-3.2.1-402.el7.x86_64<br>
      libvirt-libs-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-config-nwfilter-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-storage-disk-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-nodedev-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-libxl-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-qemu-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-storage-3.2.1-402.el7.x86_64<br>
      libvirt-glib-1.0.0-1.el7.x86_64<br>
      libvirt-daemon-driver-storage-mpath-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-config-network-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-storage-rbd-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-interface-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-storage-iscsi-3.2.1-402.el7.x86_64<br>
      libvirt-gobject-1.0.0-1.el7.x86_64<br>
      libvirt-daemon-driver-storage-scsi-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-network-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-lxc-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-storage-gluster-3.2.1-402.el7.x86_64<br>
      libvirt-daemon-driver-nwfilter-3.2.1-402.el7.x86_64<br>
      libvirt-python-3.2.0-3.el7_4.1.x86_64<br>
      libvirt-client-3.2.1-402.el7.x86_64<br>
      libvirt-gconfig-1.0.0-1.el7.x86_64<br>
      <br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 2/4/19 6:57 PM, Lianjie Cao wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADPO750qCr7YwijffG21VL1pxD+wxfMTLrD-XmwvwN381WRsdw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div>Hi,</div>
              <div><br>
              </div>
              <div>I am installing OpenStack on Red Hat 7.5. For Nova
                compute component, I choose libvirt and Xen.</div>
              <div>However, I am running into some problems. It seems
                libvirt is unable to communicate with Xen.</div>
              <div><br>
              </div>
              <div>Xen installation:</div>
              <div>I installed Xen410 using "Xen make easy" <a
                  href="https://xen.crc.id.au/support/guides/install/"
                  moz-do-not-send="true">https://xen.crc.id.au/support/guides/install/</a>.
                Here is a list of packages installed and verification
                that Xen is running.</div>
              <div><br>
              </div>
              <div>
                <div><font face="monospace, monospace"># lsb_release -a</font></div>
                <div><font face="monospace, monospace">LSB Version:   
                    :core-4.1-amd64:core-4.1-noarch</font></div>
                <div><font face="monospace, monospace">Distributor ID:
                    RedHatEnterpriseServer</font></div>
                <div><font face="monospace, monospace">Description:   
                    Red Hat Enterprise Linux Server release 7.5 (Maipo)</font></div>
                <div><font face="monospace, monospace">Release:       
                    7.5</font></div>
                <div><font face="monospace, monospace">Codename:     
                     Maipo</font></div>
              </div>
              <div><br>
              </div>
              <div><font face="monospace, monospace"># yum list | grep
                  xen</font></div>
              <div><font face="monospace, monospace"> * kernel-xen: <a
                    href="http://us3.mirror.crc.id.au"
                    moz-do-not-send="true">us3.mirror.crc.id.au</a></font></div>
              <div><font face="monospace, monospace"> *
                  kernel-xen-extra: <a
                    href="http://us3.mirror.crc.id.au"
                    moz-do-not-send="true">us3.mirror.crc.id.au</a></font></div>
              <div><font face="monospace, monospace">kernel-xen.x86_64 
                                4.14.94-6.el7xen @kernel-xen</font></div>
              <div><font face="monospace, monospace">kernel-xen.x86_64 
                                4.14.97-6.el7xen @kernel-xen</font></div>
              <div><font face="monospace, monospace">kernel-xen-devel.x86_64 
                          4.14.97-6.el7xen @kernel-xen</font></div>
              <div><font face="monospace, monospace">kernel-xen-firmware.x86_64 
                       4.14.97-6.el7xen @kernel-xen</font></div>
              <div><font face="monospace, monospace">kernel-xen-headers.x86_64 
                        4.14.97-6.el7xen @kernel-xen</font></div>
              <div><font face="monospace, monospace">kernel-xen-release.noarch 
                        1:7-13           @kernel-xen</font></div>
              <div><font face="monospace, monospace">xen410.x86_64     
                                4.10.2-7.el7     @kernel-xen</font></div>
              <div><font face="monospace, monospace">xen410-devel.x86_64 
                              4.10.2-7.el7     @kernel-xen</font></div>
              <div><font face="monospace, monospace">xen410-hypervisor.x86_64 
                         4.10.2-7.el7     @kernel-xen</font></div>
              <div><font face="monospace, monospace">xen410-libs.x86_64 
                               4.10.2-7.el7     @kernel-xen</font></div>
              <div><font face="monospace, monospace">xen410-licenses.x86_64 
                           4.10.2-7.el7     @kernel-xen</font></div>
              <div><font face="monospace, monospace">xen410-ocaml.x86_64 
                              4.10.2-7.el7     @kernel-xen</font></div>
              <div><font face="monospace, monospace">xen410-runtime.x86_64 
                            4.10.2-7.el7     @kernel-xen</font></div>
              <div><font face="monospace, monospace">xen46-licenses.x86_64 
                            4.6.6-16.el7     @kernel-xen</font></div>
              <div><br>
              </div>
              <div><font face="monospace, monospace"># xl info</font></div>
              <div><font face="monospace, monospace">host               
                     : <a
                    href="http://nfv-sec-cn01-pa.labs.hpecorp.net"
                    moz-do-not-send="true">nfv-sec-cn01-pa.labs.hpecorp.net</a></font></div>
              <div><font face="monospace, monospace">release           
                      : 4.14.97-6.el7xen.x86_64</font></div>
              <div><font face="monospace, monospace">version           
                      : #2 SMP Fri Feb 1 00:33:52 AEDT 2019</font></div>
              <div><font face="monospace, monospace">machine           
                      : x86_64</font></div>
              <div><font face="monospace, monospace">nr_cpus           
                      : 32</font></div>
              <div><font face="monospace, monospace">max_cpu_id         
                     : 63</font></div>
              <div><font face="monospace, monospace">nr_nodes           
                     : 2</font></div>
              <div><font face="monospace, monospace">cores_per_socket   
                     : 8</font></div>
              <div><font face="monospace, monospace">threads_per_core   
                     : 2</font></div>
              <div><font face="monospace, monospace">cpu_mhz           
                      : 1995</font></div>
              <div><font face="monospace, monospace">hw_caps           
                      :
                  bfebfbff:17bee3ff:2c100800:00000001:00000001:00000000:00000000:00000100</font></div>
              <div><font face="monospace, monospace">virt_caps         
                      : hvm hvm_directio</font></div>
              <div><font face="monospace, monospace">total_memory       
                     : 131034</font></div>
              <div><font face="monospace, monospace">free_memory       
                      : 96587</font></div>
              <div><font face="monospace, monospace">sharing_freed_memory 
                   : 0</font></div>
              <div><font face="monospace, monospace">sharing_used_memory 
                    : 0</font></div>
              <div><font face="monospace, monospace">outstanding_claims 
                     : 0</font></div>
              <div><font face="monospace, monospace">free_cpus         
                      : 0</font></div>
              <div><font face="monospace, monospace">xen_major         
                      : 4</font></div>
              <div><font face="monospace, monospace">xen_minor         
                      : 10</font></div>
              <div><font face="monospace, monospace">xen_extra         
                      : .3-pre</font></div>
              <div><font face="monospace, monospace">xen_version       
                      : 4.10.3-pre</font></div>
              <div><font face="monospace, monospace">xen_caps           
                     : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
                  hvm-3.0-x86_32p hvm-3.0-x86_64</font></div>
              <div><font face="monospace, monospace">xen_scheduler     
                      : credit</font></div>
              <div><font face="monospace, monospace">xen_pagesize       
                     : 4096</font></div>
              <div><font face="monospace, monospace">platform_params   
                      : virt_start=0xffff800000000000</font></div>
              <div><font face="monospace, monospace">xen_changeset     
                      : Tue Nov 20 15:45:04 2018 +0100 git:b6e203b-dirty</font></div>
              <div><font face="monospace, monospace">xen_commandline   
                      : placeholder dom0_mem=32768M cpufreq=xen
                  dom0_max_vcpus=8 dom0_vcpus_pin console=tty0
                  console=com1 com1=115200,8n1</font></div>
              <div><font face="monospace, monospace">cc_compiler       
                      : gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)</font></div>
              <div><font face="monospace, monospace">cc_compile_by     
                      : mockbuild</font></div>
              <div><font face="monospace, monospace">cc_compile_domain 
                      :</font></div>
              <div><font face="monospace, monospace">cc_compile_date   
                      : Wed Nov 21 02:09:26 AEDT 2018</font></div>
              <div><font face="monospace, monospace">build_id           
                     : 2d53c8b15aaf737b0351e78ad863eb5a530e7df0</font></div>
              <div><font face="monospace, monospace">xend_config_format 
                     : 4</font></div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>libvirt was installed as dependencies of
                openstack-nova-compute from yum.</div>
              <div><br>
              </div>
              <div>
                <div><font face="monospace, monospace">==================================================================================================================================================================================================</font></div>
                <div><font face="monospace, monospace"> Package         
                                                      Arch             
                            Version                               
                    Repository                                         
                                    Size</font></div>
                <div><font face="monospace, monospace">==================================================================================================================================================================================================</font></div>
                <div><font face="monospace, monospace">Installing:</font></div>
                <div><font face="monospace, monospace"> openstack-nova-compute 
                                               noarch                   
                    1:17.0.9-1.el7                       
                     openstack-queens                                   
                                   7.9 k</font></div>
                <div><font face="monospace, monospace">Installing for
                    dependencies:</font></div>
                <div><font face="monospace, monospace"> OpenIPMI-modalias 
                                                    x86_64             
                          2.0.23-2.el7                         
                     RedHat-7Server-x86_64-errata                       
                                    16 k</font></div>
                <div><font face="monospace, monospace"> attr           
                                                       x86_64           
                            2.4.46-13.el7                         
                    RedHat-7Server-x86_64-errata                       
                                    66 k</font></div>
                <div><font face="monospace, monospace"> dosfstools     
                                                       x86_64           
                            3.0.20-9.el7                         
                     RedHat-7.1Server-x86_64                           
                                    101 k</font></div>
                <div><font face="monospace, monospace"> fuse           
                                                       x86_64           
                            2.9.2-10.el7                         
                     RedHat-7Server-x86_64-errata                       
                                    86 k</font></div>
                <div><font face="monospace, monospace"> gdisk           
                                                      x86_64           
                            0.8.6-5.el7                           
                    RedHat-7.1Server-x86_64                             
                                  187 k</font></div>
                <div><font face="monospace, monospace"> glusterfs-cli   
                                                      x86_64           
                            3.8.4-53.el7                         
                     RedHat-7Server-x86_64-errata                       
                                   176 k</font></div>
                <div><font face="monospace, monospace"> hivex           
                                                      x86_64           
                            1.3.10-6.9.el7                       
                     RedHat-7Server-x86_64-errata                       
                                   101 k</font></div>
                <div><font face="monospace, monospace"> ipmitool       
                                                       x86_64           
                            1.8.18-7.el7                         
                     RedHat-7Server-x86_64-errata                       
                                   441 k</font></div>
                <div><font face="monospace, monospace"> libguestfs     
                                                       x86_64           
                            1:1.36.10-6.el7_5.2                   
                    RedHat-7Server-x86_64-errata                       
                                   1.9 M</font></div>
                <div><font face="monospace, monospace"> libreport-filesystem 
                                                 x86_64                 
                      2.1.11-40.el7                         
                    RedHat-7Server-x86_64-errata                       
                                    39 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon 
                                                       x86_64           
                            3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   852 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-interface 
                                      x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   220 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-network 
                                        x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   389 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-nodedev 
                                        x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   221 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-nwfilter 
                                       x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   243 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-qemu 
                                           x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   714 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-secret 
                                         x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   210 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage 
                                        x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   173 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage-core 
                                   x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   405 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage-disk 
                                   x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   182 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage-gluster 
                                x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   183 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage-iscsi 
                                  x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   179 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage-logical 
                                x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   183 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage-mpath 
                                  x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   178 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage-rbd 
                                    x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   185 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-driver-storage-scsi 
                                   x86_64                   
                    3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   179 k</font></div>
                <div><font face="monospace, monospace"> libvirt-daemon-kvm 
                                                   x86_64               
                        3.9.0-14.el7_5.6                     
                     RedHat-7Server-x86_64-errata                       
                                   173 k</font></div>
                <div><font face="monospace, monospace"> libvirt-python 
                                                       x86_64           
                            3.9.0-1.el7                           
                    RedHat-7Server-x86_64-errata                       
                                   335 k</font></div>
                <div><font face="monospace, monospace"> mdadm           
                                                      x86_64           
                            4.0-13.el7                           
                     RedHat-7Server-x86_64-errata                       
                                   431 k</font></div>
                <div><font face="monospace, monospace"> mtools         
                                                       x86_64           
                            4.0.18-5.el7                         
                     RedHat-7.1Server-x86_64                           
                                    203 k</font></div>
                <div><font face="monospace, monospace"> perl-hivex     
                                                       x86_64           
                            1.3.10-6.9.el7                       
                     RedHat-7Server-x86_64-errata                       
                                    41 k</font></div>
                <div><font face="monospace, monospace"> python-libguestfs 
                                                    x86_64             
                          1:1.36.10-6.el7_5.2                   
                    RedHat-7Server-x86_64-errata                       
                                   203 k</font></div>
                <div><font face="monospace, monospace"> scrub           
                                                      x86_64           
                            2.5.2-7.el7                           
                    RedHat-7Server-x86_64-errata                       
                                    41 k</font></div>
                <div><font face="monospace, monospace"> squashfs-tools 
                                                       x86_64           
                            4.3-0.21.gitaae0aff4.el7             
                     RedHat-7.1Server-x86_64                           
                                    101 k</font></div>
                <div><font face="monospace, monospace"> supermin5       
                                                      x86_64           
                            5.1.19-1.el7                         
                     RedHat-7Server-x86_64-errata                       
                                   631 k</font></div>
                <div><font face="monospace, monospace"> syslinux       
                                                       x86_64           
                            4.05-13.el7                           
                    RedHat-7Server-x86_64-errata                       
                                   990 k</font></div>
                <div><font face="monospace, monospace"> syslinux-extlinux 
                                                    x86_64             
                          4.05-13.el7                           
                    RedHat-7Server-x86_64-errata                       
                                   363 k</font></div>
              </div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>However, after installation, Nova complains "no
                connection driver available for xen:///".</div>
              <div>Also, virsh cannot connect Xen.</div>
              <div><br>
              </div>
              <div><font face="monospace, monospace">/var/log/nova/nova-compute.log</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:29.965 5091 INFO nova.service [-] Starting
                  compute node (version 18.1.0-1.el7)</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host [-]
                  Connection to libvirt failed: no connection driver
                  available for xen:///: libvirtError: no connection
                  driver available for xen:///</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host
                  Traceback (most recent call last):</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
"/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 460,
                  in get_connection</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   
                   conn = self._get_connection()</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
"/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 443,
                  in _get_connection</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   
                   {'msg': ex})</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
                  __exit__</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   
                   self.force_reraise()</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in
                  force_reraise</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   
                   six.reraise(self.type_, self.value, self.tb)</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
"/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 432,
                  in _get_connection</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   
                   self._wrapped_conn = self._get_new_connection()</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
"/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 386,
                  in _get_new_connection</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   
                   wrapped_conn = self._connect(self._uri,
                  self._read_only)</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
"/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 242,
                  in _connect</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   
                   libvirt.openAuth, uri, auth, flags)</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
                  "/usr/lib/python2.7/site-packages/eventlet/tpool.py",
                  line 148, in proxy_call</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host     rv
                  = execute(f, *args, **kwargs)</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
                  "/usr/lib/python2.7/site-packages/eventlet/tpool.py",
                  line 129, in execute</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   
                   six.reraise(c, e, tb)</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
                  "/usr/lib/python2.7/site-packages/eventlet/tpool.py",
                  line 83, in tworker</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host     rv
                  = meth(*args, **kwargs)</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host   File
                  "/usr/lib64/python2.7/site-packages/libvirt.py", line
                  105, in openAuth</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host     if
                  ret is None:raise libvirtError('virConnectOpenAuth()
                  failed')</font></div>
              <div><font face="monospace, monospace">2019-02-01
                  15:13:30.023 5091 ERROR nova.virt.libvirt.host
                  libvirtError: no connection driver available for
                  xen:///</font></div>
              <div><br>
              </div>
              <div><font face="monospace, monospace"># virsh -c xen:///
                  list</font></div>
              <div><font face="monospace, monospace">error: failed to
                  connect to the hypervisor</font></div>
              <div><font face="monospace, monospace">error: no
                  connection driver available for xen:///</font></div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>Then I check the connection drivers of libvirt. It
                seems the daemon driver for xen is missing.</div>
              <div><br>
              </div>
              <div><font face="monospace, monospace"># ls -l
                  /usr/lib64/libvirt/connection-driver/</font></div>
              <div><font face="monospace, monospace">total 2664</font></div>
              <div><font face="monospace, monospace">-rwxr-xr-x 1 root
                  root  115976 Jun  5  2018 libvirt_driver_interface.so</font></div>
              <div><font face="monospace, monospace">-rwxr-xr-x 1 root
                  root  292008 Jun  5  2018 libvirt_driver_lxc.so</font></div>
              <div><font face="monospace, monospace">-rwxr-xr-x 1 root
                  root  169424 Jun  5  2018 libvirt_driver_network.so</font></div>
              <div><font face="monospace, monospace">-rwxr-xr-x 1 root
                  root  119720 Jun  5  2018 libvirt_driver_nodedev.so</font></div>
              <div><font face="monospace, monospace">-rwxr-xr-x 1 root
                  root  174216 Jun  5  2018 libvirt_driver_nwfilter.so</font></div>
              <div><font face="monospace, monospace">-rwxr-xr-x 1 root
                  root 1545344 Jun  5  2018 libvirt_driver_qemu.so</font></div>
              <div><font face="monospace, monospace">-rwxr-xr-x 1 root
                  root   86616 Jun  5  2018 libvirt_driver_secret.so</font></div>
              <div><font face="monospace, monospace">-rwxr-xr-x 1 root
                  root  202568 Jun  5  2018 libvirt_driver_storage.so</font></div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>But I couldn't find the xen driver (<span
                  class="gmail-gr_ gmail-gr_60 gmail-gr-alert
                  gmail-gr_spell gmail-gr_inline_cards
                  gmail-gr_disable_anim_appear gmail-ContextualSpelling"
                  id="gmail-60" style="display:inline;border-bottom:2px
                  solid transparent;background-repeat:no-repeat">libvirt</span>-daemon-driver-<span
                  class="gmail-gr_ gmail-gr_58 gmail-gr-alert
                  gmail-gr_spell gmail-gr_inline_cards
                  gmail-gr_disable_anim_appear gmail-ContextualSpelling
                  gmail-ins-del gmail-multiReplace" id="gmail-58"
                  style="display:inline;border-bottom:2px solid
                  transparent;background-repeat:no-repeat">xen</span>)
                from yum. I do find it driver on some websites (<a
href="http://rpmfind.net/linux/rpm2html/search.php?query=libvirt-daemon-driver-xen"
                  moz-do-not-send="true">http://rpmfind.net/linux/rpm2html/search.php?query=libvirt-daemon-driver-xen</a>),
                but I am not sure which is the right version to choose.</div>
              <div>I also found this email <a
                  href="https://www.spinics.net/lists/centos-virt/msg05163.html"
                  moz-do-not-send="true">https://www.spinics.net/lists/centos-virt/msg05163.html</a>.</div>
              <div>Then I decided to compile libvirt from source code.
                So I checked out the source code from github and tried
                to configure and compile it.</div>
              <div>However, from the output of ./autogen.sh --system, I
                don't find driver for xen is enabled. Actually, xen is
                not listed as driver in the output. </div>
              <div><font face="monospace, monospace"><br>
                </font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:
                  Configuration summary</font></div>
              <div><font face="monospace, monospace">configure:
                  =====================</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure: Drivers</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:     
                   QEMU: yes</font></div>
              <div><font face="monospace, monospace">configure:   
                   OpenVZ: yes</font></div>
              <div><font face="monospace, monospace">configure:   
                   VMware: yes</font></div>
              <div><font face="monospace, monospace">configure:     
                   VBox: yes</font></div>
              <div><font face="monospace, monospace">configure:   
                   XenAPI: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  libxl: yes</font></div>
              <div><font face="monospace, monospace">configure:       
                  LXC: yes</font></div>
              <div><font face="monospace, monospace">configure:     
                   PHYP: no</font></div>
              <div><font face="monospace, monospace">configure:       
                  ESX: no</font></div>
              <div><font face="monospace, monospace">configure:   
                  Hyper-V: no</font></div>
              <div><font face="monospace, monospace">configure:       
                   vz: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  Bhyve: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   Test: yes</font></div>
              <div><font face="monospace, monospace">configure:   
                   Remote: yes</font></div>
              <div><font face="monospace, monospace">configure:   
                  Network: yes</font></div>
              <div><font face="monospace, monospace">configure: 
                   Libvirtd: yes</font></div>
              <div><font face="monospace, monospace">configure: 
                  Interface: yes</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure: Storage
                  Drivers</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:       
                  Dir: yes</font></div>
              <div><font face="monospace, monospace">configure:       
                   FS: yes</font></div>
              <div><font face="monospace, monospace">configure:     
                  NetFS: yes</font></div>
              <div><font face="monospace, monospace">configure:       
                  LVM: yes</font></div>
              <div><font face="monospace, monospace">configure:     
                  iSCSI: yes</font></div>
              <div><font face="monospace, monospace">configure:
                  iscsi-direct: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   SCSI: yes</font></div>
              <div><font face="monospace, monospace">configure:     
                  mpath: yes</font></div>
              <div><font face="monospace, monospace">configure:     
                   Disk: no</font></div>
              <div><font face="monospace, monospace">configure:       
                  RBD: no</font></div>
              <div><font face="monospace, monospace">configure: 
                   Sheepdog: no</font></div>
              <div><font face="monospace, monospace">configure:   
                  Gluster: no</font></div>
              <div><font face="monospace, monospace">configure:       
                  ZFS: no</font></div>
              <div><font face="monospace, monospace">configure:
                  Virtuozzo storage: no</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure: Security
                  Drivers</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:   
                  SELinux: yes</font></div>
              <div><font face="monospace, monospace">configure: 
                   AppArmor: no</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure: Driver
                  Loadable Modules</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:
                  driver_modules: yes (CFLAGS='' LIBS='-ldl')</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:
                  Libraries</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:       
                  acl: no</font></div>
              <div><font face="monospace, monospace">configure: 
                   apparmor: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   attr: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  audit: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  avahi: no</font></div>
              <div><font face="monospace, monospace">configure:
                  bash_completion: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  blkid: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  capng: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   curl: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   dbus: no</font></div>
              <div><font face="monospace, monospace">configure:   
                   dlopen: yes (CFLAGS='' LIBS='-ldl')</font></div>
              <div><font face="monospace, monospace">configure: 
                  firewalld: no</font></div>
              <div><font face="monospace, monospace">configure:
                  firewalld-zone: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   fuse: no</font></div>
              <div><font face="monospace, monospace">configure: 
                  glusterfs: no</font></div>
              <div><font face="monospace, monospace">configure:   
                   gnutls: yes (CFLAGS='-I/usr/include/p11-kit-1  '
                  LIBS='-lgnutls  ')</font></div>
              <div><font face="monospace, monospace">configure:       
                  hal: no</font></div>
              <div><font face="monospace, monospace">configure: 
                   libiscsi: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  libnl: yes (CFLAGS=' ' LIBS='-lnl  ')</font></div>
              <div><font face="monospace, monospace">configure:   
                  libpcap: no</font></div>
              <div><font face="monospace, monospace">configure:   
                   libssh: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  libxl: yes (CFLAGS='  -DLIBXL_API_VERSION=0x040500'
                  LIBS='-lxenlight   -lxlutil -lxenstore -lxentoollog')</font></div>
              <div><font face="monospace, monospace">configure:   
                   libxml: yes (CFLAGS='-I/usr/include/libxml2  '
                  LIBS='-lxml2  ')</font></div>
              <div><font face="monospace, monospace">configure:   
                  macvtap: yes (CFLAGS='' LIBS='')</font></div>
              <div><font face="monospace, monospace">configure:     
                  netcf: no</font></div>
              <div><font face="monospace, monospace">configure:       
                  NLS: yes</font></div>
              <div><font face="monospace, monospace">configure:       
                  nss: yes</font></div>
              <div><font face="monospace, monospace">configure:   
                  numactl: no</font></div>
              <div><font face="monospace, monospace">configure: 
                  openwsman: no</font></div>
              <div><font face="monospace, monospace">configure: 
                  pciaccess: yes (CFLAGS=' ' LIBS='-lpciaccess  ')</font></div>
              <div><font face="monospace, monospace">configure: 
                   pm_utils: yes (CFLAGS='' LIBS='')</font></div>
              <div><font face="monospace, monospace">configure:   
                   polkit: no</font></div>
              <div><font face="monospace, monospace">configure:       
                  rbd: no</font></div>
              <div><font face="monospace, monospace">configure: 
                   readline: no</font></div>
              <div><font face="monospace, monospace">configure:   
                  sanlock: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   sasl: yes (CFLAGS='' LIBS='-lsasl2')</font></div>
              <div><font face="monospace, monospace">configure:   
                  selinux: yes (CFLAGS='' LIBS='-lselinux')</font></div>
              <div><font face="monospace, monospace">configure:     
                   ssh2: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   udev: yes (CFLAGS=' ' LIBS='-ludev  ')</font></div>
              <div><font face="monospace, monospace">configure:
                  virtualport: yes (CFLAGS='' LIBS='')</font></div>
              <div><font face="monospace, monospace">configure:       
                  xdr: yes (CFLAGS='' LIBS='')</font></div>
              <div><font face="monospace, monospace">configure:   
                   xenapi: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   yajl: yes (CFLAGS='' LIBS='-lyajl')</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure: Windows</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:   
                   Cygwin: no</font></div>
              <div><font face="monospace, monospace">configure:     
                  MinGW: no</font></div>
              <div><font face="monospace, monospace">configure:     
                   MSVC: no</font></div>
              <div><font face="monospace, monospace">configure:   
                  windres: no</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure: Test
                  suite</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:         
                  Coverage: no</font></div>
              <div><font face="monospace, monospace">configure:       
                   Alloc OOM: no</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:
                  Miscellaneous</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:         
                      Debug: yes</font></div>
              <div><font face="monospace, monospace">configure:       
                  Use -Werror: yes</font></div>
              <div><font face="monospace, monospace">configure:     
                  Warning Flags:  -fno-common -W -Waddress
                  -Waggressive-loop-optimizations -Wall -Wattributes
                  -Wbad-function-cast -Wbuiltin-macro-redefined
                  -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment
                  -Wcomments -Wcoverage-mismatch -Wcpp
                  -Wdeprecated-declarations -Wdiv-by-zero
                  -Wdouble-promotion -Wempty-body -Wendif-labels -Wextra
                  -Wformat-contains-nul -Wformat-extra-args
                  -Wformat-security -Wformat-y2k -Wformat-zero-length
                  -Wfree-nonheap-object -Wignored-qualifiers -Wimplicit
                  -Wimplicit-function-declaration -Wimplicit-int
                  -Winit-self -Winline -Wint-to-pointer-cast
                  -Winvalid-memory-model -Winvalid-pch -Wlogical-op
                  -Wmain -Wmaybe-uninitialized -Wmissing-braces
                  -Wmissing-declarations -Wmissing-field-initializers
                  -Wmissing-include-dirs -Wmissing-parameter-type
                  -Wmissing-prototypes -Wmultichar -Wnarrowing
                  -Wnested-externs -Wnonnull -Wold-style-declaration
                  -Wold-style-definition -Woverflow -Woverride-init
                  -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith
                  -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi
                  -Wreturn-local-addr -Wreturn-type -Wsequence-point
                  -Wshadow -Wsizeof-pointer-memaccess -Wstrict-aliasing
                  -Wstrict-prototypes -Wsuggest-attribute=const
                  -Wsuggest-attribute=format
                  -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure
                  -Wswitch -Wsync-nand -Wtrampolines -Wtrigraphs
                  -Wtype-limits -Wuninitialized -Wunknown-pragmas
                  -Wunused -Wunused-but-set-parameter
                  -Wunused-but-set-variable -Wunused-function
                  -Wunused-label -Wunused-local-typedefs
                  -Wunused-parameter -Wunused-result -Wunused-value
                  -Wunused-variable -Wvarargs -Wvariadic-macros
                  -Wvector-operation-performance -Wvolatile-register-var
                  -Wwrite-strings -Wnormalized=nfc -Wno-sign-compare
                  -Wjump-misses-init -Wswitch-enum
                  -Wno-format-nonliteral -fstack-protector-strong
                  -fexceptions -fasynchronous-unwind-tables
                  -fipa-pure-const -Wno-suggest-attribute=pure
                  -Wno-suggest-attribute=const -Werror</font></div>
              <div><font face="monospace, monospace">configure:         
                     DTrace: no</font></div>
              <div><font face="monospace, monospace">configure:         
                      numad: no</font></div>
              <div><font face="monospace, monospace">configure:       
                  Init script: systemd</font></div>
              <div><font face="monospace, monospace">configure:  Char
                  device locks: /var/lock</font></div>
              <div><font face="monospace, monospace">configure:   
                   Default Editor: vi</font></div>
              <div><font face="monospace, monospace">configure:     
                   Loader/NVRAM:</font></div>
              <div><font face="monospace, monospace">configure: 
                   virt-login-shell: yes</font></div>
              <div><font face="monospace, monospace">configure:
                  virt-host-validate: yes</font></div>
              <div><font face="monospace, monospace">configure:     
                   TLS priority: NORMAL</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:
                  Developer Tools</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:
                  wireshark_dissector: no</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:
                  Privileges</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><font face="monospace, monospace">configure:     
                   QEMU: root:root</font></div>
              <div><font face="monospace, monospace">configure:</font></div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>My question is how should I install the
                libvirt-daemon-driver-xen driver and make Nova work with
                Xen?</div>
              <div><br>
              </div>
              <div>Thanks a lot in advance!</div>
              <div>Best regards,</div>
              <div>Lianjie Cao</div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
libvirt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvirt-users">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Alvin Starr                   ||   land:  (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
<a class="moz-txt-link-abbreviated" href="mailto:alvin@netvel.net">alvin@netvel.net</a>              ||

</pre>
  </body>
</html>