[Solved] ERROR: Kernel configuration is invalid with RHEL 7.4

Discussions about using Linux guests in VirtualBox.
Post Reply
eeijlar
Posts: 3
Joined: 16. Oct 2014, 12:49

[Solved] ERROR: Kernel configuration is invalid with RHEL 7.4

Post by eeijlar »

I get the 'ERROR: Kernel configuration is invalid' error message:

Code: Select all

/usr/bin/gmake -i V=1 CONFIG_MODULE_SIG= -C /lib/modules/3.10.0-693.11.1.el7.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install
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 /lib/modules/3.10.0-693.11.1.el7.x86_64/misc
/usr/bin/gmake -i -f ./scripts/Makefile.modinst
when trying to install the guest additions for Linux RHEL 7.4, with Windows 7 as the host OS.

In this post:
viewtopic.php?f=15&t=84201#p399506

it advised updating to a later version should work so I tried Virtual Box 5.1.30 and 5.1.31

I also tried 5.2 as advised here:
viewtopic.php?f=3&t=85105

I still get the error it doesn't matter what version I use.
Last edited by socratis on 3. Dec 2017, 10:23, edited 1 time in total.
Reason: Marked as [Solved].
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: ERROR: Kernel configuration is invalid with RHEL 7.4

Post by socratis »

That's not an error, that's an "echo" statement from the installer script.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
eeijlar
Posts: 3
Joined: 16. Oct 2014, 12:49

Re: ERROR: Kernel configuration is invalid with RHEL 7.4

Post by eeijlar »

Ah ok... sorry didn't notice that. I guess it installed successfully so. The X server still doesn't come up though:

Code: Select all

[    27.205] (II) LoadModule: "vboxvideo"
[    27.247] (WW) Warning, couldn't open module vboxvideo
[    27.247] (II) UnloadModule: "vboxvideo"
[    27.247] (II) Unloading vboxvideo
[    27.247] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[    27.248] (EE) No drivers available.
I got it to start by moving away the old xorg.conf:

Code: Select all

mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
Thanks for your help.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: ERROR: Kernel configuration is invalid with RHEL 7.4

Post by socratis »

Great, thanks for the feedback. Marking as [Solved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply