Ask Your Question

Oracle VM Virtual Box Guest Additions installation failure in Fedora 17

asked 2012-10-27 20:03:48 -0500

JuanjoMadLinux gravatar image

updated 2013-06-03 23:26:36 -0500

I was trying to install Virtual Box Guest Additions in Fedora 17. This is the outpout I've got:

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.6.1-1.fc17.i686

**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  ]
[root@linuxserver MaquinaBochs]#

The bold line is the one that refers to the problem. I looked to the log file vboxadd-install.log and this is what I've got:

/tmp/vbox.0/Makefile.include.header:106: *** Error: KERN_DIR does not point to a directory.  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

It says that KERN_DIR doesn't point to a directory, but as root user in terminal I wrote this:

export KERN_DIR

With those lines it is supposed to point to the kernel folder but it doesn't do it. I'm running Fedora 17 LXDE with the kernel version 3.6.2-4.fc17.i686 in a VirtualBox Machine. The version of Virtual Box is: 4.1.18r78361. I downloaded the kernel headers needed for the Guest Additions installation.

So if some of you can help me, I really appreciate it.

Thanks in advance.

edit retag flag offensive close merge delete


Thanks hhlp. It works well.

loveivyou gravatar imageloveivyou ( 2013-06-09 21:24:12 -0500 )edit

4 Answers

Sort by » oldest newest most voted

answered 2012-10-28 05:19:09 -0500

hhlp gravatar image

1) Update your fedora with the latest kernel, headers and compilers which is needed by the VBoxGuestAdditions installer.

yum -y update kernel
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++

then restart linux guest.

2) install Virtual Box Guest Additions again.

edit flag offensive delete link more

answered 2013-05-23 14:41:42 -0500

sergiomb gravatar image

Hi, I recommend to use rpmfusion solution and if have problem file a bug on rpmfusion bugzilla .

1st please remove all things generated by sh ./ ./ uninstall

2nd Configure rpmfusion in your system

3rd do a: yum install VirtualBox-guest kmod-VirtualBox

since you are using a stable release (F18) , rpmfusion provides kmod for all kernel , for devel releases you may use akmods to compile kernel modules .

edit flag offensive delete link more

answered 2013-02-04 10:44:21 -0500

I was having this same problem with Fedora 18. Then I upgraded to Virtual Box 4.2.6 and it works fine.

edit flag offensive delete link more

answered 2013-05-22 08:17:43 -0500

sabuse gravatar image

Still I have VB 4.1.8 and i´m not able to update en any version after that, do you have any idea?

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-10-27 20:03:48 -0500

Seen: 35,615 times

Last updated: Jun 09 '13