Centos 9 Stream - Virtualbox Kernel Module

Issues related to applications and software problems and general support
Post Reply
powerschlumpf
Posts: 1
Joined: 2022/05/12 18:50:01

Centos 9 Stream - Virtualbox Kernel Module

Post by powerschlumpf » 2022/05/12 19:07:19

I'm running an old notebook as a small "server" that runs a few services. One of these is HomeAssistant running in a VirtualBox Machine and is automatically booted at system start.

Virtualbox was installed using the Fedora Repo. Tried the "all distributions" version as well...

Code: Select all

[root@hp-notebook-server klaus]# rpm -qa | grep Virtual
VirtualBox-6.1-6.1.34_150636_fedora33-2.x86_64

Since a few days (assuming after an auto update) it stopped working. Had a look at it and it can't compile the vbox kernel modules.
/var/log/vbox-setup.log states (sorry for the german phrases, But I guess you get the import part...)

Code: Select all

In Datei, eingebunden von /tmp/vbox.0/include/iprt/types.h:34,
                 von /tmp/vbox.0/include/VBox/types.h:33,
                 von /tmp/vbox.0/SUPDrvInternal.h:38,
                 von /tmp/vbox.0/SUPDrv.c:33:
/tmp/vbox.0/include/iprt/stdarg.h:51:13: schwerwiegender Fehler: stdarg.h: Datei oder Verzeichnis nicht gefunden
   51 | #   include <stdarg.h>
      |             ^~~~~~~~~~
In Datei, eingebunden von /tmp/vbox.0/include/iprt/types.h:34,
                 von /tmp/vbox.0/include/VBox/types.h:33,
                 von /tmp/vbox.0/linux/../SUPDrvInternal.h:38,
                 von /tmp/vbox.0/linux/SUPDrv-linux.c:32:
/tmp/vbox.0/include/iprt/stdarg.h:51:13: schwerwiegender Fehler: stdarg.h: Datei oder Verzeichnis nicht gefunden
   51 | #   include <stdarg.h>
      |             ^~~~~~~~~~
In Datei, eingebunden von /tmp/vbox.0/include/iprt/types.h:34,
                 von /tmp/vbox.0/include/VBox/types.h:33,
                 von /tmp/vbox.0/SUPDrvInternal.h:38,
                 von /tmp/vbox.0/SUPDrvSem.c:33:
/tmp/vbox.0/include/iprt/stdarg.h:51:13: schwerwiegender Fehler: stdarg.h: Datei oder Verzeichnis nicht gefunden
   51 | #   include <stdarg.h>
      |             ^~~~~~~~~~
In Datei, eingebunden von /tmp/vbox.0/include/iprt/types.h:34,
                 von /tmp/vbox.0/include/VBox/types.h:33,
                 von /tmp/vbox.0/SUPDrvInternal.h:38,
                 von /tmp/vbox.0/SUPDrvGip.c:33:
/tmp/vbox.0/include/iprt/stdarg.h:51:13: schwerwiegender Fehler: stdarg.h: Datei oder Verzeichnis nicht gefunden
   51 | #   include <stdarg.h>
      |             ^~~~~~~~~~
Kompilierung beendet.
Kompilierung beendet.
Kompilierung beendet.
Kompilierung beendet.
make[2]: *** [scripts/Makefile.build:271: /tmp/vbox.0/SUPDrvSem.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[2]: *** [scripts/Makefile.build:271: /tmp/vbox.0/SUPDrv.o] Fehler 1
make[2]: *** [scripts/Makefile.build:271: /tmp/vbox.0/SUPDrvGip.o] Fehler 1
make[2]: *** [scripts/Makefile.build:271: /tmp/vbox.0/linux/SUPDrv-linux.o] Fehler 1
make[1]: *** [Makefile:1862: /tmp/vbox.0] Fehler 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxdrv] Fehler 2
So it claims stdarg.h is missing

kernel-header and kernel-devel are installed

Code: Select all

[root@hp-notebook-server klaus]# rpm -qa | grep kernel*
kernel-srpm-macros-1.0-11.el9.noarch
kernel-core-5.14.0-80.el9.x86_64
kernel-modules-5.14.0-80.el9.x86_64
kernel-5.14.0-80.el9.x86_64
kernel-core-5.14.0-85.el9.x86_64
kernel-modules-5.14.0-85.el9.x86_64
kernel-5.14.0-85.el9.x86_64
kernel-core-5.14.0-86.el9.x86_64
kernel-modules-5.14.0-86.el9.x86_64
kernel-tools-libs-5.14.0-86.el9.x86_64
kernel-tools-5.14.0-86.el9.x86_64
kernel-5.14.0-86.el9.x86_64
kernel-devel-5.14.0-86.el9.x86_64
kernel-devel-5.14.0-85.el9.x86_64
kernel-devel-5.14.0-80.el9.x86_64
kernel-headers-5.14.0-86.el9.x86_64
Any idea why and what is going wrong? At the moment I'm a bit lost...

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 9 Stream - Virtualbox Kernel Module

Post by TrevorH » 2022/05/13 00:51:04

To the untrained and distinctly monolingual eye, that looks to me like it's a VirtualBox problem. Did you try asking there already?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply