PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Virtual Box Fehlermeldung



19freddy83
05.11.07, 12:05
Hallo, bekomme immer eine Fehlermeldung, wenn ich eine virtuelle Maschine starten will:

VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or
/dev/vboxdrv was not created for some reason..................

Gibt es hierfür eine Lösung, die man auch als "Neuling" versteht?

sterum
05.11.07, 12:13
Du mußt noch das passende Kernelmodul laden

als root:

modprobe vboxdrv

Soweit ich mich noch erinnern kann muss der Benutzer auch noch in der Gruppe vboxusers sein.

marce
05.11.07, 12:14
Schon mal die Fehlermeldung durch Gioogle gejagt?

Ansonsten - ein paar mehr Infos bräuchten wir schon auch noch - Distri, Versionen, wie Du was gemacht hast, ...

micha97
30.03.08, 19:03
Hallo liebe Fachleute!

Folgende Fehlermeldung erhalte ich beim Kompilieren von vbox:

Checking for Linux kernel sources:
Linux kernel headers not found at /lib/modules/2.6.22.5-31-default/build
Check the file /usr/src/vbox/configure.log for detailed error information.

Hier die configure.log:


# Log file generated by
#
# './configure '
#

***** Checking environment *****
Determined build machine: linux.x86, target machine: linux.x86


***** Checking kBuild *****
found


***** Checking gcc *****
found version 4.2.1


***** Checking as86 *****
found version 0.16.17


***** Checking bcc *****
compiling the following source file:
int foo(a)
int a;
{
return 0;
}
using the following command line:
bcc -B /usr/bin/ -C-c -3 -S -o .tmp_out .tmp_src.c
found version 0.16.17


***** Checking iasl *****
found version 20060912


***** Checking xslt *****
found


***** Checking pthread *****
compiling the following source file:
#include <cstdio>
#include <pthread.h>
extern "C" int main(void)
{
pthread_mutex_t mutex;
if (pthread_mutex_init(&mutex, NULL)) {
printf("pthread_mutex_init() failed\n");
return 1;
}
if (pthread_mutex_lock(&mutex)) {
printf("pthread_mutex_lock() failed\n");
return 1;
}
if (pthread_mutex_unlock(&mutex)) {
printf("pthread_mutex_unlock() failed\n");
return 1;
}
printf("found, OK.\n");
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-lpthread"
executing the binary
found, OK.


***** Checking libxml2 *****
compiling the following source file:
#include <cstdio>
#include <libxml/xmlversion.h>
extern "C" int main(void)
{
printf("found version %s", LIBXML_DOTTED_VERSION);
#if LIBXML_VERSION >= 20626
printf(", OK.\n");
return 0;
#else
printf(", expected version 2.6.26 or higher\n");
return 1;
#endif
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-lxml2 -lpthread -I/usr/include/libxml2"
executing the binary
found version 2.6.30, OK.


***** Checking libxslt *****
compiling the following source file:
#include <cstdio>
#include <libxslt/xsltconfig.h>
extern "C" int main(void)
{
printf("found version %s", LIBXSLT_DOTTED_VERSION);
#if LIBXSLT_VERSION >= 10117
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.1.17 or higher\n");
return 1;
#endif
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-lxslt -lz -lm -lxml2 -lpthread -I/usr/include/libxml2"
executing the binary
found version 1.1.22, OK.


***** Checking libIDL *****
found version 0.8.9


***** Checking zlib *****
compiling the following source file:
#include <cstdio>
#include <zlib.h>
extern "C" int main(void)
{
printf("found version %s", ZLIB_VERSION);
#if ZLIB_VERNUM >= 0x1210
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.2.1 or higher\n");
return 1;
#endif
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-lz "
executing the binary
found version 1.2.3, OK.


***** Checking libpng *****
compiling the following source file:
#include <cstdio>
#include <png.h>
extern "C" int main(void)
{
printf("found version %s", PNG_LIBPNG_VER_STRING);
#if PNG_LIBPNG_VER >= 10205
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.2.5 or higher\n");
return 1;
#endif
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-lpng "
executing the binary
found version 1.2.18, OK.


***** Checking SDL *****
compiling the following source file:
#include <cstdio>
#include <SDL/SDL.h>
#include <SDL/SDL_main.h>
extern "C" int main(void)
{
printf("found version %d.%d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
#if SDL_VERSION_ATLEAST(1,2,7)
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.2.7 or higher\n");
return 1;
#endif
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-L/usr/lib -lSDL -lpthread -I/usr/include/SDL"
executing the binary
found version 1.2.12, OK.


***** Checking X libraries *****
compiling the following source file:
#include <cstdio>
#include <X11/Xlib.h>
extern "C" int main(void)
{
Display *dpy;
int scrn_num;
Screen *scrn;
Window win;

dpy = XOpenDisplay(NULL);
scrn_num = DefaultScreen(dpy);
scrn = ScreenOfDisplay(dpy, scrn_num);
win = XCreateWindow(dpy, RootWindowOfScreen(scrn), 0, 0, 100, 100,
0, 16, InputOutput, CopyFromParent, 0, NULL);
XDestroyWindow(dpy, win);
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11 -I/usr/local/include"
found


***** Checking Xcursor *****
compiling the following source file:
#include <cstdio>
#include <X11/Xlib.h>
#include <X11/Xcursor/Xcursor.h>
extern "C" int main(void)
{
XcursorImage *cursor = XcursorImageCreate (10, 10);
XcursorImageDestroy(cursor);
return 0;
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11 -lXcursor -I/usr/local/include"
found


***** Checking Qt3 *****
compiling the following source file:
#include <cstdio>
#include <qglobal.h>
extern "C" int main(void)
{
printf("found version %s", QT_VERSION_STR);
#if QT_VERSION >= 0x030305
printf(", OK.\n");
return 0;
#elif QT_VERSION >= 0x030300
printf("\n ** WARNING: QT < 3.3.5 has known problems!\n");
#else
printf(", expected version 3.3.0 or higher\n");
return 1;
#endif
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc -I/usr/qt/3/include -L/usr/qt/3/lib -lqt-mt -lpthread
.tmp_src.cc:2:21: error: qglobal.h: No such file or directory
.tmp_src.cc: In function 'int main()':
.tmp_src.cc:5: error: 'QT_VERSION_STR' was not declared in this scope
compiling the following source file:
#include <cstdio>
#include <qglobal.h>
extern "C" int main(void)
{
printf("found version %s", QT_VERSION_STR);
#if QT_VERSION >= 0x030305
printf(", OK.\n");
return 0;
#elif QT_VERSION >= 0x030300
printf("\n ** WARNING: QT < 3.3.5 has known problems!\n");
#else
printf(", expected version 3.3.0 or higher\n");
return 1;
#endif
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc -I/usr/lib/qt3/include -L/usr/lib/qt3/lib -lqt-mt -lpthread
executing the binary
found version 3.3.8b, OK.


***** Checking Qt3 devtools *****
found version 3.3.8b


***** Checking Qt4 *****
Package QtGui was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtGui.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtGui' found
** not found!

***** Checking static stc++ library *****
compiling the following source file:
#include <string>

extern "C" int main(void)
{
std::string s = "test";
return 0;
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "/usr/lib/gcc/i586-suse-linux/4.2.1/libstdc++.a"
found


***** Checking Linux kernel sources *****
compiling the following source file:
#include <linux/version.h>
int printf(const char *format, ...);
int main(void)
{
printf("found version %d.%d.%d", LINUX_VERSION_CODE / 65536,
(LINUX_VERSION_CODE % 65536) / 256,
LINUX_VERSION_CODE % 256);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,0)
printf(", OK.\n");
return 0;
#else
printf(", expected version 2.4.0 or higher\n");
return 1;
#endif
}
using the following command line:
gcc -O -Wall -o .tmp_out .tmp_src.c -nostdinc -I/lib/modules/2.6.22.5-31-default/build/include
.tmp_src.c:1:27: error: no include path in which to search for linux/version.h
.tmp_src.c: In function 'main':
.tmp_src.c:5: error: 'LINUX_VERSION_CODE' undeclared (first use in this function)
.tmp_src.c:5: error: (Each undeclared identifier is reported only once
.tmp_src.c:5: error: for each function it appears in.)
.tmp_src.c:8:40: error: missing binary operator before token "("


Vielen Dank für Euer Bemühen!

Gruß micha

P.S.: Nach der Installation der RPM-Pakete bekam ich eine ähnliche Fehlermeldung beim Aufruf von
/etc/init.d/vboxdrv setup

Rain_maker
30.03.08, 19:07
Checking for Linux kernel sources:
Linux kernel headers not found at /lib/modules/2.6.22.5-31-default/build

Ohne Kernelquellen kein Kernelmodul.

Und das Einrichten einer Updatequelle sowie das Durchführen eines Online-Updates wäre auch mal ne gute Idee.

micha97
30.03.08, 23:39
Ohne Kernelquellen kein Kernelmodul.

Und das Einrichten einer Updatequelle sowie das Durchführen eines Online-Updates wäre auch mal ne gute Idee.

Vielen Dank für Deinen Tipp!

Was muss ich denn außer kernel-source u. kernel-default noch installieren!?
Gerade las ich, dass kernel-syms (opensuse 10.3) noch erforderlich ist

Das Problem ist somit gelöst!!!
Weiterhin vielen Dank für die Hilfe!

Gruß micha