LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-27-2018, 09:49 AM   #1
kamild1996
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Rep: Reputation: Disabled
Unhappy CentOS, kernel-ml 4.19 - VBoxGuestAddition installation fails: Kernel configuration is invalid


Hello,
I'm running CentOS with kernel 4.19 on a VirtualBox 5.2.20 virtual machine, and I'm trying to follow this guide on how to install VirtualBox Guest Additions on the system.
However, when the installation finished, I'm being informed about errors in "vboxadd-setup.log", the error being:
Code:
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 ; \
Some googling told me this might be caused by lack of -devel and -headers packages for the kernel. I believe I have them all though.

Code:
kernel-ml.x86_64                        4.19.0-1.el7.elrepo       @elrepo-kernel
kernel-ml-devel.x86_64                  4.19.0-1.el7.elrepo       @elrepo-kernel
kernel-ml-doc.noarch                    4.19.0-1.el7.elrepo       @elrepo-kernel
kernel-ml-headers.x86_64                4.19.0-1.el7.elrepo       @elrepo-kernel
kernel-ml-tools.x86_64                  4.19.0-1.el7.elrepo       @elrepo-kernel
kernel-ml-tools-libs.x86_64             4.19.0-1.el7.elrepo       @elrepo-kernel
kernel-ml-tools-libs-devel.x86_64       4.19.0-1.el7.elrepo       @elrepo-kernel
(though all packages except for kernel-ml are colored red, idk if that means anything)

Ideas?
 
Old 10-27-2018, 10:49 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
Welcome to LQ.

Have you installed the kernel source via rpm/yum/dnf or whatever they're using now?
Wherever the kernel is (probably under /boot as vmlinuz-<long number> there usually is a file config-<long number>. copy that to the kernel source as .config. Then you should be able to build a kernel. You don't need to install it. Vbox likes to dip into it.
 
Old 10-27-2018, 11:00 AM   #3
kamild1996
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the response.

I installed kernel-ml-devel and kernel-ml-headers via yum, aren't these the kernel sources?
Or do I actually have to get the full kernel source, like described here? Never had to do that on other distros...

I'll try with copying over the said file and I'll report back, thank you.
 
Old 10-27-2018, 11:23 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
While I can't say for sure where you've gone wrong, but I suspect it may have been at the "5. Add KERN_DIR environment variable" part. You are correct in saying you need the -headers and the -devel packages for the kernel installed.

I just installed the guest additions in my CentOS 7.3 VM with kernel-ml version 4.19.0-1. It did complain with the same message as you got in it's log. But upon restart of the VM, the guest additions are installed and working.

I didn't follow the guide you linked per se though. I just installed the relevant kernel-ml packages and then mounted the guest additions ISO and run the installer for them.

Last edited by jsbjsb001; 10-27-2018 at 11:25 AM. Reason: typo
 
Old 10-27-2018, 11:34 AM   #5
kamild1996
LQ Newbie
 
Registered: Oct 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Nope, copying the file didn't help.
After restart it kinda works - shared clipboard seems to work, but the screen driver not so much (no more resolution options, the resolution not changing on window resize...). I'd like to get it to work, I'd love some more screen space
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: kernel configuration is invalid. disha patel Linux - Newbie 1 03-13-2013 04:17 PM
Upgraded kernel to 3.2.2-1, Error "Kernel configuration is invalid" CalvinZA Fedora 3 01-30-2012 12:11 AM
[SOLVED] Trying to install Fedora 13 VM on CentOS 5.5 with xen: Invalid kernel error ncsuapex Linux - Virtualization and Cloud 5 09-16-2010 08:45 AM
Mount VBoxGuestAddition from command line in Centos nerak99 Linux - Newbie 1 10-18-2009 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration