Guest Additions 64-bit Centos

Discussions related to using VirtualBox on Windows hosts.
Post Reply
dizwell
Posts: 4
Joined: 4. Nov 2008, 00:30

Guest Additions 64-bit Centos

Post by dizwell »

I'm running VirtualBox 2.0.4 on a 64-bit Vista host, Centos 5.1 64-bit guest, with all the latest updates.

When I tried to run the VBoxLinuxAdditions-amd64.run script, I get this error:

"Please install the build and header files for your current Linux kernel. The current kernel version is 2.6.18-92.1.13.el5"

I searched Google for that error message and found links to various VirtualBox bug reports, but they seemed to relate to versions 1.5+ or 1.6+ and all claimed to have been fixed.

I also found a reference to installing the kernel-devel package for my kernel version and did that... but to no effect. The same error keeps on being generated.

Any further enlightenment that anyone can give as to how I can install the Additions properly in this guest would be gratefully received.
wabe
Posts: 35
Joined: 3. Nov 2008, 23:24

Post by wabe »

You need to install the kernel-source gcc gcc-++ and make
After that run the script file in 'Guestadditions'
dizwell
Posts: 4
Joined: 4. Nov 2008, 00:30

Post by dizwell »

Thanks for replying. Can you be more specific?

There is no gcc-++ package for Centos. There is a gcc-c++ package, and that is already installed. So are the others you mentioned, I think:

Code: Select all

[root@sparta ~]rpm -q make gcc gcc-c++
make-3.81-3.el5
gcc-4.1.2-42.el5
gcc-c++-4.1.2-42.el5
As for kernel sources, do I really need them? I've compiled Oracle databases and Lord knows what on Linux boxes aplenty and have never had to do the sort of things described in http://wiki.centos.org/HowTos/I_need_the_Kernel_Source in order to get the "true" Kernel Sources. Kernel-devel has always proved sufficient in the past. I don't mind doing their Section 2 if I really have to, but I'd like to be sure that's really the issue rather than one of the bugs I mentioned I'd discovered earlier...
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Kernel-devel will be enough for creating kernel modules. That is just the whole problem with the different distro's. One calls them kernel-headers, another calls it kernel-devel and yet another one calls it kernel-sources.
Of course you need the compilers too, next to kernel-devel.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
dizwell
Posts: 4
Joined: 4. Nov 2008, 00:30

Post by dizwell »

Thanks, that's what I hoped and thought.

But that leaves me up a certain creek without a paddle: I have the sources, I have the compilers and still the additions won't install!

Any other suggestions?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Check the error message and log, do what it says and you should be good to go. Do you still get the same error?

Oh, and do a uname -a to see what kernel you are currently running and check your package manager to see what version of the kernel-devel you installed. They have to be the same.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply