virtualbox-guest-additions is added as a service to start up in the default runlevel. Loads vboxadd then says it has failed. Also, mouse driver which is installed along with the package fails to register drag and drop in Xorg. Reproducible: Always Steps to Reproduce: 1. Install virtualbox-guest-additions 2. Add to default run level 3. Restart
Please provide emerge --info. The version and use flags of the installed virtualbox-* packages, the error message and anything else that might help to debug the issue. If the start script doesn't give a useful error message, try executing it's commands by hand and see what fails.
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Pentium-R-_Dual_CPU_T2390_@_1.86GHz-with-gentoo-1.12.11.1 Timestamp of tree: Tue, 22 Sep 2009 14:45:03 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 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="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo " LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl alsa berkdb branding bzip2 cdr cli cracklib crypt cups dri dvd fortran gdbm gpm iconv imlib ipv6 isdnlog jpeg modules mp3 mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session spl ssl svg sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 virtualbox evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="virtualbox" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
app-emulation/virtualbox-guest-additions-3.0.6 x11-drivers/xf86-input-virtualbox-3.0.6 x11-drivers/xf86-video-virtualbox-3.0.6 Also, my USE flags (in /etc/make.conf) are: "-gnome -kde -qt3 -qt4 X branding dvd cdr X imlib jpeg png svg alsa mp3" (In reply to comment #1) > Please provide emerge --info. The version and use flags of the installed > virtualbox-* packages, the error message and anything else that might help to > debug the issue. > > If the start script doesn't give a useful error message, try executing it's > commands by hand and see what fails. >
To see which command in the startup script fails, you can run the startup script with '--debug' option to turn on tracing
It could be that vboxadd-service is the one that is failing: +++ /bin/pidof -x vboxadd-service + pids='4208 4044 3944 3824 3496' + [[ -z 4208 4044 3944 3824 3496 ]] + [[ -s /var/run/vboxadd-service.pid ]] + read pid + pids=' 4208 4044 3944 3824 3496 ' + [[ 4208 4044 3944 3824 3496 != \ \4\2\0\8\ \4\0\4\4\ \3\9\4\4\ \3\8\2\4\ \3\4\9\6\ ]] + [[ no == \y\e\s ]] ++ pidof vboxadd-service ++ local arg args ++ for arg in '"$@"' ++ [[ vboxadd-service == \r\p\c\.\n\f\s\d ]] ++ args=' '\''vboxadd-service'\''' ++ eval /bin/pidof -x ''\''vboxadd-service'\''' +++ /bin/pidof -x vboxadd-service + pids='4208 4044 3944 3824 3496' + [[ -s /var/run/vboxadd-service.pid ]] + read pid + [[ -n 4208 4044 3944 3824 3496 ]] + pids=' 4208 4044 3944 3824 3496 ' + [[ 4208 4044 3944 3824 3496 == \ \4\2\0\8\ \4\0\4\4\ \3\9\4\4\ \3\8\2\4\ \3\4\9\6\ ]] + return 1 + return 1 + result=1 + [[ 1 == \0 ]] + [[ 0 == \0 ]] + [[ -f /var/lib/init.d/daemons/virtualbox-guest-additions ]] + return 1 + eend 1 'Failed to start VirtualBox guest additions' + local retval=1 + shift + _eend 1 eerror 'Failed to start VirtualBox guest additions' + local retval=1 efunc=eerror msg + shift 2 + [[ 1 == \0 ]] + [[ -c /dev/null ]] + rc_splash stop + [[ -n Failed to start VirtualBox guest additions ]] + eerror 'Failed to start VirtualBox guest additions' + [[ no == \y\e\s ]] + [[ yes != \y\e\s ]] + echo -e ' * Failed to start VirtualBox guest additions' (In reply to comment #4) > To see which command in the startup script fails, you can run the startup > script with '--debug' option to turn on tracing >
The initscript uses the start-stop-daemon option --make-pidfile. Since version 3.0 vboxadd-service changes this pid during startup and the first pidfile does not match anymore. Just remove the option --make-pidfile from the script and everything works fine.
There is still an issue with 3.1.0 /etc/init.d/virtualbox-guest-additions restart * Starting VirtualBox guest additions ... * Loading kernel modules and creating devices * Starting the vboxadd system service /sbin/start-stop-daemon: stat /usr/sbin/vboxadd-service: No such file or directory (No such file or directory) * Failed to start VirtualBox guest additions Doesn't start for different reasons but still doesn't start. Is anyone still looking into this bug?
Created attachment 213243 [details, diff] virtualbox-guest-additions.patch Patch of the init.d file that works with 3.1.0
Created attachment 213244 [details] virtualbox-guest-additions /etc/init.d/virtualbox-guest-additions complete working file.
Created attachment 218153 [details, diff] patch to support $GUEST_OPTS in /etc/init.d/virtualbox-guest-additions "/usr/sbin/vboxguest-service --help" tells which options may make sense to be set in /etc/conf.d/virtualbox-guest-additions, like: $ cat /etc/conf.d/virtualbox-guest-additions GUEST_OPTS="--timesync-set-start"