Page 1 of 1

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

Posted: 2. Dec 2017, 12:52
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.

Re: ERROR: Kernel configuration is invalid with RHEL 7.4

Posted: 2. Dec 2017, 14:09
by socratis
That's not an error, that's an "echo" statement from the installer script.

Re: ERROR: Kernel configuration is invalid with RHEL 7.4

Posted: 3. Dec 2017, 09:32
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.

Re: ERROR: Kernel configuration is invalid with RHEL 7.4

Posted: 3. Dec 2017, 10:23
by socratis
Great, thanks for the feedback. Marking as [Solved].