[libvirt-users] Installing libvirt and Xen on Red Hat 7.5

Daniel P. Berrangé berrange at redhat.com
Wed Feb 6 13:18:51 UTC 2019

On Mon, Feb 04, 2019 at 03:57:29PM -0800, Lianjie Cao wrote:
> Hi,
> I am installing OpenStack on Red Hat 7.5. For Nova compute component, I
> choose libvirt and Xen.
> However, I am running into some problems. It seems libvirt is unable to
> communicate with Xen.


> # virsh -c xen:/// list
> error: failed to connect to the hypervisor
> error: no connection driver available for xen:///
> Then I check the connection drivers of libvirt. It seems the daemon driver
> for xen is missing.

Yes, that is correct.  The libvirt packages shipped with RHEL do
not enable the Xen driver as this is no longer a supported hypervisor
for RHEL since RHEL-6 GA.

> 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.
> 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.
> configure:
> configure: Configuration summary
> configure: =====================
> configure:
> configure: Drivers
> configure:
> configure:       QEMU: yes
> configure:     OpenVZ: yes
> configure:     VMware: yes
> configure:       VBox: yes
> configure:     XenAPI: no
> configure:      libxl: yes

"libxl" is the modern Xen driver & it has been successfully enabled.

|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

More information about the libvirt-users mailing list