Virtualbox guest additions installation fails for shared folder support!

8,135

Solution 1

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`

Solution 2

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.

Share:
8,135

Related videos on Youtube

Thushi
Author by

Thushi

profile for Thushi on Stack Exchange, a network of free, community-driven Q&A sites http://stackexchange.com/users/flair/4513626.png

Updated on September 18, 2022

Comments

  • Thushi
    Thushi over 1 year

    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
    Thushi about 9 years
    Aah. Sorry I forgot to mention that it is working fine with 4.3.20.But I need to make it work on 4.3.4.
  • Elder Geek
    Elder Geek about 9 years
    Your answer would be much improved if you edit your answer and provide version numbers. The current "latest VirtualBox" is unlikely to remain so forever.
  • Buttle Butkus
    Buttle Butkus about 8 years
    Doesn't work. linux-headers-4.2.0-16-generic is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 58 not upgraded. On Ubuntu 15.10 running in VirtualBox 5 on Windows 8.1 host.
  • kos
    kos about 8 years
    @ButtleButkus Is this Ubuntu Server? If so: askubuntu.com/questions/98416/…
  • Buttle Butkus
    Buttle Butkus about 8 years
    Hi kos, yes it is Ubuntu Server. Thanks for the link. I ended up starting over using Ubuntu 14.04.3, and the first thing I did was focus on getting the share working before installing the "AMP" of my LAMP stack. I'm not sure why it worked, but it worked this time. I'll try again with Ubuntu 15.10 another day.
  • kos
    kos about 8 years
    @ButtleButkus Not sure either but glad that it worked. :)