Linux 4.15.0-99-generic с Ubuntu18.04 и VirtualBox

У меня возникают некоторые проблемы при использовании VirtualBox с Ubuntu 18.04 и ядром общего назначения Linux 4.15.0-99 в качестве хоста. При попытке запустить гостевую систему Windows мне выдается следующая ошибка:

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing


'/sbin/vboxconfig'


as root.


If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.


where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

У меня отключена безопасная загрузка, и выполнить «/ sbin / vboxconfig» не удается со следующими журналами:

Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/4.15.0-99-generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /opt/gcc-9.2.1/lib/gcc/x86_64-pc-linux-gnu/9.2.1/include  -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/includ$
  gcc -Wp,-MD,/tmp/vbox.0/.SUPDrv.o.d  -nostdinc -isystem /opt/gcc-9.2.1/lib/gcc/x86_64-pc-linux-gnu/9.2.1/include  -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./a$
  gcc -Wp,-MD,/tmp/vbox.0/.SUPDrvGip.o.d  -nostdinc -isystem /opt/gcc-9.2.1/lib/gcc/x86_64-pc-linux-gnu/9.2.1/include  -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I$
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
  gcc -Wp,-MD,/tmp/vbox.0/.SUPDrvSem.o.d  -nostdinc -isystem /opt/gcc-9.2.1/lib/gcc/x86_64-pc-linux-gnu/9.2.1/include  -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I$
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
  gcc -Wp,-MD,/tmp/vbox.0/.SUPLibAll.o.d  -nostdinc -isystem /opt/gcc-9.2.1/lib/gcc/x86_64-pc-linux-gnu/9.2.1/include  -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I$
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
  gcc -Wp,-MD,/tmp/vbox.0/.SUPDrvTracer.o.d  -nostdinc -isystem /opt/gcc-9.2.1/lib/gcc/x86_64-pc-linux-gnu/9.2.1/include  -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi$
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
  gcc -Wp,-MD,/tmp/vbox.0/r0drv/.alloc-r0drv.o.d  -nostdinc -isystem /opt/gcc-9.2.1/lib/gcc/x86_64-pc-linux-gnu/9.2.1/include  -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include$
scripts/Makefile.build:330: recipe for target '/tmp/vbox.0/linux/SUPDrv-linux.o' failed
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:330: recipe for target '/tmp/vbox.0/SUPDrv.o' failed
make[2]: *** [/tmp/vbox.0/SUPDrv.o] Error 1
  gcc -Wp,-MD,/tmp/vbox.0/r0drv/.initterm-r0drv.o.d  -nostdinc -isystem /opt/gcc-9.2.1/lib/gcc/x86_64-pc-linux-gnu/9.2.1/include  -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/incl$
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
scripts/Makefile.build:330: recipe for target '/tmp/vbox.0/SUPDrvSem.o' failed
make[2]: *** [/tmp/vbox.0/SUPDrvSem.o] Error 1
scripts/Makefile.build:330: recipe for target '/tmp/vbox.0/SUPDrvGip.o' failed
make[2]: *** [/tmp/vbox.0/SUPDrvGip.o] Error 1
/opt/gcc-9.2.1/libexec/gcc/x86_64-pc-linux-gnu/9.2.1/cc1: error while loading shared libraries: libisl.so.21: cannot open shared object file: No such file or directory
scripts/Makefile.build:330: recipe for target '/tmp/vbox.0/SUPDrvTracer.o' failed
make[2]: *** [/tmp/vbox.0/SUPDrvTracer.o] Error 1
scripts/Makefile.build:330: recipe for target '/tmp/vbox.0/SUPLibAll.o' failed
make[2]: *** [/tmp/vbox.0/SUPLibAll.o] Error 1
scripts/Makefile.build:330: recipe for target '/tmp/vbox.0/r0drv/alloc-r0drv.o' failed
make[2]: *** [/tmp/vbox.0/r0drv/alloc-r0drv.o] Error 1
scripts/Makefile.build:330: recipe for target '/tmp/vbox.0/r0drv/initterm-r0drv.o' failed
make[2]: *** [/tmp/vbox.0/r0drv/initterm-r0drv.o] Error 1
Makefile:1577: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
/tmp/vbox.0/Makefile-footer.gmk:114: recipe for target 'vboxdrv' failed

У меня есть:

  • Переустановил VirtualBox,
  • Попробовал несколько разных версий VirtualBox (Latest, test, Ubuntu repo и т. Д.),
  • Переустановил dkms, virtualbox-dkms и заголовки,
  • Попробовал установить общие библиотеки,
  • Обновлено моя система.

Все безуспешно.

Кто-нибудь еще сталкивался с этой проблемой? У меня заканчиваются идеи здесь. Это началось после того, как я перезагрузил свою систему после того, как она запустила несколько системных обновлений.

Большое спасибо за вашу помощь!

0
задан 3 May 2020 в 13:20

1 ответ

Это старое ядро! В любом случае, сообщение предполагает, что вы пропустите libisl.so.21 , что вдвойне озадачивает меня, так как

  • это зависимость компилятора, поэтому у вас должна быть она
  • как разделяемая библиотека, она не имеет смысла находиться в модуле ядра

Однако компилятор, который вы ее собираете ( gcc-9.2.1 ), на самом деле довольно новый, и, поскольку вам нужно скомпилировать Модули ядра с тем же компилятором, что и ядро, и ваше ядро ​​было скомпилировано с gcc-7 , я бы предложил попробовать

CC=gcc-7 /sbin/vboxconfig

Конечно, вам нужен установленный gcc-7. Пожалуйста, опубликуйте журнал, если он не работает.

1
ответ дан 19 June 2020 в 21:43

Другие вопросы по тегам:

Похожие вопросы: