[Solved] Guest Additions can't find Linux headers?

Discussions about using Linux guests in VirtualBox.
Post Reply
hackerNovitiate
Posts: 6
Joined: 12. Jun 2010, 06:49
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu 10.0.4

[Solved] Guest Additions can't find Linux headers?

Post by hackerNovitiate »

Hi all,

I recently upgraded to VirtualBox 4.0.6 and Ubuntu 11.04. While installing Guest Additions, I was told, "The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason."

`uname -a` tells me that I'm running 2.6.38-8-generic, and my package manager tells me that I do have the following installed:

linux-headers-generic
linux-headers-2.6.38-8
linux-headers-2.6.38-8-generic

What else do I need?


All the Guest Additions features that I've tested seem to be working as expected, but I'm wondering if something wasn't installed properly.
Last edited by hackerNovitiate on 18. May 2011, 13:38, edited 1 time in total.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Guest Additions can't find Linux headers? (Ubuntu 11.04)

Post by Sasquatch »

Check my howto in the tutorials section (or just see my signature) for how to install the GA.
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.
hackerNovitiate
Posts: 6
Joined: 12. Jun 2010, 06:49
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu 10.0.4

Re: Guest Additions can't find Linux headers? (Ubuntu 11.04)

Post by hackerNovitiate »

Thanks Sasquatch.

My system was missing dkms. Error message is gone now.

I'm just surprised that the GA installer apparently managed to build DKMS modules before without it! :?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: [Solved] Guest Additions can't find Linux headers?

Post by Sasquatch »

It didn't build dkms modules, because they don't exist. Dkms is a tool that helps in creating kernel modules. It's not required, but highly recommended in it's use, as it automatically builds the new modules registered with it for the when you update the kernel.
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