Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Libvirt and xen useflag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
voidzero
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 265
Location: Grnn

PostPosted: Fri Feb 01, 2013 5:24 pm    Post subject: Libvirt and xen useflag Reply with quote

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
View user's profile Send private message
Element Dave
Tux's lil' helper
Tux's lil' helper


Joined: 10 Nov 2006
Posts: 82

PostPosted: Fri Feb 01, 2013 8:18 pm    Post subject: Re: Libvirt and xen useflag Reply with quote

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
View user's profile Send private message
voidzero
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 265
Location: Grnn

PostPosted: Sat Feb 02, 2013 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Feb 02, 2013 3:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
voidzero
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 265
Location: Grnn

PostPosted: Sat Feb 02, 2013 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum