Ciao,
uso Debian testing:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing
Codename: bullseye
e uso VirtualBox scaricandolo di Oracle:
$ vboxmanage --help | head
Oracle VM VirtualBox Command Line Management Interface Version 6.1.18
(C) 2005-2021 Oracle Corporation
All rights reserved.
L'installazione l'ho fatta scaricando il pacchetto VirtualBox-6.1.18-142142-Linux_amd64.run e avviadolo da shell.
Questa terminava con il seguente messaggio:
Installing VirtualBox to /opt/VirtualBox
Python found: python2, installing bindings...
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may 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.
VirtualBox has been installed successfully.
e poi ancora:root@hpebian:~# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may 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.
guardando nei log:# cat /var/log/vbox-setup.log
Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.10.0-5-amd64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
make -C /usr/src/linux-headers-5.10.0-5-amd64 -f /usr/src/linux-headers-5.10.0-5-common/Makefile modules
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.
make[2]: *** [/usr/src/linux-headers-5.10.0-5-common/Makefile:717: include/config/auto.conf] Error 1
make[1]: *** [/usr/src/linux-headers-5.10.0-5-common/Makefile:185: __sub-make] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxdrv] Error 2
root@hpebian:~# make oldconfig && make prepare
make: *** No rule to make target 'oldconfig'. Stop.
ho installato linux-config-5.10 linux-source-5.10 ma niente fin quando non ho fatto il seguente link:
ln -s /usr/src/linux-headers-5.10.0-5-amd64/include/generated /usr/src/linux-headers-5.10.0-1-common/include/
ls -la /usr/src/linux-headers-5.10.0-1-common/include/generated
lrwxrwxrwx 1 root root 55 4 apr 22.25 /usr/src/linux-headers-5.10.0-1-common/include/generated -> /usr/src/linux-headers-5.10.0-5-amd64/include/generated
che evidentemente gli serve per trovare tutti i file necessari alla compilazione dei moduli:
/sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
non ho capito se ha a che fare con il problema che hai avuto te, ma comunque è un problema che io non mi aspettavo e che mi ha fatto perdere un po' di tempo.
Ciao