Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Discussions about using Linux guests in VirtualBox.
Post Reply
Boxy
Posts: 22
Joined: 31. Jan 2010, 14:58
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: XP, Win7,SUSE,MS-DOS
Location: wild south of germany

Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by Boxy »

Installed guest additions 6.1.40 (after fallback from 7.0.4) into RHEL 8.6 by inserting the guest additions media lead to message
"/tmp/vbox.0/vbox_drv.h:157:12: fatal error: drm/drm_irq.h: No such file or directory".

After the first (automatic) installation for the actual kernel finished with this error, I tried /sbin/rcvboxadd quicksetup all
and got the same drm/drm_irq.h missing message in the detail log - just for the actual kernel 4.18.0-425.3.1.el8.x86_64

Is it my fault or a bug ? (RHEL seems to work)

Code: Select all

$ cat /var/log/vboxadd-setup.log
Building the main Guest Additions 6.1.40 module for kernel 4.18.0-372.16.1.el8_6.x86_64.
Building the shared folder support module.
Building the graphics driver module.
Building the main Guest Additions 6.1.40 module for kernel 4.18.0-372.26.1.el8_6.x86_64.
Building the shared folder support module.
Building the graphics driver module.
Building the main Guest Additions 6.1.40 module for kernel 4.18.0-425.3.1.el8.x86_64.
Building the shared folder support module.
Building the graphics driver module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/4.18.0-425.3.1.el8.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
make[1]: warning: -j2 forced in submake: resetting jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (	\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
(cat /dev/null;   echo kernel//tmp/vbox.0/vboxvideo.ko;) > /tmp/vbox.0/modules.order
  gcc -Wp,-MD,/tmp/vbox.0/.hgsmi_base.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated   -I./include/drm-backport -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -DCONFIG_TPAUSE=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -I./include -I/tmp/vbox.0/ -I./include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"hgsmi_base"' -DKBUILD_MODNAME='"vboxvideo"' -c -o /tmp/vbox.0/.tmp_hgsmi_base.o /tmp/vbox.0/hgsmi_base.c
  gcc -Wp,-MD,/tmp/vbox.0/.modesetting.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated   -I./include/drm-backport -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -DCONFIG_TPAUSE=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -I./include -I/tmp/vbox.0/ -I./include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"modesetting"' -DKBUILD_MODNAME='"vboxvideo"' -c -o /tmp/vbox.0/.tmp_modesetting.o /tmp/vbox.0/modesetting.c
In file included from /tmp/vbox.0/hgsmi_base.c:27:
/tmp/vbox.0/vbox_drv.h:157:12: fatal error: drm/drm_irq.h: No such file or directory
 #  include <drm/drm_irq.h>
            ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:318: /tmp/vbox.0/hgsmi_base.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/vbox.0/vboxvideo_guest.h:34,
                 from /tmp/vbox.0/modesetting.c:27:
/tmp/vbox.0/vbox_drv.h:157:12: fatal error: drm/drm_irq.h: No such file or directory
 #  include <drm/drm_irq.h>
            ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:318: /tmp/vbox.0/modesetting.o] Error 1
make[1]: *** [Makefile:1585: _module_/tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxvideo] Error 2
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by scottgus1 »

I've no idea about this specific question, but there are prerequisites for Guest Additions in Linux, same as for Virtualbox on a Linux host:
https://www.virtualbox.org/manual/ch04. ... ions-linux and https://www.virtualbox.org/manual/ch02. ... nux-prereq
Boxy
Posts: 22
Joined: 31. Jan 2010, 14:58
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: XP, Win7,SUSE,MS-DOS
Location: wild south of germany

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by Boxy »

Hmm. In the first link, Ch.2, I found simply "Red Hat Enterprise Linux as of version 3",
in Ch.4 an information about installing the kernel headers.

But as the GA installation worked before - and even now for these older kernels 4.18.0-372.16.1.el8_6.x86_64 and 4.18.0-372.26.1.el8_6.x86_64,
I think I fulfilled the requirements.

I found that drm_irq.h is related to the Direct Rendering Manager and some hints about drm_irq.h been removed from the kernel,
e.g. https://www.virtualbox.org/ticket/19863 , https://www.virtualbox.org/ticket/21065 , https://www.virtualbox.org/ticket/21272
but the first ones are older ones and the third one talks about 7.0.4.

Ok, I will check the presence of the right kernel headers...
Gerhard G.
Posts: 8
Joined: 6. Nov 2013, 16:59

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by Gerhard G. »

I have encountered the same problem in the following scenario:

Last year, I installed Rocky Linux (RHEL clone) 8.6 in VirtualBox 6.1.36 on a Windows 10 host. No problems there, including building the guest additions for kernel 4.18.0-372.19.1.el8_6.x86_64 . The source tree for this kernel version does contain the file drm/drm_irq.h .
This week, I updated the guest OS to Rocky Linux 8.7, which has added kernel 4.18.0-425.3.1.el8.x86_84 as the new default kernel. The source tree for the new kernel was also installed during the update, and the file drm/drm_irq.h is not present here. However, the guest additions were not rebuilt after the update, but were still working fine with the new kernel.
Today, I updated VirtualBox on the host to release 6.1.40 and subsequently attempted to rebuild the guest additions for Rocky Linux 8.7. This failed because of the missing drm/drm_irq file.

I made two workaround attempts:
- create an empty drm_irq.h file in /usr/src/kernels/4.18.0-425.3.1.el8.x86_64/include/drm
- copy the drm_irq.h file from the older kernel version to the above directory
Both attemps resulted in the same compiler errors indicating a change in the layout of structures. So the conclusion is that the current 6.1.40 guest addition source code is incompatible with the headers of the default kernel in Rocky Linux (and RHEL) 8.7 . We will need to wait for an update in this matter.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by scottgus1 »

This may need to be posted on the Bugtracker.
Gerhard G.
Posts: 8
Joined: 6. Nov 2013, 16:59

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by Gerhard G. »

This may need to be posted on the Bugtracker.
As soon as https://www.virtualbox.org is reachable normally again (currently I am getting a lot of connection resets), I will try.
Gerhard G.
Posts: 8
Joined: 6. Nov 2013, 16:59

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by Gerhard G. »

It turns out this issue has already been reported as ticket #21272 and a fix has been committed for VirtualBox 7.0.4 (already released) and 6.1.42 (yet to be released).
Gerhard G.
Posts: 8
Joined: 6. Nov 2013, 16:59

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by Gerhard G. »

After the release of VirtualBox 6.1.42 (with "initial support for the RHEL 8.7 kernel") I installed the new release and updated the guest OS (Rocky Linux 8.6) to 8.7 (see my above post for the kernel versions).
But again, the kernel modules cannot be built due to a compilation error:

Code: Select all

/tmp/vbox.0/vbox_drv.c: In function »vbox_init«:
/tmp/vbox.0/vbox_drv.c:54:34: Error: Implicit declaration of function »vgacon_text_force« [-Werror=implicit-function-declaration]
 #  define VBOX_VIDEO_NOMODESET() vgacon_text_force() && vbox_modeset == -1
                                  ^~~~~~~~~~~~~~~~~
/tmp/vbox.0/vbox_drv.c:410:6: Remark: while substituting the macro »VBOX_VIDEO_NOMODESET«
   printk("vboxvideo: please consider either to remove it or load driver\n");
      ^~~~~~~~~~~~~~~~~~~~
(Error messages translated from German to English.)
Looks like I have to downgrade to 8.6 again and wait for the next Update... :(
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by fth0 »

I'd suggest to create a ticket in the Bugtracker.

As an alternative, I'd suggest to try the distribution-agnostic VirtualBox download named VirtualBox-6.1.42-155177-Linux_amd64.run.
mareksez
Posts: 1
Joined: 30. Jan 2023, 13:54

Re: Virtualbox Guest Additions 6.1.40 RHEL 8.6 Kernel .18.0-425 drm/drm_irq.h No such file

Post by mareksez »

Gerhard G. wrote:After the release of VirtualBox 6.1.42 (with "initial support for the RHEL 8.7 kernel") I installed the new release and updated the guest OS (Rocky Linux 8.6) to 8.7 (see my above post for the kernel versions).
But again, the kernel modules cannot be built due to a compilation error:

Code: Select all

/tmp/vbox.0/vbox_drv.c: In function »vbox_init«:
/tmp/vbox.0/vbox_drv.c:54:34: Error: Implicit declaration of function »vgacon_text_force« [-Werror=implicit-function-declaration]
 #  define VBOX_VIDEO_NOMODESET() vgacon_text_force() && vbox_modeset == -1
                                  ^~~~~~~~~~~~~~~~~
/tmp/vbox.0/vbox_drv.c:410:6: Remark: while substituting the macro »VBOX_VIDEO_NOMODESET«
   printk("vboxvideo: please consider either to remove it or load driver\n");
      ^~~~~~~~~~~~~~~~~~~~
(Error messages translated from German to English.)
Looks like I have to downgrade to 8.6 again and wait for the next Update... :(
I've had same ("vgacon_text_force") build error on RockyLinux 8.7 guest with VirtualBox 7.0.6 guest additions, I've raised ticket #21446
Post Reply