guest additions error when compiling - kernel configuration is invalid
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.
guest additions error when compiling - kernel configuration is invalid
I am unable to install guest additions for debian linux. I installed kernel header to match kernel version and guest additions complains it can not find the headers for the kernel version.
error: kernel configuration is invalid.
Include/generated/autoconfig.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.'
Will running the make command install the missing files if the kernel source code is installed in the system?
You need both the correct kernel source and the correct kernel config file copied to the kernel source directory .config. Then run the listed make commands.
I have the kernel source and kernel config files in the .config folder. I get 'no rule to make target oldconfig'. I searched for example syntax and am not sure what 'make' wants on the command line for output.
I had to search for .config file and was able to run make oldconfig and make prepare. Both ran with no errors as I could see the progress in the terminal window. However, I was stymied with compiling the guest additions. In synaptic package manager is listed kernel source 4.19 and the kernel source meta package that depends on the kernel source packages. I have both installed.
I found that the guest additions from within virtualbox 4.2.18 was the problem. I tried several iso files from virtualbox index repository. The later guest additions versions will compile without error. The latest guest additions iso enabled auto resize guest display option in the guest, but froze the guest as well. An earlier iso version 5.2.42 will also compile but the resize guest display option is grayed out. However, I can share folders. The guest is Debian 10.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.