View previous topic :: View next topic |
Author |
Message |
voidzero Bodhisattva
Joined: 21 Jul 2002 Posts: 265 Location: Grnn
|
Posted: Fri Feb 01, 2013 5:24 pm Post subject: Libvirt and xen useflag |
|
|
No matter what I try, I can't get libvirt to build with the xen useflag even though I already built xen and xen-tools (~amd64) succesfully:
Code: | checking for xen_vm_start in -lxenserver... no
configure: error: You must install libxenserver and libcurl to compile the XenAPI driver
|
I'll admit, I've been away from Gentoo from a long time but quickly catching up. How can I get this to work, is it possible at all? _________________ Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare |
|
Back to top |
|
|
Element Dave Tux's lil' helper
Joined: 10 Nov 2006 Posts: 82
|
Posted: Fri Feb 01, 2013 8:18 pm Post subject: Re: Libvirt and xen useflag |
|
|
voidzero wrote: | No matter what I try, I can't get libvirt to build with the xen useflag even though I already built xen and xen-tools (~amd64) succesfully:
Code: | checking for xen_vm_start in -lxenserver... no
configure: error: You must install libxenserver and libcurl to compile the XenAPI driver
|
I'll admit, I've been away from Gentoo from a long time but quickly catching up. How can I get this to work, is it possible at all? |
I recently experienced that problem and filed a bug report. It looks like it's fixed in libvirt-1.0.2-r1. Try re-emerging. See bugzilla for the details. |
|
Back to top |
|
|
voidzero Bodhisattva
Joined: 21 Jul 2002 Posts: 265 Location: Grnn
|
Posted: Sat Feb 02, 2013 12:24 pm Post subject: |
|
|
Ok, I found the solution.
It seems that one needs to download the XenServer SDK from the Citrix website. This SDK zip file contains a libxenserver directory. Go into it, and then into the src directory, then type 'make' to compile the libs and copy those to /usr/lib or /usr/local/lib. After compiling, don't forget to copy the directory src/include to /usr/local/include. Then, run ldconfig, and recompile libvirt... then it seems to work. _________________ Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sat Feb 02, 2013 3:13 pm Post subject: |
|
|
voidzero, that is not the correct solution as it bypasses Gentoo's package manager and installs files that Portage doesn't know about. I'm absolute noob with virtualization myself, but have you seen the Configuring Gentoo with Xen guide?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
voidzero Bodhisattva
Joined: 21 Jul 2002 Posts: 265 Location: Grnn
|
Posted: Sat Feb 02, 2013 3:17 pm Post subject: |
|
|
Sure, I've seen that guide but that doesn't describe anything with regards to libvirt.
I know about the bypassing of Portage and I agree that's not optimal. On the other hand, in my opinion this is exactly why /usr/local exists: i.e. for stuff that is managed manually. The reason I'm doing it like this is that I'm not really motivated to write an ebuild that puts the libs and include files into the proper directories, especially because one still has to manually download the SDK from the Citrix website.
So, pros and cons eh? _________________ Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare |
|
Back to top |
|
|
|