[SOLVED] Guest Additions Installation (KERN_DIR problem)
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
Moderator: SOLVED :)
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
I went to add/remove software and searched for gcc utility; it said "no results were found"
So what is the solution?
Yes with Linux I'm a noob :-D
So what is the solution?
Yes with Linux I'm a noob :-D
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
@aconti
Were you able to resolve the problem? I have vbox 4.3 and still I have the kern_dir error message in my log and vbox doesn't work.
Thanks!
Were you able to resolve the problem? I have vbox 4.3 and still I have the kern_dir error message in my log and vbox doesn't work.
Thanks!
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
I worked out what the issue was....
For some reason, installing kernel-devel was correctly resolving to: kernel-devel-2.6.32-504.el6.x86_64
but kernel-headers was resolving to: kernel-headers-2.6.32-504.1.3.el6.x86_64
After some cleanup work I managed to get it all happy again. The only thing I did was remove the peel repo totally :-/
For some reason, installing kernel-devel was correctly resolving to: kernel-devel-2.6.32-504.el6.x86_64
but kernel-headers was resolving to: kernel-headers-2.6.32-504.1.3.el6.x86_64
After some cleanup work I managed to get it all happy again. The only thing I did was remove the peel repo totally :-/
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
Just to add (as my comment is still under moderation due to being new on here), it boiled down to:
under my current kernel:
The build was totally pointing to an updated kernel-headers, not only that, that directory didn't exist at all, only the one for my active kernel: /usr/src/kernels/2.6.32-504.el6.x86_64 but as I said, I cleaned up the installation, didn't use the epel6 repo which I was using (Rackspace) and all went well from there.
I'll take look later as to what happened.
under my current kernel:
had two symlinks under it:/lib/modules/2.6.32-504.el6.x86_64
Code: Select all
]lrwxrwxrwx. 1 root root 42 Nov 18 17:45 build -> /usr/src/kernels/2.6.32-504.1.3.el6.x86_64
lrwxrwxrwx. 1 root root 8 Nov 18 17:46 source -> ./build/
I'll take look later as to what happened.
-
- Posts: 3
- Joined: 2016/08/05 07:14:44
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
I know I'm replying to an old thread, and I know it's marked as SOLVED, but there seems to be a missing part at the end.
I sufferend this problem with Centos 7 and VirtualBox 4.3.26 and the symptoms were the same. The problem was that the kernel-devel didn;t match the output from so all I had to do, when I figured it out, was:
After that, running VBoxLinuxAdditions.run worked perfectly.
Maybe, just maybe, this will help someone else.
Cheers,
Norm.
I sufferend this problem with Centos 7 and VirtualBox 4.3.26 and the symptoms were the same. The problem was that the kernel-devel didn;t match the output from
Code: Select all
uname -r
Code: Select all
yum remove kernel-devel
yum install kernel-devel-`uname -r`
Maybe, just maybe, this will help someone else.
Cheers,
Norm.
Why do they put lightning conductors on churches?
How come Tarzan never grew a beard?
How come Tarzan never grew a beard?
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
NormanDunbar wrote:I know I'm replying to an old thread, and I know it's marked as SOLVED, but there seems to be a missing part at the end.
I sufferend this problem with Centos 7 and VirtualBox 4.3.26 and the symptoms were the same. The problem was that the kernel-devel didn;t match the output fromso all I had to do, when I figured it out, was:Code: Select all
uname -r
After that, running VBoxLinuxAdditions.run worked perfectly.Code: Select all
yum remove kernel-devel yum install kernel-devel-`uname -r`
Maybe, just maybe, this will help someone else.
Cheers,
Norm.
Thank you sir!
I know that I should have figured out how to do this alone from the entire thread.
All the information was there.
But it is so nice to have someone just give you the answer and save you the trouble.
I wish more people would bother to just give the exact lines of code for a "solved" thread.
Thanks again.
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
Actually that's not really the correct solution. The problem is that your running kernel version does not match the version of the kernel-devel package that you just installed and the correct solution is to first install the matching kernel to go with your kernel-devel and then reboot so it is the running kernel. Then running kernel and kernel-devel versions match and it will work.
Your method means you uninstall the latest kernel-devel, install a back level one to match your back level kernel and now both need updating...
You should run yum update to make sure that everything is up to date.
Your method means you uninstall the latest kernel-devel, install a back level one to match your back level kernel and now both need updating...
You should run yum update to make sure that everything is up to date.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 3
- Joined: 2016/08/05 07:14:44
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
Afternoon TrevorH
while what you say may be accurate, I installed kernel devel after a yum update to be sure I was up to date. The version of kernel devel that got installed obviously didn't match the running kernel.
I'm normally a Linux Mint user at home but this was my first time using Centos for a long time so I'm a bit rusty.
It's still working though. Even after lots of yum updates.
Cheers,
Norm.
while what you say may be accurate, I installed kernel devel after a yum update to be sure I was up to date. The version of kernel devel that got installed obviously didn't match the running kernel.
I'm normally a Linux Mint user at home but this was my first time using Centos for a long time so I'm a bit rusty.
It's still working though. Even after lots of yum updates.
Cheers,
Norm.
Why do they put lightning conductors on churches?
How come Tarzan never grew a beard?
How come Tarzan never grew a beard?
Re: [SOLVED] Guest Additions Installation (KERN_DIR problem)
You forgot to reboot into the newer kernel after the yum update.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke