Virtualbox and Linux kernel "header" error

Discussions about using Linux guests in VirtualBox.
Post Reply
eitanweiss
Posts: 2
Joined: 11. Apr 2018, 09:36

Virtualbox and Linux kernel "header" error

Post by eitanweiss »

Hi,

I came across this error
I have centos 7.4

my kernel now is 3.17

Virtual box application works, but starting VM machines prompts this error:



This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-4.15.14-1.el7.elrepo.x86_64

There were problems setting up VirtualBox. To re-start the set-up process
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: Virtualbox and Linux kernel "header" error

Post by socratis »

eitanweiss wrote:Please install the Linux kernel "header" files matching the current kernel
I believe that the error message is clear.
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.
eitanweiss
Posts: 2
Joined: 11. Apr 2018, 09:36

Re: Virtualbox and Linux kernel "header" error

Post by eitanweiss »

hi,

I tried to install kernel-devel-4.15.14-1.el7.elrepo.x86_64, but still the error persists...
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: Virtualbox and Linux kernel "header" error

Post by socratis »

eitanweiss wrote:I tried to
I tried to? A try is a noble effort indeed and a required first step. The question is: did you succeed to have the headers matching your current kernel installed or no.
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.
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: Virtualbox and Linux kernel "header" error

Post by andyp73 »

If your kernel is now 3.17 as per your first post then kernel-devel-4.15.14-1.el7.elrepo.x86_64 doesn't sound like the right thing (or perhaps not the only thing you need) as that sounds like it will install kernel headers for 4.15.14.

-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.
Post Reply