Linux - Virtualization and CloudThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.