VirtualBox Guest Additions on Fedora 34/33, CentOS/RHEL 8/7/6/5 - Comment Page: 10
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...
CentOS 7: Had to update the epel link (Old one 404’d).
http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
Thanks J P,
I updated all posts.
My fedora 25 does not boot after running the VBoxLinuxAdditions.run.
On Fedora 25, I needed
dnf install kernel-devel-$(uname -r)
THANK YOU !!! Just what the doctor ordered. It worked like a charm. (and any other cliches that mean “It worked!”)
Muchos Gracias my dear friend. Saved my ass.
Thank you very much! It worked perfectly well for Fedora 25 64 bits!
Very helpful. Thank you!
great work! tnx
Worked perfectly. Cheers!
Thank you so much for this so simple tuto !
Harrasment erased :)
A few quick updates – Contrary to the item in the content regarding downgrading the kernel for Centos 6 and 7, you can now acquire the bleeding edge virtualbox guest additions, packaged separately from the virtualbox application package. As of this writing, the latest is here: https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_5.2.1-118868.iso published on October 30 2017.
It’s also worth pointing out that while not many people have need of the i386 architecture release of Centos 7, there is currently and there are no plans for an EPEL 7 repository for i386, which makes it very tedious to build the virtualbox additions, as you’ll need to install and in some cases build each dependency independently. For those interested in going this route, the epel package builds exist absent the repository metadata, here https://buildlogs.centos.org/c7-epel/ as discussed here https://lists.fedoraproject.org/archives/list/[email protected]/thread/OJVTY5MWCZXPLKACU6MPRRRHJCUN5JE4/
I’m having the kernel not being installed, I’ve looked on how to fix this issue but none to my avail. I’m running Fedora 27 (up-to-date) 64bit, looking for a way to fix this problem thanks. This is what I’ve done so far, please correct me if i’m wrong.
[[email protected] ~]# ‘/sbin/vboxconfig’
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
[[email protected] ~]# /var/log/vbox-install.log
bash: /var/log/vbox-install.log: Permission denied
Hi Joe,
What you try to do? Are you installing VirtualBox Guest Additions or VirtualBox? If you follow this guide to install VirtualBox Guest Additions on Fedora 27, then I’m not sure why you try to run
/sbin/vboxconfig
? And if you want to see/read your vbox-install.log, then you have to use example less, likeless /var/log/vbox-install.log
[[email protected]]# ‘/sbin/vboxconfig’
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use ‘dmesg’ to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
I’ve been trying to “install” the guest additions to start Virtual Box but a message appears that the kernel driver isn’t installed although the file exists. Any help would be appreciated.
Hi Joe,
If you really are installing guest additions, please follow this guide and run
./VBoxLinuxAdditions.run
and post output here?Just did this on Fedora 27 this morning. Needed to set:
KERN_DIR=/usr/src/kernels/`uname -r`/build
(Note the addition of /build at the end) in order for it to work.
Thanks for the help, wouldn’t have been able to figure it out without you.
You should really fix the article, this does not work without specifying the build directory on Fedora27.
Thanks Eamonn and Goce,
Fixed and added build directory to end of KERN_DIR, needed at least on VirtualBox 5.2.8+ Guest Additions.
How do I get the VBox guest additions kernel modules to load automatically? I thought ‘modprobe vboxguest’ and ‘modprobe vboxsf’ would do it but it didn’t.
Um… I was trying to do this on a host with VBox 5.1.30. I graded that to 5.2.4 and now the kernel modules do load automatically. You just have to have the right virgin.