Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm having problems installing guest additions on a Ubuntu 11.04 guest os. The host os is Windows XP pro

On the host os (Windows XP), I also have another guest os Ubuntu 10.04, and I have had no problem installing guest additions on that.

When I try installing guest additions on the guest os Ubuntu 11.04, I get a message saying

The headers for the current running kernel was not found

So I installed

linux-headers-generic

Tried installing guest additions again, and got the same message as before:

The headers for the current running kernel was not found

So my question is, how do I install guest additions on the guest os ubuntu 11.04 where Windows XP is the host os. I just checked with uname -a to get the correct version, then check using aptitude and noticed that the correct version is already installed.

I am using VirtualBox 4.0.8.

share|improve this question
    
Have you seen this question? It's the same for 11.04 where you start in Gnome classic anyway. –  Takkat May 31 '11 at 11:40
    
Do you have a PAE kernel? What is the output of uname -r? –  Lekensteyn Jul 2 '11 at 7:24

2 Answers 2

up vote 3 down vote accepted

You will need to install the kernel modules (headers) package that match the kernel version you are running the Ubuntu virtual machine with.

Type the following command in the terminal:

uname -a

This will give you line like this:

Linux dirk-Studio-1558 2.6.38-9-generic #43-Ubuntu SMP Thu Apr 28 15:23:06 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

The first word is the type of system, the second is the name of your machine and the third one is the one you are looking for. It gives the kernel version.

So you need to install the linux-headers-{my kernel version here} package from Synaptic org using apt-get. In my case it would be

sudo apt-get install linux-headers-2.6.38-9-generic

or directly in one generic command:

sudo apt-cache search linux-headers-`uname -r`

Hope that helps!

edit:

Ok, if that is setup correctly you can try to install the packages listed here Check post #12

share|improve this answer
    
I just checked with uname -a to get the correct version, then check using aptitude and noticed that the correct version is already installed. –  oshirowanen May 31 '11 at 13:19

I had a similar problem and found that I need the linux-kernel-devel package. Since apt-get could not find it, i used apt-file search and found linux-kernel inside the virtualbox-ose-guest-dkms package.

So sudo apt-get install virtualbox-ose-guest-dkms

solved the problem with the warning.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.