Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285977 - virtualbox-guest-additions-3.0.6 fails on startup
Summary: virtualbox-guest-additions-3.0.6 fails on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 16:02 UTC by tompickles
Modified: 2010-02-08 01:01 UTC (History)
3 users (show)

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


Attachments
virtualbox-guest-additions.patch (virtualbox-guest-additions.patch,2.05 KB, patch)
2009-12-16 23:13 UTC, Alex Barker
Details | Diff
virtualbox-guest-additions (virtualbox-guest-additions,1.45 KB, text/plain)
2009-12-16 23:13 UTC, Alex Barker
Details
patch to support $GUEST_OPTS in /etc/init.d/virtualbox-guest-additions (vbox-ga-opts.patch,349 bytes, patch)
2010-02-02 10:58 UTC, Michael Haubenwallner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tompickles 2009-09-22 16:02:10 UTC
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
Comment 1 Sebastian Luther (few) 2009-09-27 18:36:02 UTC
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.
Comment 2 tompickles 2009-09-27 20:15:54 UTC
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
Comment 3 tompickles 2009-09-27 20:18:25 UTC
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.
> 

Comment 4 Wormo (RETIRED) gentoo-dev 2009-09-30 02:50:46 UTC
To see which command in the startup script fails, you can run the startup script with '--debug' option to turn on tracing
Comment 5 tompickles 2009-09-30 10:43:30 UTC
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
> 

Comment 6 Rafael Kolless 2009-11-12 07:21:29 UTC
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.
Comment 7 Alex Barker 2009-12-16 22:46:37 UTC
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?
Comment 8 Alex Barker 2009-12-16 23:13:04 UTC
Created attachment 213243 [details, diff]
virtualbox-guest-additions.patch

Patch of the init.d file that works with 3.1.0
Comment 9 Alex Barker 2009-12-16 23:13:45 UTC
Created attachment 213244 [details]
virtualbox-guest-additions

/etc/init.d/virtualbox-guest-additions complete working file.
Comment 10 Michael Haubenwallner (RETIRED) gentoo-dev 2010-02-02 10:58:41 UTC
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"