Error when trying to install Guest Additions on RHEL 7

Latest response

Error when trying to install Virtualbox Guest Additions on Red Hat EL 7.4 64bits:

grep: /lib/modules/3.10.0-693.2.1.el7.x86_64/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.10.0-693.2.1.el7.x86_64/build SUBDIRS=/tmp/vbox.1 SRCROOT=/tmp/vbox.1 -j2 modules
make[1]: warning: -jN forced in submake: disabling 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)

Using VBox 5.1.26

Somebody knows how to overcome this issue?

Regards
Carlos

Responses

VirtualBox (currently at 5.1.26) is not fully compatible with RHEL 7.4. See their forum post for details.

"The fix is included in the 5.1 Guest Additions as well as in the most recent 'Development snapshot' Guest Additions. And it will be part of the next Beta as well."

Thanks! It works with 5.1.27 version.

Same problem reappears with RHEL 7.5 and VBox 5.2.8/5.2.10...

Also having the same issue with matching versions.

On Friday I tried test VBoxGuestAdditions_5.2.11-122125.iso which did not fix the problem. Today I gave VBoxGuestAdditions_5.2.11-122202.iso a try and it worked!

THX for all the work which went into the fix!

Sorry but where did you get 5.2.11 version? Currently there is only 5.2.10 that doesn't work

https://www.virtualbox.org/wiki/Testbuilds

Thank you. I am going quickly check that. But current testbuild version is already 122245. Anyway it has managed to execute without issues.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.