Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1268176

Summary: xen qemu binaries no longer live in %_libdir, breaks libvirt Xen VMs
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: xenAssignee: Michael Young <m.a.young>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 23CC: agedosier, berrange, clalancette, crobinso, itamar, jforbes, kraxel, laine, lantw44, libvirt-maint, m.a.young, veillard, virt-maint
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: xen-4.5.1-11.fc23 xen-4.5.1-13.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-23 17:21:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Williamson 2015-10-02 01:54:12 UTC
At least on Fedora, xen's qemu binaries now always live in /usr/lib/xen/bin (even on x86_64). Per the package changelog this was changed in 4.5.0-1, in January.

Existing Xen VMs on x86_64 Fedora are now broken (because they look in /usr/lib64) and you can't create a new one (because it looks in /usr/lib64).

This is affecting at least F22 and F23.

Patch should be something like:

diff --git a/src/xen/xen_hypervisor.c b/src/xen/xen_hypervisor.c
index 431c47a..e7fff85 100644
--- a/src/xen/xen_hypervisor.c
+++ b/src/xen/xen_hypervisor.c
@@ -2144,9 +2144,7 @@ xenHypervisorBuildCapabilities(virConnectPtr conn, virArch hostarch,
         if ((guest = virCapabilitiesAddGuest(caps,
                                              guest_archs[i].hvm ? VIR_DOMAIN_OSTYPE_HVM : VIR_DOMAIN_OSTYPE_XEN,
                                              guest_archs[i].arch,
-                                             (hostarch == VIR_ARCH_X86_64 ?
-                                              "/usr/lib64/xen/bin/qemu-dm" :
-                                              "/usr/lib/xen/bin/qemu-dm"),
+                                             "/usr/lib/xen/bin/qemu-dm",
                                              (guest_archs[i].hvm ?
                                               "/usr/lib/xen/boot/hvmloader" :
                                               NULL),

if we don't get Xen to move the binaries back.

Comment 1 Cole Robinson 2015-10-06 00:46:15 UTC
Yeah I think the xen package needs to add symlinks at least, since otherwise there's no way to fix pre-existing VMs which have the lib64 path in their XML.

Comment 2 Fedora Update System 2015-10-07 21:22:38 UTC
xen-4.5.1-11.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-7bb70880ca

Comment 3 Fedora Update System 2015-10-08 10:30:40 UTC
xen-4.5.1-11.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update xen'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-7bb70880ca

Comment 4 Fedora Update System 2015-10-09 15:31:38 UTC
xen-4.5.1-11.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-10-13 16:31:18 UTC
xen-4.5.1-13.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-fca1900745

Comment 6 Fedora Update System 2015-10-14 09:27:33 UTC
xen-4.5.1-13.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update xen'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-fca1900745

Comment 7 Fedora Update System 2015-10-23 17:21:23 UTC
xen-4.5.1-13.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.