[gelöst] VirtualBox startet nicht

Hinweis: In dem Thema [gelöst] VirtualBox startet nicht gibt es 11 Antworten auf 2 Seiten. Der letzte Beitrag () befindet sich auf der letzten Seite.
  • Hi, ich wieder mal ein Problem mit VirtualBox.
    Ich habe das Programm von der Homepage geladen da ich ja die USB-Unterstützung brauche.
    Habe die OSE-Version und alle Überbleibsel von der Platte gelöscht und dann die Hersteller-Version installiert.
    Auch das erstellen der Festplatte und das einstellen funzt alles prima.
    Aber wenn ich die Maschine starten will kommt eine Fehlermeldung in der aufgefordert werde folgendes zu erledigen:



    Ich hab das mal aus dem Terminal kopiert:


    linux-plxg:/etc/init.d # sh vboxdrv setup
    WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
    Stopping VirtualBox kernel modules done
    Uninstalling old VirtualBox DKMS kernel modules done
    Trying to register the VirtualBox kernel modules using DKMS failed
    (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules failed
    (Look at /var/log/vbox-install.log to find out what went wrong)



    Wie bekomme ich den vboxdrv zum laufen???

  • Hier mal das Skript der Datei:



    #! /bin/sh
    # Oracle VM VirtualBox
    # Linux kernel module init script


    #
    # Copyright (C) 2006-2010 Oracle Corporation
    #
    # This file is part of VirtualBox Open Source Edition (OSE), as
    # available from http://www.virtualbox.org. This file is free software;
    # you can redistribute it and/or modify it under the terms of the GNU
    # General Public License (GPL) as published by the Free Software
    # Foundation, in version 2 as it comes in the "COPYING" file of the
    # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    #


    # chkconfig: 35 30 70
    # description: VirtualBox Linux kernel module
    #
    ### BEGIN INIT INFO
    # Provides: vboxdrv
    # Required-Start: $syslog
    # Required-Stop:
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: VirtualBox Linux kernel module
    ### END INIT INFO


    PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
    DEVICE=/dev/vboxdrv
    GROUPNAME=vboxusers
    LOG="/var/log/vbox-install.log"
    NOLSB=yes
    DEBIAN=
    MODPROBE=/sbin/modprobe


    if $MODPROBE -c | grep -q '^allow_unsupported_modules *0'; then
    MODPROBE="$MODPROBE --allow-unsupported-modules"
    fi


    [ -f /lib/lsb/init-functions ] || NOLSB=yes
    [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg


    if [ -n "$INSTALL_DIR" ]; then
    VBOXMANAGE="$INSTALL_DIR/VBoxManage"
    DODKMS="$INSTALL_DIR/src/vboxhost/do_dkms"
    BUILDVBOXDRV="$INSTALL_DIR/src/vboxhost/vboxdrv/build_in_tmp"
    BUILDVBOXNETFLT="$INSTALL_DIR/src/vboxhost/vboxnetflt/build_in_tmp"
    BUILDVBOXNETADP="$INSTALL_DIR/src/vboxhost/vboxnetadp/build_in_tmp"
    else
    VBOXMANAGE="/usr/lib/virtualbox/VBoxManage"
    DODKMS="/usr/share/virtualbox/src/vboxhost/do_dkms"
    BUILDVBOXDRV="/usr/share/virtualbox/src/vboxhost/vboxdrv/build_in_tmp"
    BUILDVBOXNETFLT="/usr/share/virtualbox/src/vboxhost/vboxnetflt/build_in_tmp"
    BUILDVBOXNETADP="/usr/share/virtualbox/src/vboxhost/vboxnetadp/build_in_tmp"
    fi


    # silently exit if the package was uninstalled but not purged,
    # applies to Debian packages only
    [ -z "$DEBIAN" -o -x $VBOXMANAGE -a -x $BUILDVBOXDRV ] || exit 0


    if [ -n "$NOLSB" ]; then
    if [ -f /etc/redhat-release ]; then
    system=redhat
    elif [ -f /etc/SuSE-release ]; then
    system=suse
    elif [ -f /etc/gentoo-release ]; then
    system=gentoo
    fi
    fi


    [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox


    if [ -z "$NOLSB" ]; then
    . /lib/lsb/init-functions
    fail_msg() {
    echo ""
    log_failure_msg "$1"
    }
    succ_msg() {
    log_success_msg " done."
    }
    begin_msg() {
    log_daemon_msg "$@"
    }
    else
    if [ "$system" = "redhat" ]; then
    . /etc/init.d/functions
    fail_msg() {
    echo -n " "
    echo_failure
    echo
    echo " ($1)"
    }
    succ_msg() {
    echo -n " "
    echo_success
    echo
    }
    elif [ "$system" = "suse" ]; then
    . /etc/rc.status
    fail_msg() {
    rc_failed 1
    rc_status -v
    echo " ($1)"
    }
    succ_msg() {
    rc_reset
    rc_status -v
    }
    elif [ "$system" = "gentoo" ]; then
    if [ -f /sbin/functions.sh ]; then
    . /sbin/functions.sh
    elif [ -f /etc/init.d/functions.sh ]; then
    . /etc/init.d/functions.sh
    fi
    fail_msg() {
    eerror "$1"
    }
    succ_msg() {
    eend "$?"
    }
    begin_msg() {
    ebegin "$1"
    }
    if [ "`which $0`" = "/sbin/rc" ]; then
    shift
    fi
    else
    fail_msg() {
    echo " ...failed!"
    echo " ($1)"
    }
    succ_msg() {
    echo " ...done."
    }
    fi
    if [ "$system" != "gentoo" ]; then
    begin_msg() {
    [ -z "${1:-}" ] && return 1
    if [ -z "${2:-}" ]; then
    echo -n "$1"
    else
    echo -n "$1: $2"
    fi
    }
    fi
    fi


    failure()
    {
    fail_msg "$1"
    exit 0
    }


    running()
    {
    lsmod | grep -q "$1[^_-]"
    }


    start()
    {
    begin_msg "Starting VirtualBox kernel modules"
    if ! running vboxdrv; then
    if ! rm -f $DEVICE; then
    failure "Cannot remove $DEVICE"
    fi
    # HACK: disable the hardware performance counter framework
    if [ -e /proc/sys/kernel/perf_counter_paranoid ]; then
    echo 2 > /proc/sys/kernel/perf_counter_paranoid
    fi
    if ! $MODPROBE vboxdrv > /dev/null 2>&1; then
    failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why"
    fi
    sleep .2
    fi
    # ensure the character special exists
    if [ ! -c $DEVICE ]; then
    MAJOR=`sed -n 's;\([0-9]\+\) vboxdrv;\1;p' /proc/devices`
    if [ ! -z "$MAJOR" ]; then
    MINOR=0
    else
    MINOR=`sed -n 's;\([0-9]\+\) vboxdrv;\1;p' /proc/misc`
    if [ ! -z "$MINOR" ]; then
    MAJOR=10
    fi
    fi
    if [ -z "$MAJOR" ]; then
    rmmod vboxdrv 2>/dev/null
    failure "Cannot locate the VirtualBox device"
    fi
    if ! mknod -m 0660 $DEVICE c $MAJOR $MINOR 2>/dev/null; then
    rmmod vboxdrv 2>/dev/null
    failure "Cannot create device $DEVICE with major $MAJOR and minor $MINOR"
    fi
    fi
    # ensure permissions
    if ! chown :$GROUPNAME $DEVICE 2>/dev/null; then
    rmmod vboxnetadp 2>/dev/null
    rmmod vboxnetflt 2>/dev/null
    rmmod vboxdrv 2>/dev/null
    failure "Cannot change owner $GROUPNAME for device $DEVICE"
    fi
    if ! $MODPROBE vboxnetflt > /dev/null 2>&1; then
    failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why"
    fi
    if ! $MODPROBE vboxnetadp > /dev/null 2>&1; then
    failure "modprobe vboxnetadp failed. Please use 'dmesg' to find out why"
    fi
    succ_msg
    }


    stop()
    {
    begin_msg "Stopping VirtualBox kernel modules"
    if running vboxnetadp; then
    if ! rmmod vboxnetadp 2>/dev/null; then
    failure "Cannot unload module vboxnetadp"
    fi
    fi
    if running vboxdrv; then
    if running vboxnetflt; then
    if ! rmmod vboxnetflt 2>/dev/null; then
    failure "Cannot unload module vboxnetflt"
    fi
    fi
    if ! rmmod vboxdrv 2>/dev/null; then
    failure "Cannot unload module vboxdrv"
    fi
    if ! rm -f $DEVICE; then
    failure "Cannot unlink $DEVICE"
    fi
    fi
    succ_msg
    }


    # enter the following variables in /etc/default/virtualbox:
    # SHUTDOWN_USERS="foo bar"
    # check for running VMs of user foo and user bar
    # SHUTDOWN=poweroff
    # SHUTDOWN=acpibutton
    # SHUTDOWN=savestate
    # select one of these shutdown methods for running VMs
    stop_vms()
    {
    wait=0
    for i in $SHUTDOWN_USERS; do
    # don't create the ipcd directory with wrong permissions!
    if [ -d /tmp/.vbox-$i-ipc ]; then
    export VBOX_IPC_SOCKETID="$i"
    VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*".*{\(.*\)}/\1/' 2>/dev/null`
    if [ -n "$VMS" ]; then
    if [ "$SHUTDOWN" = "poweroff" ]; then
    begin_msg "Powering off remaining VMs"
    for v in $VMS; do
    $VBOXMANAGE --nologo controlvm $v poweroff
    done
    succ_msg
    elif [ "$SHUTDOWN" = "acpibutton" ]; then
    begin_msg "Sending ACPI power button event to remaining VMs"
    for v in $VMS; do
    $VBOXMANAGE --nologo controlvm $v acpipowerbutton
    wait=30
    done
    succ_msg
    elif [ "$SHUTDOWN" = "savestate" ]; then
    begin_msg "Saving state of remaining VMs"
    for v in $VMS; do
    $VBOXMANAGE --nologo controlvm $v savestate
    done
    succ_msg
    fi
    fi
    fi
    done
    # wait for some seconds when doing ACPI shutdown
    if [ "$wait" -ne 0 ]; then
    begin_msg "Waiting for $wait seconds for VM shutdown"
    sleep $wait
    succ_msg
    fi
    }


    # setup_script
    setup()
    {
    stop
    begin_msg "Uninstalling old VirtualBox DKMS kernel modules"
    $DODKMS uninstall > $LOG
    succ_msg
    if find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|grep -q vboxnetadp; then
    begin_msg "Removing old VirtualBox netadp kernel module"
    find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|xargs rm -f 2>/dev/null
    succ_msg
    fi
    if find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|grep -q vboxnetflt; then
    begin_msg "Removing old VirtualBox netflt kernel module"
    find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|xargs rm -f 2>/dev/null
    succ_msg
    fi
    if find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
    begin_msg "Removing old VirtualBox kernel module"
    find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2>/dev/null
    succ_msg
    fi
    begin_msg "Trying to register the VirtualBox kernel modules using DKMS"
    if ! $DODKMS install >> $LOG; then
    fail_msg "Failed, trying without DKMS"
    begin_msg "Recompiling VirtualBox kernel modules"
    if ! $BUILDVBOXDRV \
    --save-module-symvers /tmp/vboxdrv-Module.symvers \
    --no-print-directory install >> $LOG 2>&1; then
    failure "Look at $LOG to find out what went wrong"
    fi
    if ! $BUILDVBOXNETFLT \
    --use-module-symvers /tmp/vboxdrv-Module.symvers \
    --no-print-directory install >> $LOG 2>&1; then
    failure "Look at $LOG to find out what went wrong"
    fi
    if ! $BUILDVBOXNETADP \
    --use-module-symvers /tmp/vboxdrv-Module.symvers \
    --no-print-directory install >> $LOG 2>&1; then
    failure "Look at $LOG to find out what went wrong"
    fi
    fi
    rm -f /etc/vbox/module_not_compiled
    succ_msg
    start
    }


    dmnstatus()
    {
    if running vboxdrv; then
    if running vboxnetflt; then
    if running vboxnetadp; then
    echo "VirtualBox kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are loaded."
    else
    echo "VirtualBox kernel modules (vboxdrv and vboxnetflt) are loaded."
    fi
    else
    echo "VirtualBox kernel module is loaded."
    fi
    for i in $SHUTDOWN_USERS; do
    # don't create the ipcd directory with wrong permissions!
    if [ -d /tmp/.vbox-$i-ipc ]; then
    export VBOX_IPC_SOCKETID="$i"
    VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*".*{\(.*\)}/\1/' 2>/dev/null`
    if [ -n "$VMS" ]; then
    echo "The following VMs are currently running:"
    for v in $VMS; do
    echo " $v"
    done
    fi
    fi
    done
    else
    echo "VirtualBox kernel module is not loaded."
    fi
    }


    case "$1" in
    start)
    start
    ;;
    stop)
    stop_vms
    stop
    ;;
    stop_vms)
    stop_vms
    ;;
    restart)
    stop && start
    ;;
    force-reload)
    stop
    start
    ;;
    setup)
    setup
    ;;
    status)
    dmnstatus
    ;;
    *)
    echo "Usage: $0 {start|stop|stop_vms|restart|force-reload|status|setup}"
    exit 1
    esac


    exit 0

  • Hi,


    schau mal hier:


    [gelöst] Virtualbox Problem mit Kernmodul


    Vielleicht hilft dir das weiter.

    Acer Notebook mit einem Intel Core i7 720QM, 4 GB RAM und ATI Mobility Radeon 4650 Grafikkarte.


    Mit diesen Notebook unterstütze ich das Projekt SETI@home. Denn der i7 rennt und rennt und rennt.
    :) Mark :)

    Für den Inhalt des Beitrages 25671 haftet ausdrücklich der jeweilige Autor: Mark

  • Hi,


    was steht denn hier drin: /var/log/vbox-install.log

    Acer Notebook mit einem Intel Core i7 720QM, 4 GB RAM und ATI Mobility Radeon 4650 Grafikkarte.


    Mit diesen Notebook unterstütze ich das Projekt SETI@home. Denn der i7 rennt und rennt und rennt.
    :) Mark :)

    Für den Inhalt des Beitrages 25673 haftet ausdrücklich der jeweilige Autor: Mark

  • habe ich grad nachgeschaut:


    Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.



    mehr steht nicht drin.

  • Hi,


    dann fehlen dir warscheinlich einige Paket die du mit Yast dazu installieren musst.


    Es könnte sein das dir make, gcc, Kernel-source, Kernel-Header fehlen.


    Installiere das mal nach und versuche erneut denn Befehl von Virtualbox.


    Vielleicht hilft das weiter.

    Acer Notebook mit einem Intel Core i7 720QM, 4 GB RAM und ATI Mobility Radeon 4650 Grafikkarte.


    Mit diesen Notebook unterstütze ich das Projekt SETI@home. Denn der i7 rennt und rennt und rennt.
    :) Mark :)

    Für den Inhalt des Beitrages 25675 haftet ausdrücklich der jeweilige Autor: Mark

  • bin grad das hier am runterladen


    p, li { white-space: pre-wrap; } Version:
    [font='Verdana][size=small]2.6.34.7-0.5.1[/size][/font]
    Erstellt am:
    [font='Verdana][size=small]Di 26 Okt 2010 01:04:13 CEST[/size][/font]
    Paketgruppe:
    [font='Verdana][size=small]Development/Sources[/size][/font]
    Lizenz:
    [font='Verdana][size=small]GPLv2[/size][/font]
    Installierte Größe:
    [font='Verdana][size=small]334,6 MiB[/size][/font]
    Downloadgröße:
    [font='Verdana][size=small]54,6 MiB[/size][/font]
    Distribution:
    Anbieter:
    [font='Verdana][size=small]openSUSE[/size][/font]
    Paketersteller:
    [font='Verdana][size=small]http://bugs.opensuse.org[/size][/font]
    Architektur:
    [font='Verdana][size=small]noarch[/size][/font]
    Erzeugt auf:
    URL:
    [font='Verdana][size=small]http://www.kernel.org/[/size][/font]
    Quellpaket
    [font='Verdana][size=small]kernel-source-2.6.34.7-0.5.1[/size][/font]
    Medium Nr.:
    [font='Verdana][size=small]0[/size][/font]



    das war gar nicht installiert gewesen, ist das normal? Oder war das weil ich schon ein paar updates hinter mir habe?

  • Hi,


    Dann kann das Thema ja als gelöst markiert werden.

    Acer Notebook mit einem Intel Core i7 720QM, 4 GB RAM und ATI Mobility Radeon 4650 Grafikkarte.


    Mit diesen Notebook unterstütze ich das Projekt SETI@home. Denn der i7 rennt und rennt und rennt.
    :) Mark :)

    Für den Inhalt des Beitrages 25680 haftet ausdrücklich der jeweilige Autor: Mark