A new version of libvirt (0.5.0) just came out. Reproducible: Always
Created attachment 173895 [details] changed ebuild for libvirt-0.5.0
... and there was no ebuild. I modified the old one, compiled and installed successfully and did some short tests. it works for me.
I'm having trouble with libvirtd and qemu/kvm (nothing can connect to qemu:///system and won't tell me why). Once I resolve the issue I'll put it in the tree but I'm not sure when that will be.
(In reply to comment #3) > I'm having trouble with libvirtd and qemu/kvm (nothing can connect to > qemu:///system and won't tell me why). Once I resolve the issue I'll put it in > the tree but I'm not sure when that will be. > In the ebuild i posted, i corrected the path of the /var/* files. previously it installed in /var/lib/lib/libvirt and /var/lib/run/libvirt instead of /var/lib/libvirt and /var/run/libvirt. Maybe your configuration has trouble with this...
Looks like 0.5.1 just came out. Trying to reuse ebuild...
The package appears to be installed, but not working properly. Issuing a 'virsh capabilities' should tell me what drivers will work on the system. I have KVM installed, but the driver doesn't seem to pick it up. Looking at the source code, it appears to just search for /usr/bin/kvm. I'll continue to try and troubleshoot, but anyone else should feel free to jump in because I'm not much of a coder.
Ok... it looks like the KVM use flag was removed and only qemu exists. This means that even if you only want KVM, the package has to pull in the qemu packages as well. The older libvirt package had a hack to handle this, but that appears to be removed in 0.5.0. I'm going to put the hack back in because I feel that I shouldn't have to install qemu if I only want KVM. Ebuild coming shortly...
Created attachment 174433 [details] New libvirt ebuild Ok, this appears to work on my machine. I was able to run virt-manager and start a WinXP VM. It gave me a strange error during '/etc/init.d/libvirtd stop', but I'll see if I can figure that out later.
Created attachment 177424 [details, diff] gnulib libgnu Makefile reposition Hello :) I'm getting this problem when compiling attachment-174433: i686-pc-linux-gnu-gcc -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../src -I/usr/include/libxml2 -I/usr/include/PolicyKit -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DLOCAL_STATE_DIR=\"/var\" -DSYSCONF_DIR=\"/etc\" -DQEMUD_PID_FILE=\"\" -DREMOTE_PID_FILE=\"/var/run/libvirtd.pid\" -DGETTEXT_PACKAGE=\"libvirt\" -D_REENTRANT -march=prescott -Os -mmmx -msse -msse2 -msse3 -mfpmath=sse -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -Wl,-O1 -o .libs/libvirtd libvirtd-event.o libvirtd-qemud.o libvirtd-remote.o libvirtd-remote_protocol.o libvirtd-mdns.o -L/usr/lib /usr/lib/libpolkit-dbus.so /usr/lib/libpolkit.so /usr/lib/libexpat.so ../gnulib/lib/.libs/libgnu.a ../src/.libs/libvirt_driver_qemu.a ../src/.libs/libvirt_driver_lxc.a ../src/.libs/libvirt_driver_uml.a ../src/.libs/libvirt_driver_storage.a ../src/.libs/libvirt_driver_network.a ../src/.libs/libvirt_driver_nodedev.a /usr/lib/libhal.so ../src/.libs/libvirt.so /usr/lib/libxml2.so -lm /usr/lib/libgnutls.so /usr/lib/libtasn1.so -lz /usr/lib/libgcrypt.so /usr/lib/libgpg-error.so -lxenstore /usr/lib/libavahi-client.so /usr/lib/libdbus-1.so /usr/lib/libavahi-common.so -ldl -lpthread ../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_driver.o): In function `qemudExtractMonitorPath': qemu_driver.c:(.text+0x9bc): undefined reference to `c_isspace' ../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_driver.o): In function `qemudStartVMDaemon': qemu_driver.c:(.text+0x1f99): undefined reference to `c_isspace' collect2: ld returned 1 exit status Turns out the problem happens, because "../gnulib/lib/libgnu.la" has to be used later on the command line (linked later?): https://www.redhat.com/archives/libvir-list/2008-December/msg00288.html I made a patch from redhats patch, but it seems that, though it gets applied on "qemud/Makefile.am", "qemud/Makefile" does not get recreated, and the build still fails. My (not working) modification to attachment-174433 is: --- libvirt-0.5.1.ebuild-id=174433 2009-01-05 00:17:27.157454990 +0100 +++ libvirt-0.5.1.ebuild 2009-01-05 00:31:27.231521424 +0100 @@ -34,6 +34,10 @@ src_unpack() { unpack ${A} + + cd "${S}" + epatch "${FILESDIR}"/"${P}"-libgnu-reposition.patch + eautoreconf } pkg_setup() { I don't know how to make proper ebuilds - maybe somebody else can do it? I'd really appreciate it. Thank you, Daniel
Version 0.5.1 is working better that 0.5.0, committed to portage :-)