Ask Your Question

Fedora 20 VirtualBox Guest Additions Install

asked 2014-04-03 17:37:57 -0500

Tdub gravatar image

I would like to set up a Fedora guest machine in VirtualBox. So far I have gone through the OS install wizard from the file Fedora-Live-Desktop-x86_64-20-1.iso and run sudo yum update after the install process finished. Next, I tried to install the virtualbox guest additions by inserting the disk VBoxGuestAdditions.iso and running

This is the error I received.

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.13.7-200.fc20.x86_64

Building the main Guest Additions module                   [FAILED]

I am using VirtualBox version 4.3.8 r92456.

edit retag flag offensive close merge delete


Your answer was just here :)

NikTh gravatar imageNikTh ( 2014-04-04 18:02:54 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2014-04-03 17:42:57 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I was able to roughly follow the directions in the error message and install the package listed.

sudo yum install kernel-devel

Afterwards I tried installing the guest additions module, but received another error saying gcc is not installed.

sudo yum install gcc

This command installed gcc and the kernel headers package and allowed me to finally install the guest additions module.

sudo ./
edit flag offensive delete link more

answered 2014-04-04 03:07:57 -0500

Jann5s gravatar image

updated 2014-04-04 15:39:26 -0500

sergiomb gravatar image

For me, the best way to install the guest-additions is NOT to use the build in iso, INSTEAD install them from the repositories

use: yum install VirtualBox-guest

This saves you a whole lot of trouble, especially when you update your kernel, which would require a re-install of the guest-additions which are then automatically handled by yum.


VirtualBox-guest is from rpmfusion , also you may install kmod-VirtualBox

yum install VirtualBox-guest kmod-VirtualBox

kmod-VirtualBox is a meta-package which sole purpose is to require the VirtualBox kernel module(s) for the newest kernel. to make sure you get it together with a new kernel.

About CentOS and RHEL , rpmfusion currently don't have Kmods2 for those system , but everyone is welcome to help out on support kmods2 on CentOS/RHEL

edit flag offensive delete link more


That sounds like a simpler approach.
In the past I have followed instructions like the ones listed here (CentOS HowTo) and installed dkms. It seems to prevent VirtualBox guest additions from breaking after a kernel update.

Tdub gravatar imageTdub ( 2014-04-04 13:27:53 -0500 )edit

When I tried the yum install approach I got that the item was not found (both cases). Has the name in the repository changed or has it been removed?

gyannea gravatar imagegyannea ( 2014-07-31 06:25:32 -0500 )edit

For Fedora you add rpmfusion repos .

sergiomb gravatar imagesergiomb ( 2014-07-31 17:49:24 -0500 )edit

answered 2015-02-28 06:50:14 -0500

Ahmad gravatar image

The shortest way to solve this issue ( when fedora 20 is the guest OS ) is to install the whole required packages at once

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

then reboot your machine.

after that, you can make sure that the guest addition is installed by

lsmod | grep -i vbox

you should receive:

vboxsf                 43786  1 
vboxvideo              12669  1 
drm                   301585  3 vboxvideo
vboxguest             240857  6 vboxsf
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-04-03 17:37:57 -0500

Seen: 33,722 times

Last updated: Feb 28 '15