Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599352 - app-emulation/libvirt with app-emulation/xen-tools[system-qemu] - error /usr/libexec/xen/bin/qemu-system-i386 not found
Summary: app-emulation/libvirt with app-emulation/xen-tools[system-qemu] - error /usr/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-09 22:37 UTC by Thomas Bettler
Modified: 2016-12-08 04:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
qemu-path.patch (qemu-path.patch,764 bytes, patch)
2016-11-20 20:04 UTC, Thomas Bettler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bettler 2016-11-09 22:37:52 UTC
If installed app-emulation/xen-tools with USE=system-qemu that installation misses /usr/libexec/xen/bin/qemu-system-i386 

However this would be needed to provide backward compatibility e.g. for app-emulation/libvirt

see also fedora bugs at
https://bugzilla.redhat.com/show_bug.cgi?id=1299745
https://bugzilla.redhat.com/show_bug.cgi?id=1334554

A proposed workaround would be to generate a symlink to /usr/bin/qemu-system-x86_64 or whatever corresponds to your platform.
Comment 1 Yixun Lan archtester gentoo-dev 2016-11-10 01:28:17 UTC
would this following patch fix your problem? 

btw, /usr/libexec/xen/bin/qemu-system-i386 is part of app-emulation/xen-tools if USE=qemu is enabled

# qfile /usr/libexec/xen/bin/qemu-system-i386
app-emulation/xen-tools (/usr/libexec/xen/bin/qemu-system-i386)


--- xen-tools-4.7.0-r2.ebuild   2016-11-04 20:20:55.417173061 +0800
+++ xen-tools-4.7.0-r3.ebuild   2016-11-10 09:25:52.713708370 +0800
@@ -345,7 +345,6 @@
                --disable-xen \
                --enable-tools \
                --enable-docs \
-               $(use_with system-qemu) \
                $(use_enable pam) \
                $(use_enable api xenapi) \
                $(use_enable ovmf) \
@@ -354,7 +353,7 @@
                "

        use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
-       use qemu || myconf+=" --with-system-qemu"
+       use system-qemu && myconf+=" --with-system-qemu=/usr/bin/qemu-system-x86_64"
        use amd64 && myconf+=" $(use_enable qemu-traditional)"
        econf ${myconf}
 }
Comment 2 Thomas Bettler 2016-11-20 20:04:08 UTC
Created attachment 453934 [details, diff]
qemu-path.patch

Some source browsing in app-emulation/libvirt brought me a semi hard-coded path, which needs to be replaced to work properly for xen[system-qemu]

NB: Of course integrated qemu could be used, however this won't offer spice and other nice qemu drivers and features.

The proposed patch addresses the problem at its root. I didn't manage to autodetect qemu-system-ARCH - which would be more generic than just "x86_64"
Comment 3 Yixun Lan archtester gentoo-dev 2016-12-08 04:20:40 UTC
hi thomas, did you try the latest versions? current all versions in tree should already fixed this problem, and no need to patch app-emulation/libvirt


I'm closing this bug as fixed, but in case if you still have problem, please re-open it