VBoxLinuxAdditions reports that kernel cannot be built

Discussions about using Linux guests in VirtualBox.
Post Reply
Freelance
Posts: 1
Joined: 24. Nov 2017, 20:25

VBoxLinuxAdditions reports that kernel cannot be built

Post by Freelance »

The log file after executing VBoxLinuxAdditions.run says that the Linux Headers are not installed. I have installed them (several times) but it never sees them and it says "The systems is not currently set up to build kernel modules". I have installed 5.22 of Virtual Box because it was supposed to resolve the windows resizing problem. I am on 4.13.0 of Kali, running in a Windows 10 host.
Everything in VirtualBox seems to work with my Kali installation except the window resizing.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VBoxLinuxAdditions reports that kernel cannot be built

Post by socratis »

Moving to "Linux Guests" from "Windows Hosts".
Freelance wrote:says that the Linux Headers are not installed. I have installed them
Not the ones that match the kernel that you're running, no. And it's not VirtualBox that's complaining, it's your own Kali because it tries to compile something and it can't find the exact set of headers-kernel. Could you double check and make absolutely sure that the kernel and the headers match to the "t"?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
vensasa
Posts: 78
Joined: 8. Jul 2011, 18:52
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu Linux

Re: VBoxLinuxAdditions reports that kernel cannot be built

Post by vensasa »

It looks like I am having this problem as well on a Linux Ubuntu 17.04 guest, with 5.2.2. Looks like they broke building the Guest Additions again.


PS: It looks like they did build. At first it said that vboxsf would not load but after rebooting they are loaded fine now.
Post Reply