Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to start virtualbox-guest-additions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ID
n00b
n00b


Joined: 04 Feb 2005
Posts: 16

PostPosted: Mon Dec 07, 2009 10:00 pm    Post subject: Unable to start virtualbox-guest-additions Reply with quote

I'm trying to make a Gentoo guest vm on a W*nd*ws machine (Vista on a Dell Latitude).. :oops:

But I get stuck @ starting the virtualbox-guest-additions..

I followed the instructions on http://en.gentoo-wiki.com/wiki/Virtualbox_Guest so my kernel settings are like that...

I think because the 3.1 version is still very new it's likely a "issue" in the ebuild maybe...

The thing i get is:
Code:

virtualdev ~ # /etc/init.d/virtualbox-guest-additions start
 * 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                             [ !! ]
virtualdev ~ #


Looks like the service is running fine.. Don't know which file it's not finding..

Code:
virtualdev ~ # /usr/sbin/vboxguest-service
vboxguest-service: Started. Verbose level = 0
virtualdev ~ #


My make.conf:

Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"

MAKEOPTS="-j2"

USE="-gtk -gnome qt3 qt4 kde dvd alsa symlink X"

INPUT_DEVICES="keyboard virtualbox evdev"
VIDEO_CARDS="virtualbox"

GENTOO_MIRRORS="ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub$

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"



Maybe more people have trouble?

UPDATE: As i'm typing this i see a difference...

doesn't "/usr/sbin/vboxadd-service" suppose to be "/usr/sbin/vboxguest-service" ???
Back to top
View user's profile Send private message
ID
n00b
n00b


Joined: 04 Feb 2005
Posts: 16

PostPosted: Mon Dec 07, 2009 10:15 pm    Post subject: Reply with quote

I replaced "/usr/sbin/vboxadd-service" to "/usr/sbin/vboxguest-service" @ /etc/init.d/virtualbox-guest-additions in the start script:

Code:

start() {
        ebegin "Starting VirtualBox guest additions"

        if [[ -e /dev/vboxadd ]] ; then
                rm -f /dev/vboxadd &> /dev/null
        fi

        einfo " Loading kernel modules and creating devices"
        /sbin/modprobe vboxadd &> /dev/null
        createvboxdevice
        /sbin/modprobe vboxvfs &> /dev/null

        einfo " Starting the vboxadd system service"
        start-stop-daemon --start --make-pidfile \
                --exec /usr/sbin/vboxguest-service --pidfile /var/run/vboxadd-service.pid \
                --name vboxadd-service \
                --background -- \
                --foreground

        eend $? "Failed to start VirtualBox guest additions"
}


But still no succes:

Code:
virtualdev ~ # /etc/init.d/virtualbox-guest-additions start
 * Caching service dependencies ...                                                                                                                                        [ ok ]
 * Starting VirtualBox guest additions ...
 *      Loading kernel modules and creating devices
 *      Starting the vboxadd system service
 * Failed to start VirtualBox guest additions                                                                                                                              [ !! ]
virtualdev ~ # less /var/log/

Back to top
View user's profile Send private message
ID
n00b
n00b


Joined: 04 Feb 2005
Posts: 16

PostPosted: Wed Dec 16, 2009 11:57 pm    Post subject: Reply with quote

Ok, as i said before... the /etc/init.d/virtualbox-guest-additions are wrong... All vboxadd should be replaced with vboxguest..

Code:

#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:

depend() {
        need localmount
        before xdm
}

createvboxdevice() {
                local maj min

                maj=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/devices`

                if ! [[ -z $maj ]] ; then
                        min=0
                else
                        min=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/misc`
                        if ! [[ -z $min ]] ; then
                                maj=10
                        fi
                fi

                mknod /dev/vboxguest c $maj $min -m 0664 &> /dev/null
}

start() {
        ebegin "Starting VirtualBox guest additions"

        if [[ -e /dev/vboxguest ]] ; then
                rm -f /dev/vboxguest &> /dev/null
        fi

        einfo " Loading kernel modules and creating devices"
        /sbin/modprobe vboxguest &> /dev/null
        createvboxdevice
        /sbin/modprobe vboxvfs &> /dev/null

        einfo " Starting the vboxguest system service"
        start-stop-daemon --start --make-pidfile \
                --exec /usr/sbin/vboxguest-service --pidfile /var/run/vboxguest-service.pid \
                --name vboxguest-service \
                --background -- \
                --foreground

        eend $? "Failed to start VirtualBox guest additions"
}

stop() {
        ebegin "Stopping VirtualBox guest additions"

        einfo " Stopping the vboxguest system service"
        start-stop-daemon --stop --quiet \
                --pidfile /var/run/vboxguest-service.pid --name vboxguest-service

        einfo " Unloading kernel modules and removing devices"
        /sbin/rmmod vboxvfs &> /dev/null
        /sbin/rmmod vboxguest &> /dev/null
        rm -f /dev/vboxguest &> /dev/null
        eend $?
}


Probably it already worked but i was confused as i expected to have a mouse menu in the initial X -configure step... Wasn't it that the default X "xterm" is used and i should at least have a mouse cursor?... Anyway... After installing "Uhum" KDE 4.3 it all seem to work.. (with above modification)

Oh yeah.. I always like to know the use flags used (I added some i needed)... so here are they:

Code:

 These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"

MAKEOPTS="-j2"

USE="-gtk -gnome qt3 qt4 kde dvd alsa symlink X hal dbus qt3support sql svg webkit opengl jpeg mp3 mmx mysql"

INPUT_DEVICES="keyboard virtualbox evdev synaptics"
VIDEO_CARDS="virtualbox"

GENTOO_MIRRORS="ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://ftp.snt.ipv$

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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