Multiple "ERROR: Kernel configuration is invalid" in VBox/OpensuseLeap15 rpm's 'setup'

Discussions related to using VirtualBox on Linux hosts.
Post Reply
hal858
Posts: 2
Joined: 24. Jul 2018, 01:42

Multiple "ERROR: Kernel configuration is invalid" in VBox/OpensuseLeap15 rpm's 'setup'

Post by hal858 »

I run

Code: Select all

lsb_release -rd
	Description:    openSUSE Leap 15.0
	Release:        15.0

uname -rm
	4.17.9-lp150.3.g059e5b8-default x86_64
kernel's prepped as usual,

Code: Select all

cd /usr/src/linux
pwd
	/usr/src/linux-4.17.9-lp150.3.g059e5b8
make V=1 oldconfig
make V=1 prepare
make V=1 modules_prepare

I upgraded to latest VBox rpm,

Code: Select all

d.v.o/virtualbox/5.2.16/VirtualBox-5.2-5.2.16_123759_openSUSE150-1.x86_64.rpm

rpm -qa | grep -i virtualbox
	VirtualBox-5.2-5.2.16_123759_openSUSE150-1.x86_64
non-verbose exec of setup appears ok,

Code: Select all

sh /usr/lib/virtualbox/vboxdrv.sh setup
	vboxdrv.sh: Stopping VirtualBox services.
	vboxdrv.sh: Starting VirtualBox services.
	vboxdrv.sh: Building VirtualBox kernel modules.

lsmod | grep -i vbox
	vboxpci                28672  0
	vboxnetadp             28672  0
	vboxnetflt             32768  0
	vboxdrv               483328  3 vboxpci,vboxnetadp,vboxnetflt
But, closer, verbose inspection of the build with, reports ERRORs; multiple instances of,

Code: Select all

sh -x /usr/lib/virtualbox/vboxdrv.sh setup
	...
	make -C /usr/src/linux-4.17.9-lp150.3.g059e5b8-obj/x86_64/default KBUILD_SRC=/usr/src/linux-4.17.9-lp150.3.g059e5b8 \
	-f /usr/src/linux-4.17.9-lp150.3.g059e5b8/Makefile 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/4.17.9-lp150.3.g059e5b8-default/misc
	...
, despite the prior, successfful kernel prep.

It doesn't appear to affect the app. Vbox launches on Desktop, and VMs launch & function as usual.

Is this build-script noise? Or a real build issue?
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: Multiple "ERROR: Kernel configuration is invalid" in VBox/OpensuseLeap15 rpm's 'setup'

Post by andyp73 »

If you read the script properly you will see that the lines starting from "test -e" all the way to "/bin/false) are all part of the same command. Those that start with "echo" only get executed if the test command fails.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
hal858
Posts: 2
Joined: 24. Jul 2018, 01:42

Re: Multiple "ERROR: Kernel configuration is invalid" in VBox/OpensuseLeap15 rpm's 'setup'

Post by hal858 »

> If you read the script properly

Yep, that'd be a good start! pebkac. thx.
Post Reply