#21078 closed defect (worksforme)
/sbin/vboxconfig autoconf.h or auto.conf missing vbox 6.1.36 kernel 5.19
回報者: | gadame | 負責人: | |
---|---|---|---|
元件: | other | 版本: | VirtualBox 6.1.36 |
關鍵字: | 副本: | ||
Guest type: | other | Host type: | other |
描述
Hi,
I am having some issues with Virtual Box on Oracle Linux 8.6, I can't run the virtual machine because vboxconfig is failing.
[root@xxxxxx build]# /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.
[root@xxxxxx build]# 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.19.3-1.el8.elrepo.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules make[1]: warning: -j8 forced in submake: resetting jobserver mode.
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[1]: * [Makefile:739: include/config/auto.conf] Error 1 make: * vboxdrv Error 2
[root@xxxxxx build]# cd /lib/modules/5.19.3-1.el8.elrepo.x86_64/build [root@xxxxxx build]# make oldconfig lib/Kconfig.debug:2691: can't open file "Documentation/Kconfig" make[1]: * [scripts/kconfig/Makefile:77: oldconfig] Error 1 make: * [Makefile:629: oldconfig] Error 2
Installed versions
akmod-VirtualBox-6.1.36-1.el8.x86_64 VirtualBox-kmodsrc-6.1.36-1.el8.noarch VirtualBox-6.1-6.1.36_152435_el8-1.x86_64 VirtualBox-guest-additions-6.1.36-1.el8.x86_64
kernel-ml-5.19.3-1.el8.elrepo.x86_64
it is failing with UEK kernel
kernel-uek-5.15.0-1.43.4.2.el8uek.x86_64
Hi,
I have downloaded the kernel source(same version) from kernel.org and copied 'Documentation' directory to /lib/modules/5.19.3-1.el8.elrepo.x86_64/build. Then I have executed the following procedure:
make oldconfig make prepare /sbin/vboxconfig
And VirtualBox is up and running!
Regards