FedoraRHEL Based

How To Install VirtualBox on Fedora 39

Install VirtualBox on Fedora 39

In this tutorial, we will show you how to install VirtualBox on Fedora 39. VirtualBox, a powerful x86 and AMD64/Intel64 virtualization product serves as a cornerstone in the realm of modern computing. It allows users to run multiple operating systems simultaneously, fostering an environment of flexibility and efficiency.

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 on a Fedora 39.


Before diving into the installation process, let’s ensure that you have everything you need:

  • A server running one of the following operating systems: Fedora 39.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • You will need access to the terminal to execute commands. Fedora 39 provides the Terminal application for this purpose. It can be found in your Applications menu.
  • You should have a processor with a clock speed of 2GHz or higher, with at least two cores for optimal performance. Your system should also have a minimum of 2GB of RAM, although 4GB or more is recommended for a better virtual machine experience.
  • You’ll need an active internet connection to download VirtualBox and its dependencies.
  • A non-root sudo user or 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.
  • Always remember to back up your data before starting the installation process to prevent any potential data loss.

Install VirtualBox on Fedora 39

Step 1. Keeping your system up-to-date is a fundamental step in maintaining a secure and stable environment. To update your Fedora system, open the terminal and enter the following command:

sudo dnf clean all
sudo dnf update

Step 2. Installing Required Packages.

Certain packages are necessary for the successful installation and operation of VirtualBox. These include development tools and kernel modules. To install these, use the following command:

sudo dnf install @development-tools
sudo dnf install kernel-devel kernel-headers dkms qt5-qtx11extras  elfutils-libelf-devel zlib-devel

Step 3. Installing VirtualBox on Fedora 39.

Repositories are storage locations from where software packages are retrieved during installation. To add the VirtualBox repository to your Fedora system, use the following command:

sudo dnf config-manager --add-repo=https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

GPG keys are used to verify the authenticity of the software packages. Import the VirtualBox GPG key using the following command:

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo rpm --import -

With all the prerequisites in place, you can now install VirtualBox. Use the following command to do so:

sudo dnf install VirtualBox-7.0

For additional functionality like USB support, you need to also install the VirtualBox Extension Pack:

wget https://download.virtualbox.org/virtualbox/7.0.12/Oracle_VM_VirtualBox_Extension_Pack-7.0.12.vbox-extpack

Install it by running:

sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-7.0.12.vbox-extpack

VirtualBox and the extension pack are now ready to use.

Step 4. Configuration VirtualBox.

  • Add User to vboxusers Group

In Linux, user groups are used to manage user permissions. After installing VirtualBox, you need to add your user to the vboxusers group. Replace ‘username’ with your actual username in the following command:

sudo usermod -a -G vboxusers username
  • Configure VirtualBox Drivers

VirtualBox drivers play a crucial role in the virtualization process. To configure these drivers, use the following command:

sudo /sbin/vboxconfig
  • Enable and Start VirtualBox Service

In Linux, services are applications that run in the background. The vboxdrv service is essential for VirtualBox to function correctly. Enable and start this service using the following commands:

sudo systemctl enable vboxdrv
sudo systemctl start vboxdrv

Step 5. Troubleshooting.

Despite following the instructions, you may encounter issues during the installation. One common issue is conflicts between NVIDIA drivers and VirtualBox modules. To resolve this, disable the secure boot in your system’s BIOS settings

Congratulations! You have successfully installed VirtualBox. Thanks for using this tutorial for installing the VirtualBox on your Fedora 39 system. For additional Apache or useful information, we recommend you check the official VirtualBox website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button