2

I am trying to setup Ubuntu guest OS on a Windows host system.After creating the new virtual machine, I am trying to install the guest additions and I am running sudo sh VBoxLinuxAdditions.run but running that I am getting the following error,

  The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.

  Building the shsared folder support module ... fail!

  Warning: Unknown version of the X window ystem installed. Not installing X Window system drivers.

Virtual box version : 4.3.4-91027

Host system : Windows 7 64 bit

Guest OS : Ubuntu 12.04 32 bit.

UPDATE

On newer version `4.3.26` it works fine, But I need to make it work on `4.3.4-91027`.

Thanks in advance.

Thushi
  • 131
  • 1
  • 6

4 Answers4

2

The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.

Building the shsared folder support module ... fail!

That gives a clue. Install the headers for your kernel version:

sudo apt-get install linux-headers-`uname -r`
kos
  • 41,268
1

Try downgrading (Some issues have been addressed with the newer versions of VBox), make sure the versions correlate with the correct (Working) versions of VBox.

0

I found an hack for this problem, I just took the Guest additions of latest VirtualBox and I installed it.It solved all my problems. :)

Thank you

Thushi
  • 131
  • 1
  • 6
-1

Instead of using the Virtualbox Guest Addition ISO file, try using the following commands in the terminal on the guest Virtual Machine :

Do update:

apt-get update

Install dependencies

apt-get install build-essential linux-headers-$(uname -r)

Install guest additions

apt-get install virtualbox-guest-x11

Use sudo before the commands if required.

pl_rock
  • 11,715