LINUX.ORG.RU

[VirtualBox][openSUSE] Проблема с Kernel driver

 ,


0

1

Решил обновить VirtualBox до 4.1, после этого при запуске любой системы выскакивает:

Kernel driver not installed (rc=-1908)

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

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
При попытке установить:
sudo /etc/init.d/vboxdrv setup
root's password:
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)
После установки
zypper install gcc make automake autoconf kernel-source kernel-syms
Установить драйвер снова не получилось. Гугол с яндексом ничего не дают.

★★

Ответ на: комментарий от Novell-ch
cat /var/log/vbox-install.log 
Makefile:175: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -C /usr/src/linux modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (	\
echo;								\
echo "  ERROR: Kernel configuration is invalid.";		\
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo;								\
/bin/false)

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

  WARNING: Symbol version dump /usr/src/linux-2.6.37.6-0.5/Module.symvers
           is missing; modules will have no dependencies and modversions.

make -f scripts/Makefile.build obj=/tmp/vbox.0
/tmp/vbox.0/Makefile:175: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
  gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.5/include -I/usr/src/linux-2.6.37.6-0.5/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fomit-frame-pointer -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/usr/src/linux/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxdrv/ -I/tmp/vbox.0/vboxdrv/include -I/tmp/vbox.0/vboxdrv/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_X86 -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.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/tmp/vbox.0/linux/SUPDrv-linux.c:1:0: error: code model ‘kernel’ not supported in the 32 bit mode
/tmp/vbox.0/linux/SUPDrv-linux.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Ошибка 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxdrv] Error 2
intel ★★
() автор топика

> kernel-source
а надо kernel-devel (или kernel-headers, в зависимости от того, какой пакет существует)

AITap ★★★★★
()
Ответ на: комментарий от AITap
# zypper in kernel-devel
Загрузка данных о репозиториях...
Чтение установленных пакетов...
'kernel-devel' уже установлен.
Нет кандидатов на обновление 'kernel-devel-2.6.37.6-0.5.1.noarch'. Новейшая версия уже установлена.
Разрешение зависимостей пакетов...

Нечего выполнять.
intel ★★
() автор топика
Ответ на: комментарий от Novell-ch

make oldconfig && make prepare как совенуется в логе, но я раyьше делал
make menuconfig (требует ncurses-devel)
make prepare

Novell-ch ★★★★★
()

>openSUSE

Решил обновить VirtualBox до 4.1

Естественно, из официального репозитария для openSUSE?

Led ★★★☆☆
()
Ответ на: комментарий от intel

О, знакомая ошибка. У меня так бывает, когда я запущу компиляцию ядра и прерву. Потом пока не докомпилирую, ни один модуль не компилируется!

ZenitharChampion ★★★★★
()
31 марта 2012 г.

OpenSUSE 11.4

Столкнулся с такой же проблемой. Сделал следующее: 1. добавил репозиторий для Virtualization http://download.opensuse.org/repositories/Virtualization/ (выбери свой)

2 zypper update 3 zypper dup 4. reboot

После этого у меня стали запускаться виртуалки.

Возможно ещё некоторым понадобиться сделать следующее (после вышеописанного): 5 /etc/init.d/vboxdrv setup 6 /etc/init.d/vboxdrv restart

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.