Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XEN: Fuse libs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
eno2001
Tux's lil' helper
Tux's lil' helper


Joined: 20 Oct 2006
Posts: 136

PostPosted: Mon Sep 15, 2008 9:10 pm    Post subject: XEN: Fuse libs? Reply with quote

I'm posting this here in unsupported because I have a quirky set up. Gentoo AMD64 that is up to date as Domain0. Xen 3.1 from a Mercurial repository from a year or two back. And one of the VMs is a paravirtualized Gentoo also AMD64 virtual CPU running a xenU kernel. The problem I'm running into is that I need to install the fuse libraries in the Gentoo DomU, but they fail to install because they can't find matching kernel sources. So I copied the Xen Linux kernel source tree to the guest and got it working within the guest so I could run make menuconfig, etc... I figured that would be enough. But when I try to emerge fuse, I get this error:

* Messages for package sys-fs/fuse-2.7.0:

* Could not detect kernel version.
* Please ensure that /usr/src/linux points to a complete set of Linux sources.
* Could not detect kernel version.
* Please ensure that /usr/src/linux points to a complete set of Linux sources.
*
* ERROR: sys-fs/fuse-2.7.0 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* fuse-2.7.0.ebuild, line 29: Called linux-mod_pkg_setup
* linux-mod.eclass, line 469: Called linux-info_pkg_setup
* linux-info.eclass, line 595: Called die
* The specific snippet of code:
* get_version || die "Unable to calculate Linux Kernel version"
* The die message:
* Unable to calculate Linux Kernel version

My main goal is for the "guest" DomU to be able to use a fuse file system. I already got it and the fuse libs installed from source but when I mount the file system Nautilus crashes. Through my investigation I've determined that is because gvfs was not built with fuse support. But if I try to rebuild gvfs with fuse, then it wants to build fuse from Portage instead of using my /usr/local/lib installation of it. And I get the error presented above. Any suggestions? Sure, starting over is an option, but I'm hard headed and want to get past this with the existing system.
Back to top
View user's profile Send private message
grassu
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2004
Posts: 91
Location: Berlin

PostPosted: Thu Oct 30, 2008 10:16 pm    Post subject: Reply with quote

Any solution for this? I setup an Gentoo AMD64 Xen system with xen 3.2 and xen-sources 2.6.21 and I'm trying to emerge fritzcapi in a gentoo domU. I also get this error:
Code:

 ...
 * checking capi4k-patches-20050718-r3.tar.bz2 ;-) ...                                                      [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Could not detect kernel version.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources.
 *


/usr/src/linux points to /usr/src/linux-2.6.21-xen

Any ideas?

Thanks in advance,

grassu

This is my emerge info:
Code:
Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.21-xen x86_64)
=================================================================
System uname: 2.6.21-xen x86_64 Intel(R) Xeon(R) CPU E3113 @ 3.00GHz
Timestamp of tree: Wed, 24 Sep 2008 12:45:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fax fortran gdbm gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1792
Location: Oranienburg/Germany

PostPosted: Fri Oct 31, 2008 10:18 am    Post subject: Reply with quote

Did you configure your kernel sources with _domU and _domu0 subdirs like it was explained in the gentoo-wiki? If yes, just add the following to your make.conf:

Code:

KERNEL_DIR=/usr/src/linux
KBUILD_OUTPUT=${KERNEL_DIR}/_dom0


or _domU if you need a driver for your domU.

bb
_________________
1st: i5-4570, 16GB, 1.75TB
2nd: i5-4570, 16GB, 620GB
3rd: i5-4570, 16GB, 10,5TB
4th: Asus N61VN, 8GB, 240GB
5th: C2D T7200, 2GB, 16GB USB + NFS
Back to top
View user's profile Send private message
grassu
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2004
Posts: 91
Location: Berlin

PostPosted: Sat Nov 01, 2008 5:09 pm    Post subject: Reply with quote

This was the problem. I created the domU with quickpkg and there was still the KBUILD_OUTPUT=${KERNEL_DIR}/_dom0 in make.conf. Uncommenting this line was enough. Now I could emerge fritzcapi without a hint.

Thanks a lot.
:D

grassu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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