I am experiencing issues while trying to install VirtualBox 7.2.6 on a freshly setup CentOS 9 Stream x86_64 environment.
The installation fails due to build compilation errors (see below and in detail attached).
I attempted to recompile as root by running /sbin/vboxconfig, but the errors persisted.
I suspect that the current kernel version (5.14.0-681.el9.x86_64) of Centos 9 stream might not be compatible with this version of VirtualBox.
Please note that I am not using UEFI nor Secure Boot, and SELinux is disabled. This setup is running purely for testing purposes in a virtual machine itself.
Could you please advise on how to resolve this issue?
Thank you for your assistance.
--
============================
Linux Distribution
============================
Code: Select all
CentOS Stream 9Running Kernel Version
============================
Code: Select all
5.14.0-681.el9.x86_64Architecture
============================
Code: Select all
x86-64Installed Essential Packages
============================
Code: Select all
kernel-devel-5.14.0-681.el9.x86_64
kernel-headers-5.14.0-681.el9.x86_64Code: Select all
gcc-11.5.0-14.el9.x86_64
make-4.3-8.el9.x86_64
perl-5.32.1-483.el9.x86_64
binutils-2.35.2-69.el9.x86_64
glibc-devel-2.34-245.el9.x86_64
elfutils-libelf-devel-0.194-1.el9.x86_64
qt6-qtbase-6.6.2-1.el9.x86_64Code: Select all
dkms-3.3.0-1.el9Repository List
============================
Code: Select all
repo id repo name
appstream CentOS Stream 9 - AppStream
baseos CentOS Stream 9 - BaseOS
crb CentOS Stream 9 - CRB
epel Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
epel-next Extra Packages for Enterprise Linux 9 - Next - x86_64
extras-common CentOS Stream 9 - Extras packages
virtualbox Oracle Linux / RHEL / CentOS-9 / x86_64 - VirtualBox============================================================
Code: Select all
Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.14.0-681.el9.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
make -f ./scripts/Makefile.build obj=/tmp/vbox.0 \
Code: Select all
In file included from /tmp/vbox.0/combined-os-specific.c:66:
/tmp/vbox.0/r0drv/linux/timer-r0drv-linux.c: In function ‘rtTimerLinuxStdCallback’:
/tmp/vbox.0/r0drv/linux/timer-r0drv-linux.c:754:37: error: implicit declaration of function ‘from_timer’; did you mean ‘mod_timer’? [-Werror=implicit-function-declaration]
754 | PRTTIMERLNXSUBTIMER pSubTimer = from_timer(pSubTimer, pLnxTimer, u.Std.LnxTimer);
| ^~~~~~~~~~
| mod_timer
/tmp/vbox.0/r0drv/linux/timer-r0drv-linux.c:754:70: error: ‘u’ undeclared (first use in this function); did you mean ‘up’?
754 | PRTTIMERLNXSUBTIMER pSubTimer = from_timer(pSubTimer, pLnxTimer, u.Std.LnxTimer);
| ^
| up
/tmp/vbox.0/r0drv/linux/timer-r0drv-linux.c:754:70: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /tmp/vbox.0/combined-os-specific.o] Error 1
make[2]: *** Waiting for unfinished jobs....Code: Select all
/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV -DIPRT_WITHOUT_EFLAGS_AC_PRESERVING -DVBOX_WITH_HOST_VMX -DLOG_ENABLED -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"combined_agnostic1"' -DKBUILD_MODNAME='"vboxdrv"' -D__KBUILD_MODNAME=kmod_vboxdrv /tmp/vbox.0/combined-agnostic1.c | scripts/genksyms/genksyms -r /dev/null >> /tmp/vbox.0/.combined-agnostic1.o.cmd; fi
make[1]: *** [Makefile:1968: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:146: vboxdrv] Error 2
see the whole vbox-setup.log attached