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

Discussions about using Linux guests in VirtualBox.

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

Postby hackerNovitiate » 17. May 2011, 15:08

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.
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)

Postby Sasquatch » 17. May 2011, 21:23

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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

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

Postby hackerNovitiate » 18. May 2011, 04:19

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! :?
hackerNovitiate
 
Posts: 6
Joined: 12. Jun 2010, 06:49
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu 10.0.4

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

Postby Sasquatch » 18. May 2011, 19:58

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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 19 guests