Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291292 - app-emulation/virtualbox-{bin,ose} need to set VBOX_APP_HOME in env.d
Summary: app-emulation/virtualbox-{bin,ose} need to set VBOX_APP_HOME in env.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-31 13:27 UTC by abma
Modified: 2010-06-08 19:11 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abma 2009-10-31 13:27:32 UTC
I've installed libvirt and virtualbox-ose and i get following error message when i try to start virsh:

$ virsh
Fehler: no hypervisor driver available
Fehler: Verbindung zum Hypervisor scheiterte

After an "strace -e open virsh" i found, that it can't found VBoxXPCOMC.so. Virtualbox-ose installs into /usr/lib64/virtualbox-ose/ but libvirt searchs in /usr/lib64/virtualbox ...

The solution was to set the env-variable VBOX_APP_HOME before starting virsh:


VBOX_APP_HOME=/usr/lib64/virtualbox-ose virsh

emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30.4 x86_64)
=================================================================
System uname: Linux-2.6.30.4-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.0
Timestamp of tree: Fri, 30 Oct 2009 22:15:03 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/var/tmp/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/var/tmp/pkg"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/Spring"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac acl acpi alsa amd64 applet asterisk autoipd avahi binary-drivers bluetooth branding bzip2 cairo calendar cddb cdparanoia cdr cgi cjk clamav cli connection-sharing consolekit cracklib crypt ctype cups curl daap dbus devhelp dhclient dhcp divx dmi dmx dri dts dv dvb dvd dvdnav dvdr eds emboss emu10k1x encode evo exif expat ffmpeg firefox flac foomaticdb ftp fuse gd gecko gif gimp gimpprint glade glitz glut gmp gnome gnutls gpm gs gsf gstreamer gtk gtkhtml hal hbci hddtemp http hvm ical iconv idn imagemagick imlib inherit-graph innodb ipod ipv6 irmc isdn isdnlog java java6 javascript john jpeg jpeg2k kqemu ladspa lcms ldap libnotify live lm_sensors lvm lzo mad madwifi maps mdnsresponder-compat mmap mmx mng modules moznopango mp3 mp4 mpeg mplayer mschap msn mudflap multilib musicbrainz mysql nautilus ncurses netboot network networkmanager nls nptl nptlonly nsplugin ntfs obex ofx ogg oggvorbis opengl openmp pae pam pcap pcre pda pdf perl png pnm policykit posix postgres ppds pppd pulseaudio qt3support quicktime radio rar raw rdesktop readline realmedia reflection regex reiserfs resolvconf rtc rtsp samba sasl savedconfig sblive scanner sdl sensord session soup sourceview speex spell spl sqlite sse sse2 ssl startup-notification stream subversion svg sysfs syslog tagwriting tcpd tetex theora threads threadsafe thunar thunderbird tiff tracker truetype unicode usb v4l v4l2 valgrind virtualbox vnc vorbis vorbis-psy wifi wma wmf wmp wxwindows x264 xanim xcb xcomposite xext xforms xinerama xml xorg xpm xprint xscreensaver xulrunner xv xvid xvmc zlib zvbi" 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 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" LINGUAS="de" LIRC_DEVICES="com1" USERLAND="GNU" VIDEO_CARDS="nv v4l nvidia vesa vga fbdev s3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1.emerge libvirt and virtualbox-ose
2.start virsh


Actual Results:  
an error is returned

Expected Results:  
virsh should start

virtualbox-ose should be installed into /usr/lib64/virtualbox or VBOX_APP_HOME should be set or libvirt should search for VBoxXPCOMC.so in /usr/lib64/virtualbox-ose
Comment 1 Alessio Cassibba (X-Drum) 2009-11-18 16:09:29 UTC
(In reply to comment #0)
[..]
> virtualbox-ose should be installed into /usr/lib64/virtualbox or VBOX_APP_HOME
> should be set or libvirt should search for VBoxXPCOMC.so in
> /usr/lib64/virtualbox-ose

Hi, please note that:
- in app-emulation/virtualbox-ose VBoxXPCOMC.so is located under /usr/$(libdir)/virtualbox-ose/

- in app-emulation/virtualbox-bi VBoxXPCOMC.so is located under /opt/VirtualBox/

So there is no need imho to change the destination dir for virtualbox-ose,
the problem should be solved on the libvirt's detection code/strategy.
(maybe an upstream bug should be filed if not any)


Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-23 17:11:44 UTC
Alessio what about setting the environment variable in env.d? Would sincerely be nice :)
Comment 3 Alessio Cassibba (X-Drum) 2009-12-23 18:14:38 UTC
(In reply to comment #2)
> Alessio what about setting the environment variable in env.d? Would sincerely
> be nice :)
> 

since virtualbox-ose and virtualbox-bin cannot be installed
at the same time, this can be a nice solution, thanks :)
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2010-02-03 19:54:45 UTC
Can the virtualbox-{bin,ose} ebuilds add this environment variable setting file? It'd be irresponsible for libvirt to do it.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-06-08 16:33:59 UTC
I'll look into this when I have some spare time
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-06-08 19:11:27 UTC
This has already been fixed in >=virtualbox-{bin,ose}-3.1.8