VirtualBox 6.1.28 / 6.1.29 on Fedora 35/34/33, CentOS/RHEL 8/7 - Comment Page: 25
Oracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.
Check video guide howto install VirtualBox 6.1.28/6.1.29 on Fedora 35/34/33 using .run installer:
Check video guide howto install VirtualBox 6.1.28 on Fedora 34/33 using Oracle's own dnf repo:
Watch More Videos and Subscribe to if-not-true-then-false.com Youtube Channel
VirtualBox supports a large number of guest operating...
Hi, running this command works for me:
yum install gcc
Thanks.
Hi Arnel,
Check step 4. gcc is installed as dependency on there.
Any reason step 5 omits Fedora 31?
Hi Thinux,
No, sorry, it’s typo. Updated the guide.
You sir, are a gentlemen and a scholar (assuming you’re male that is). I’ve been banging my head on the desk for a day now trying to get the silly kernel modules to install on Fedora 31 on kernel 5.4.8-200. Unfortunately, the most recent headers released were for 5.4.7-200, and my system just didn’t want to use them.
I had installed just by downloading the .rpm and doinf a ‘dnf localinstall rpm.file’. It all installed great, but just wouldn’t start new machines w/o those modules compiled and installed.
Following your guide worked like a champ! It even found and upgraded my current VirtualBox install, and the modules compiled flawlessly.
I buy you many virtual beers sir!
how to install virtualbox on Fedora rawhide? thanks
I have found that with CentOS 8 (streaming) the proper KERN_DIR is given by the same command as Fedora.
The -`uname -m` at the end is not needed.
Hi Jack,
You are totally right. I updated this guide, thanks.
excellent setup notes. thanks a ton to you. may god bless you for your kindness towards novices like me.
Signing vbox kernel modules should be described here.
This is 2020 after all.
So far I have to go without signing because I have no clue.
Thank you! This was very helpful for setting up virtualbox with centos 8.
Please when I get to step :
## CentOS/RHEL 8 ##
dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
I get The following error
See all steps that I follows on Centos 8
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]# wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
–2020-05-15 22:14:12– http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Resolving download.virtualbox.org (download.virtualbox.org)… 23.210.36.138
Connecting to download.virtualbox.org (download.virtualbox.org)|23.210.36.138|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 259 [text/plain]
Saving to: ‘virtualbox.repo.3’
virtualbox.repo.3 100%[=======================================================================>] 259 –.-KB/s in 0s
2020-05-15 22:14:12 (27.6 MB/s) – ‘virtualbox.repo.3’ saved [259/259]
[[email protected] yum.repos.d]# yum update
created by dnf config-manager from https://download.virtualbox.org/virtualbox/6.0.12/VirtualBox-6.0-6.0.12_133076_el8 3.5 kB/s | 6.9 kB 00:01
Failed to download metadata for repo ‘download.virtualbox.org_virtualbox_6.0.12_VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm’
Error: Failed to download metadata for repo ‘download.virtualbox.org_virtualbox_6.0.12_VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm’
[[email protected] yum.repos.d]# rpm -qa kernel |sort -V |tail -n 1
kernel-4.18.0-147.el8.x86_64
[[email protected] yum.repos.d]# uname -r
4.18.0-147.8.1.el8_1.x86_64
[[email protected] yum.repos.d]# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
created by dnf config-manager from https://download.virtualbox.org/virtualbox/6.0.12/VirtualBox-6.0-6.0.12_133076_el8 2.5 kB/s | 6.9 kB 00:02
Failed to download metadata for repo ‘download.virtualbox.org_virtualbox_6.0.12_VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm’
Error: Failed to download metadata for repo ‘download.virtualbox.org_virtualbox_6.0.12_VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm’
[[email protected] yum.repos.d]# dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
created by dnf config-manager from https://download.virtualbox.org/virtualbox/6.0.12/VirtualBox-6.0-6.0.12_133076_el8 4.0 kB/s | 6.9 kB 00:01
Failed to download metadata for repo ‘download.virtualbox.org_virtualbox_6.0.12_VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm’
Error: Failed to download metadata for repo ‘download.virtualbox.org_virtualbox_6.0.12_VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm’
Very useful article!!!
I have sold all the problems with VBox guest additions on centos 8.
Many thanks to the author!
It works !! I was getting upset because I couldn’t solve a VirtualBox error, but I follow your step and it works!
[[email protected] yum.repos.d]# /usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
Sorry. The above after following the instructions here. Fedora 32 Workstation.
kernel 5.8.4-200.fc32.x86_64
I just want to say that I was at the end of my wits with this issue until I terminated these commands exactly into CentOS 8 and now my VMs boot up, so thank you very much
Could you please advise on how to install VirtualBox in Fedora 33?
Hi Brian,
Until Oracle publish their official Fedora 33 repo you can use Fedora 32 builds, install latest version with following command:
Then follow this guide normally.
Sending you a big thank you from Austria. This article is so damn helpful.