• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst]Problem mit VirtualBox

ChichiU

Newbie
Hallo,
ich hab jetzt überall gesucht, aber trotzdem krieg ich virtualbox einfach nicht zum laufen. Ich hoffe ihr könnt mir helfen.

Ich habe Opensuse 10.3
Ich möchte in virtualbox Windows xp zum laufen bringen.
Installiert habe ich virtualbox von der Internetseite.
kernel-source, kernel-syms, Xalan-c, Xerces-c sind installiert.

Fehlermeldung von VirtualBox, wenn ich versuche windows xp zu starten (ist noch nicht installiert):

Code:
VERR_VM_DRIVER_NOT_INSTALLED (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu or Fedora should install the DKMS package at first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.



Virtual machine 'win xp' has terminated unexpectedly during startup.


Fehlercode:
NS_ERROR_FAILURE (0x80004005)
Komponente:
Machine
Interface:
IMachine {1e509de4-d96c-4f44-8b94-860194f710ac}

Ich geh also ins terminal und führe als root "/etc/init.d/vboxdrv setup" aus:
Code:
Stopping VirtualBox kernel module                                    done
Recompiling VirtualBox kernel module                                 failed
  (Look at /var/log/vbox-install.log to find out what went wrong)

Unter dem angegebenen Log steht das hier:

Code:
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.22.19-0.1-default/build SUBDIRS=/tmp/vbox.8 SRCROOT=/tmp/vbox.8 modules
make[1]: Entering directory `/usr/src/linux-2.6.22.19-0.1-obj/x86_64/default'
make -C ../../../linux-2.6.22.19-0.1 O=../linux-2.6.22.19-0.1-obj/x86_64/default modules
make -C /usr/src/linux-2.6.22.19-0.1-obj/x86_64/default \
	KBUILD_SRC=/usr/src/linux-2.6.22.19-0.1 \
	KBUILD_EXTMOD="/tmp/vbox.8" -f /usr/src/linux-2.6.22.19-0.1/Makefile modules
make[3]: gcc: Command not found
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)
mkdir -p /tmp/vbox.8/.tmp_versions
rm -f /tmp/vbox.8/.tmp_versions/*
make -f /usr/src/linux-2.6.22.19-0.1/scripts/Makefile.build obj=/tmp/vbox.8
  gcc -Wp,-MD,/tmp/vbox.8/linux/.SUPDrv-linux.o.d  -nostdinc -isystem  -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.22.19-0.1/include -include include/linux/autoconf.h   -I/tmp/vbox.8 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -fno-common -Os -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -maccumulate-outgoing-args -fomit-frame-pointer  -I/lib/modules/2.6.22.19-0.1-default/build/include  -I/tmp/vbox.8/  -I/tmp/vbox.8/include  -I/tmp/vbox.8/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.8/linux/.tmp_SUPDrv-linux.o /tmp/vbox.8/linux/SUPDrv-linux.c
/bin/sh: gcc: command not found
make[4]: *** [/tmp/vbox.8/linux/SUPDrv-linux.o] Error 127
make[3]: *** [_module_/tmp/vbox.8] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22.19-0.1-obj/x86_64/default'
make: *** [vboxdrv] Error 2

bei modprobe vboxdrv kommt das hier:

Code:
FATAL: Module vboxdrv not found.
besonders das kann ich nicht verstehen. Müßte doch installiert sein, oder?

rpm -qa | grep kernel ergibt
kernel-default-2.6.22.19-0.1
kernel-syms-2.6.22.19-0.1
linux-kernel-headers-2.6.22-19
kernel-source-2.6.22.19-0.1

rpm -qa | grep irtual ergibt
VirtualBox-2.0.4_38406_openSUSE103-1

Das sind alle Infos, die ich bisher zu dem Problem hab. Falls noch was benötigt wird, kann ich das gerne reinsetzen.
 

Wusel1007

Member
Das Kernelmodul für Virtualbox wurde nicht compiliert. Wechsel in den Ordner /usr/src/linux (ist ein Symlink auf das aktuelle Kernel-Sourceverzeichnis) und gib genau das ein, was Dir die Fehlermeldung auch sagt:

Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \

also als root ein "make oldconfig && make prepare"

Danach versuch das Kernelmodul für Virtualbox noch einmal erstellen zu lassen.
 

Rainer Juhser

Moderator
Teammitglied
Das Kernelmodul für Virtualbox wurde nicht kompiliert, weil:
ChichiU schrieb:
make[3]: gcc: Command not found
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
...
/bin/sh: gcc: command not found
Der C-Compiler ist nicht installiert bzw. wird nicht gefunden! Also den Blödsinn mit "make oldconfig && make prepare" erstmal sein lassen und dafür sorgen, dass der GCC gefunden wird.
 

marbas13

Hacker
Nun unterscheiden sich die beiden Antworten ja schon ziemlich in ihrer Kosequenz.
Rein nach Rang würde ich denken, der Moderator müsste es schon wissen.... ;)
@Rainer Juhser: Kannst Du mir, damit ich was lerne, erklären, wie du aus der Fehlermeldung schließt, dass der CC nicht installiert ist ?

Merci vielmals!
 
Oben