VirtualBox Guest Additions on Fedora 34/33, CentOS/RHEL 8/7/6/5 - 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 34/33/32/31/30, CentOS 8.2/7.8/6.10/5.11, Red Hat (RHEL) 8.2/7.8/6.10/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 provided by these VirtualBox Guest Additions are mouse pointer integration and arbitrary screen solutions (e.g. by resizing the guest window).
Check video version of guide:
Watch More Videos and Subscribe to if-not-true-then-false.com Youtube Channel
Note: Fedora 34/33/32/31/30...
Worked perfectly on CentOS 7.2, with one addendum:
In step 5, check http://dl.fedoraproject.org/pub/epel/7/x86_64/e/ for the latest version of epel (7-7 as of the comment date).
It successfully works on fedora 24. Appreciate your good sharing!
Worked for me too on Fedora24! Can’t believe all these steps have to be performed for something so basic in 2016.
Thanks….instructions worked fine…..thanks for sharing…
Using virtual box 4.3.20 building main Guest Additions module failed for Fedora 24 guest. Installation of latest version Guest Additions (5.1.0) passed but automatic adjustment of video resolution still not working. Any ideas? Unfortunately I’m not allowed to update virtual box.
Same here did not try –refresh and old kernel still works
I get warnings and errors after following all the steps:
Building the main Guest Additions module [FAILED]
(In /var/log/vboxadd-install.log:)
Error! Bad return status for module build on kernel: 4.6.4-301.fc24.x86_64 (x86_64)
Warning: unknown version of the X Window System installed. Not installing X Window System drivers.
I had just done a dnf update and restarted the virtual machine after a previous failed attempt to install the guest additions using someone else’s walk through. If someone would be nice enough to help me I’ll provide more relevant info, I don’t know what’s important to post and what’s not at this point.
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
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
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.
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
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.
Thanks for the info. Works smoothly on CentOS 7.
Thanks. Works with Fedora 25 Alpha, too.
I’m on Fedora 24 and everything appears to work for me but then when I reboot I get this screen:
http://pasteboard.co/awG0SKfcn.png
after a while, if I hit alt+tab I get:
http://pasteboard.co/awKwNnS7q.png
which eventually gets to:
http://pasteboard.co/awMcwtYso.png
and it’s hung
Any ideas?
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
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.
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.
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?
Install kernel-PAE-devel.
It works! Thanks!
Thanks, nice tips.