Fedora 17 guest additions claim kernel code is missing

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
glob157
Posts: 7
Joined: 3. Jun 2011, 01:25
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: ubuntu

Fedora 17 guest additions claim kernel code is missing

Post by glob157 »

I cannot seem to get the fedora guest addtions installed on virtual box, I've attempted installing kernel-hedeards and kernel-devel using yum, but it appears that the guest additions installation continues to fail :

Verifying archive integrity... All good. Uncompressing VirtualBox 4.1.16 Guest Additions for Linux......... VirtualBox Guest Additions installer Removing installed version 4.1.16 of VirtualBox Guest Additions... Removing existing VirtualBox DKMS kernel modules [ OK ] Removing existing VirtualBox non-DKMS kernel modules [ OK ] 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. The missing package can be probably installed with yum install kernel-devel-3.3.4-5.fc17.x86_64

Building the main Guest Additions module [FAILED] (Look at /var/log/vboxadd-install.log to find out what went wrong) Doing non-kernel setup of the Guest Additions [ OK ] Installing the Window System drivers Installing X.Org Server 1.12 modules [ OK ] Setting up the Window System to use the Guest Additions [ OK ] You may need to restart the hal service and the Window System (or just restart the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ] Press Return to close this window...

A closer look reveals that this is related to the missing kernel headers.

Im not sure why these headers are so important, but it appears that, even though they exist, the guest additions are still not installed:

Uninstalling modules from DKMS Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/4.1.16/source -> /usr/src/vboxguest-4.1.16

DKMS: add completed. Error! echo Your kernel headers for kernel 3.3.4-5.fc17.x86_64 cannot be found at /lib/modules/3.3.4-5.fc17.x86_64/build or /lib/modules/3.3.4-5.fc17.x86_64/sourc e. Failed to install using DKMS, attempting to install without /tmp/vbox.0/Makefile.include.header:97: * Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. St op. Creating user for the Guest Additions. Creating udev rule for the Guest Additions kernel module.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Fedora 17 guest additions claim kernel code is missing

Post by Perryg »

You need to install the missing dependency & you more than likely need to update the OS packages.

Code: Select all

sudo yum update
sudo yum install kernel-devel-3.3.4-5.fc17.x86_64
Post Reply