If Not True Then False

VirtualBox Guest Additions on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - Comment Page: 2

This is guide, howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 26/25/24/23/22/21/20/19/18/17/16, CentOS 7.3/6.9/5.11, Red Hat (RHEL) 7.3/6.9/5.11. VirtualBox Guest Additions is special software that can be installed inside Linux virtual machines to improve performance and make integration much more seamless. Among the...


Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.


Hi, Telnet,

I’m using VB 4.1.8 and Fedora 16 as my guest system,

I was following below steps trying to install Guest Addition on my guest system, but failed as described below.

1. Configured the RPMfusion repos for my guest system:

yum --nogpgcheck install http://rpm.livna.org/livna-release.rpm http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

2. Successfully to “yum update kernel” successfully, until this command report “Nothing marked for update”.

3. Reboot guest system.

4. Tried to run “yum install gcc kernel-devel kernel-headers”, however, this step ended in “Nothing to update” too. But my guest system is empty at folder /usr/src/kernels.

5. Then I ignored the result in step 4 and proceeded with installing Guest Additions by invoking command: sh ./VBoxLinuxAdditions.run
Everything runs fine except it fails to build the main Guest Additions module

Building the main Guest Additions module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)

And here is the content in the vboxadd-install.log

/tmp/vbox.0/Makefile.include.header:94: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

So I think the main problem with my environment is why the /usr/src/kernels folder is empty. Is that right? To solve my problem, do you think I should re-install the guest OS?

reply Reply

Hi Winnie,

Could you post output of following commands:

rpm -qa gcc kernel\* |sort

ls -la /usr/src/kernels
reply Reply

I am running Fedora 16 64 bit. I have this output when I run /etc/init.d/vboxdrv setup:
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]

Now, folllowing some of the directions from the discussion with Victor, I did run
KERN_DIR=/usr/src/kernels/`uname -r`

export KERN_DIR

I wanted to link the directory, but discovered I have nothing in /usr/src/kernels, it is an empty directory.
Running # rpm -qa gcc kernel\* |sort ,

gave me this:


# ls -la /usr/src/kernels gave me:

total 8
drwxr-xr-x. 2 root root 4096 Jul 29 2011 .
drwxr-xr-x. 4 root root 4096 Feb 15 19:29 ..

I understand that I need to run a symbolic link, but the thing is that I don’t know where to point it to? Can you help me on this? Thanks.

reply Reply

Hi RW,

Are you installing VirtualBox guest additions on Fedora 16 64-bit guest or installing VirtualBox on Fedora 16 64-bit host?

reply Reply
Tim Ludwinski

I think I was having a similar problem and I solved it by upgrading from Virtual Box 4.1.1 to Virtual Box 4.2.6.

reply Reply

Hello JR,
Thank you a lot for this excellent tutorial!
Helped me installing VirtualBox Guest Additions on Fedora 14 – works fine now.
Great work!

reply Reply
Road Runner

Great stuff. Though i faced the error described above
Building the VirtualBox Guest Additions kernel modules
The make utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.

Building the main Guest Additions module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)

I installed make – yum install make

and then re ran ./VBoxLinuxAdditions.run
Worked like a charm!!!

my guest os is Centos 6.2 – 2.6.32-220.13.1.el6.i686

Thanks a heap JR – Not being able to use mouse was driving me crazy!

reply Reply

/usr/src/vboxguest-4.1.12/vboxguest/build_in_tmp: line 55: make: command not found

Anyone else getting this error on centos 6.2?


reply Reply
Road Runner

Hi Spence,

You probably dont the “make” utility

Try installing it – yum install make

and then try installing the guest additions

reply Reply

Indeed,the ‘make’ was the missing piece of puzzle.
Thank you man!


reply Reply

Thank you very much my friend!

Just had to install theses packages to make it work :

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-uek-headers-2.6.32-300.11.1.el5uek.x86_64

Great tuto!

reply Reply

thanks mate. it works for fedora with kernel 3.4.0-1.fc17.x86_64

reply Reply

I followed your method precisely, but get
Building the shared folder support module [ Failed ]

Virtualbox 4.1.4
Host : Windows 7 64-bit Home

ERROR : Kernel configuration is invalid

About to give up, and stick with Slackware and Ubuntu.

reply Reply
Omar Chavez

Install dkms, that help me with that, it was driving me crazy.
sudo yum install dkms

reply Reply

Excellent! This worked perfectly for me on Fedora Core 17. Thanks!

reply Reply