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 am using Ubuntu 13.04 64-BIT as my host operating system running Virtual Box 4.2.10. I get this message when I tell virtualbox to install guest additions(CTRL+D),mounting the volume in the guest OS and run the VBoxLinuxAdditions.run file using root by:

sudo ./VBoxLinuxAdditions.run

It starts and then comes to these error messages:

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.10 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

    Building the main Guest Additions module ...done.
    Building the shared folder support module ...fail!
    (Look at /var/log/vboxadd-install.log to find out what went wrong)
    Doing non-kernel setup of the Guest Additions ...done.
    Installing the Window System drivers
    Warning: unknown version of the X Window System installed.  Not installing
    X Window System drivers.
    Installing modules ...done.
    Installing graphics libraries and desktop services components ...done.
    allusers@allusers-VirtualBox:/media/allusers/VBOXADDITIONS_4.2.10_84104$ 

I followed everything from the official VirtualBox manual on installing guest additions for linux I used some other commands such as:

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

and:

sudo apt-get install virtualbox-guest-x11

I rebooted after executing those command and it still wont work. It still says the kernel modules are missing and the window is not seamless. Any idea what could be the problem? Here is the log file vboxadd-install.log

share|improve this question
    
What /var/log/vboxadd-install.log says? –  Braiam Oct 31 '13 at 22:09
    
I have edited my message to show the link to the log Braiam –  Duval Pearson III Nov 1 '13 at 0:30
    
Did you ran sudo /etc/init.d/vboxadd setup? –  Braiam Nov 1 '13 at 2:06
    
Yes and it still says" The headers for the current kernel are not found. If the following module compilation fails then this could be the problem." –  Duval Pearson III Nov 1 '13 at 2:13
    
Did you restart the system? Try installing sudo apt-get install linux-headers-$(uname -r)-generic instead. –  Braiam Nov 1 '13 at 2:44
show 1 more comment

1 Answer

I've been running the same problem on Debian Wheezy host, running VirtualBox 4.1.8 (with Kubuntu 13.10 as guest).

After some diggings, it seems that installing guest additions on recent 13.10 derived Linux distributions (such as yours : Xubuntu 13.10) requires at least version 4.3 of VirtualBox run on the host.

To update your VirtualBox version up to 4.3:

Add the official repository to your /etc/apt/sources.list file:

deb http://download.virtualbox.org/virtualbox/debian raring contrib

Add the official Oracle repository key and update your repositories list:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update

Select any running virtualbox daemons' id:

ps -aux | grep virtualbox

and kill them.

Install the new version of VirtualBox (it will automatically remove the previous version)

sudo apt-get install virtualbox-4.3

Launch your guest from the VirtualBox interface and install the Guest Additions from the 4.3 .iso on your Linux 13.10 guest, the same way as you did (sudo ./VBoxLinuxAdditions.run). The kernel module will find the appropriate linux header for compilation.

Hope this helps.

For information, here's the generic linux distribution installation tutorial for VirtualBox

share|improve this answer
add comment

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.