If Not True Then False

VirtualBox Guest Additions on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.11 - Comment Page: 9

This is guide, howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 25/24/23/22/21/20/19/18/17/16, CentOS 7.3/6.8/5.11, Red Hat (RHEL) 7.3/6.8/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 features...
Categories:

236 Comments

Leave a Comment

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

Input your comment.
help

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.

paul costa

Fedora 24
Worked for me after several tries.

Installed these packages first
1) dnf install gcc kernel-devel kernel-headers dkms make bzip2 perl

update all packages
2) dnf upgrade –refresh
3) reboot

update the kernel
4) dnf update kernel*

5) mount the guestAdddition.iso as per above
6) make the KERN_DIR environment variables as per above
7) run the installer as per above

reply Reply
paul costa

Update to 1) make sure to add the actual kernel version
dnf install gcc kernel-devel-4.6xxx kernel-headers-4.6.xxx

I think that’s what made the biggest difference

reply Reply
JR

Hello paul,

First update your kernel on step 2.

Then it should install right kernel-devel and kernel-headers, (currently 4.7.7), VBox Guest Additions 5.1.6 have some bug, but 5.1.4 should work normally.

reply Reply
Ananthakrishnan

Thanks for the help. I have installed GuestAdditions in Fedora 20 after trying for over 6 Hours.. All commands worked well but the last command did not work. I added ‘sudo ./VBoxLinuxAdditions.run’ and it worked fine and I have full screen and mouse pointer integration now

reply Reply
Tom

Paul Costa’s fix worked perfectly for my Mac host fedora 24 guest on kernel 4.6.4 two weeks ago, but when I tried the same thing on my Linux mint host, fedora 24 guest kernel 4.6.6 today nothing seems to work at all. I still need to see if the problem is the difference in the host or a difference in the Kernel…I would really like to get it working on my mint machine to better try out fedora 24.

reply Reply
Mark Cheshire

Paul Costa put me on the right track. I did not see his follow up comment the first time around. It would be good to consider upgrading the main post for Fedora 24 because what is described clearly does not work.

I am shocked how difficult this was compared to Linux Mint. Finally this is the exact sequence that got it to work for me:

1) dnf install gcc dkms make bzip2 perl
2) uname -r
> 4.5.5-300.fc24.x86_64
3) sudo dnf install kernel-devel-4.5.5-300.fc24.x86_64 kernel-headers-4.5.5-300.fc24.x86_64
4) reboot
5) Install guest tools

reply Reply
JR

Hello Mark and Benjamin,

I can run VBoxGuestAdditions version 5.1.4, with 4.7.7 kernel without problems, but 5.1.6 version with 4.7.7 kernel fail. So maybe it’s better install latest kernel and downgrade your VBox Guest Additions to 5.1.4. I guess that next release will fix this.

reply Reply
Jason Freeman

I downloaded FC 24 today.

uname -r -> 4.5.5-300.fc34.x86_64
/usr/src/kernels -> 4.7.7-200.fc24.x86_64

The 4.5.5 headers can’t be found. If you really want people to use Fedora, don’t make it so damn hard to run in Virtualbox. While I’m a rationale person, this is how FUD like “Fedora sucks!!” starts. The distro should “just work” under Virtualbox. Admittedly it does without the guest additions, but I don’t want to work through a port-hole.

reply Reply
Ilko Dossev

I have Fedora 4.7.9-200.fc24.i686+PAE and 4.7.9-200.fc24.i686 only.
Following the steps above fails when I start PAE kernel, but succeeds when plain non-PAE kernel is started. Likewise, non-PAE kernel runs with so-installed guest additions, while PAE kernel does not.
I can only speculate that KERN_DIR can only refer to the existing path:
/usr/src/kernels/4.7.9-200.fc24.i686
Is there any possible workaround for PAE?

reply Reply
gayey

My fedora 25 does not boot after running the VBoxLinuxAdditions.run.

reply Reply
Bob

THANK YOU !!! Just what the doctor ordered. It worked like a charm. (and any other cliches that mean “It worked!”)

reply Reply