In this tutorial, we will show you how to install VirtualBox on Fedora 35. For those of you who didn’t know, VirtualBox is a free, open-source, and cross-platform software that lets you create, run, and manage virtual machines on your system. VirtualBox brings feature-rich, high-performance products for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL).
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘
sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the VirtualBox 6.1 open-source virtualization on a Fedora 35.
- A server running one of the following operating systems: Fedora 35.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
non-root sudo useror access to the
root user. We recommend acting as a
non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.
Install VirtualBox on Fedora 35
Step 1. Before proceeding, update your Fedora operating system to make sure all existing packages are up to date. Use this command to update the server packages:
sudo dnf upgrade sudo dnf update sudo dnf install kernel-devel-$(uname -r) kernel-headers
Step 2. Installing VirtualBox on Fedora 35.
By default, VirtualBox is not available on Fedora 35 base repository. Now run the following command to add the official package VirtualBox repository to your system:
cat << EOF > /etc/yum.repos.d/virtualbox.repo [virtualbox] name=Fedora $releasever - $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/34/x86_64/ enabled=1 gpgcheck=1 gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc EOF
Next, add Oracle public key:
rpm --import https://www.virtualbox.org/download/oracle_vbox.asc
After that, install VirtualBox using the
sudo dnf update sudo dnf install VirtualBox-6.1
During the VirtualBox package installation, the installer created a group called
vboxusers, all system users who are going to use USB devices from Oracle VM VirtualBox guests must be a member of that group. Now we add your user account to the
usermod -aG vboxusers godet
Step 3. Accessing VirtualBox on Fedora.
Once successfully installed, open with the path:
Activities -> Show Applications -> VirtualBox or use the following command from the terminal:
Congratulations! You have successfully installed VirtualBox. Thanks for using this tutorial for installing the VirtualBox 6.1 open-source virtualization on your Fedora 35 system. For additional help or useful information, we recommend you check the official VirtualBox website.