View Issue Details

IDProjectCategoryView StatusLast Update
0004192Rocky-Linux-9Generalpublic2023-09-12 09:25
ReporterSistemi Arcadja Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Summary0004192: Error installing virtualbox guest additions (6.0.24.r139119 - Qt.5.6.1) on rocky linux 9.2
DescriptionI tried to install the virtualbox guest additions on rocky linux 9.2 (updated 09/11/2023) but I received the following error:

-----------
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.24 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.24 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel
5.14.0-284.25.1.el9_2.x86_64.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
went wrong
ValueError: File context for /opt/VBoxGuestAdditions-6.0.24/other/mount.vboxsf already defined
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.
-----------

in the log file I saw:

-----------
  gcc -Wp,-MMD,/tmp/vbox.0/.VBoxGuest.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -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-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong "-Wimplicit-fallthrough=5" -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -Wno-declaration-after-statement -fno-pie -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -DMODULE -DKBUILD_BASENAME='"VBoxGuest"' -DKBUILD_MODNAME='"vboxguest"' -D__KBUILD_MODNAME=kmod_vboxguest -c -o /tmp/vbox.0/VBoxGuest.o /tmp/vbox.0/VBoxGuest.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --orc --retpoline --rethunk --static-call --uaccess --module /tmp/vbox.0/VBoxGuest.o
In file included from /tmp/vbox.0/include/iprt/types.h:34,
                 from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:37,
                 from /tmp/vbox.0/VBoxGuest-linux.c:36:
/tmp/vbox.0/include/iprt/stdarg.h:47:12: fatal error: stdarg.h: File o directory non esistente
   47 | # include <stdarg.h>
      | ^~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:321: /tmp/vbox.0/VBoxGuest-linux.o] Errore 1
make[2]: *** Attesa per i processi non terminati....
In file included from /tmp/vbox.0/include/iprt/types.h:34,
                 from /tmp/vbox.0/VBoxGuestInternal.h:33,
                 from /tmp/vbox.0/VBoxGuest.c:54:
/tmp/vbox.0/include/iprt/stdarg.h:47:12: fatal error: stdarg.h: File o directory non esistente
   47 | # include <stdarg.h>
      | ^~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:321: /tmp/vbox.0/VBoxGuest.o] Errore 1
make[1]: *** [Makefile:1923: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxguest] Error 2
Could not find the X.Org or XFree86 Window System, skipping.
modprobe vboxguest failed
-----------

I then tried to search for the stdarg.h file to see if it was not present on the server but the result was the following:

-----------
/opt/VBoxGuestAdditions-6.0.24/src/vboxguest-6.0.24/vboxguest/include/iprt/stdarg.h
/opt/VBoxGuestAdditions-6.0.24/src/vboxguest-6.0.24/vboxsf/include/iprt/stdarg.h
/opt/extra/stdarg.h
/usr/include/c++/11/tr1/stdarg.h
/usr/lib/gcc/x86_64-redhat-linux/11/include/cross-stdarg.h
/usr/lib/gcc/x86_64-redhat-linux/11/include/stdarg.h
/usr/share/man/man0p/stdarg.h.0p.gz
/usr/src/kernels/5.14.0-284.11.1.el9_2.x86_64/include/linux/stdarg.h
/usr/src/kernels/5.14.0-284.25.1.el9_2.x86_64/include/linux/stdarg.h
-----------

I would like to point out that the kernel version in use on the virtual server is 5.14.0-284.25.1.el9_2.x86_64 and the virtualbox version installed on the physical server is 6.0.24.r139119.

Online I saw that some people suggested switching to virtualbox 6.1.X, but since it is a production server that hosts online services I am not allowed to shut down the system to perform the update.

Are there any patches or alternative procedures that allow me to install the virtualbox guest additions on rocky linux 9.2?

Thank you.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-09-12 09:25 Sistemi Arcadja New Issue