VirtualBox 7 on Fedora 38: A Complete Installation Guide

VirtualBox 7 on Fedora 38: A Complete Installation Guide

VirtualBox 7 + Fedora 38: The perfect combination for virtualization enthusiasts. Our installation guide has all the details.

VirtualBox 7 is a popular virtualization software that allows users to run multiple operating systems on a single physical host. With its latest release, VirtualBox 7, users can now take advantage of even more features and enhancements.

This guide will show you how to install VirtualBox 7 on Fedora 38, a Red Hat-supported Linux distribution known for its stability, user-friendliness, and great support.

So, whether you are a developer, a system administrator, or an enthusiastic tech user, this guide will equip you with the knowledge and skills to set up VirtualBox 7 on Fedora 38 and unleash the full potential of virtualization.

Step 1: Install VirtualBox Dependencies

First, you need to install some dependencies. These are specific software packages that are required for VirtualBox to run properly.

Using the DNF package manager, we will install the “development-tools” meta package and several kernel-related packages required for VirtualBox to function.

Open the terminal and run the following two commands:

sudo dnf install @development-tools
sudo dnf install kernel-headers kernel-devel dkms

Step 2: Add VirtualBox Repository to Fedora

Next, we will add the official VirtualBox repository to our Fedora 38 system. This implies that the update package will be made available with the rest of your system’s regular updates if a new version is released.

Using your preferred terminal text editor, create the “/etc/yum.repos.d/virtualbox.repo” file:

sudo nano /etc/yum.repos.d/virtualbox.repo

Then, put the content provided below in it, and finally, save and exit the file.

name=Fedora $releasever - $basearch - VirtualBox
Add VirtualBox repository to Fedora 38.
Add VirtualBox repository to Fedora 38.

Step 3: Install VirtualBox on Fedora 38

Finally, everything is already prepared for the actual installation. Now, to install VirtualBox on our Fedora 38 system, run the following commands:

sudo dnf install VirtualBox-7.0

You will be asked if the VirtualBox signing key should be imported. Reply with “y” and press “Enter” to confirm.

Import VirtualBox repo's signing key.
Import VirtualBox repo’s signing key.

The packages will be downloaded, and you will be prompted to import the key again. Type “y” again and press “Enter.”

Install VirtualBox on Fedora 38.
Install VirtualBox on Fedora 38.

Wait for the installation to complete. The VirtualBox is now installed and ready to be used on your Fedora 38 system.

Step 4: Install VirtualBox Extension Pack

This is an optional step, but I strongly encourage it because it will make working with VirtualBox on your Fedora system easier and more convenient. VirtualBox Extension Pack unlocks many great features, such as:

  • USB 2 and USB 3 support
  • VirtualBox Remote Desktop Protocol (VRDP)
  • Host webcam passthrough
  • Disk image encryption with AES algorithm
  • Intel PXE boot ROM

Let’s highlight one peculiarity here. The VirtualBox Extension Pack’s version must match the version of VirtualBox installed on your Fedora 38 system.

So, to verify the exact version of the installed locally VirtualBox, you can use vboxmanage, a build-in VirtualBox’s command:

vboxmanage -v | cut -dr -f1
Check the installed VirtualBox version.
Check the installed VirtualBox version.

As you can see, the version of Virtualbox installed is “7.0.8.” Therefore, you must then download the Extension Pack with the same version.

So, use the below wget command to download the Extension Pack for VirtualBox.

If your installation is different, replace both places containing “7.0.8” in the command below with the current version. In addition, you can also go straight to the downloads page and look at the available versions.


Next, to install the VirtualBox Extension pack, run the vboxmanage command as follows:

sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-7.0.8.vbox-extpack

You will be prompted to agree the Oracle’s license terms and conditions. So, type “y” to confirm and press “Enter.”

Install VirtualBox Extension Pack.
Install VirtualBox Extension Pack.

Additionally, you can verify installed VirtualBox’s extension pack version by running the following:

vboxmanage list extpacks
Verify the installed VirtualBox Extension Pack version.
Verify the installed VirtualBox Extension Pack version.

Step 5: Add User to vboxusers Group

Before using VirtualBox, add your user account to the vboxusers group. This is quick and simple to accomplish by running:

sudo usermod -a -G vboxusers $USER

Now perform a reboot. After login, check that you are in the vboxusers group with this command:

groups $USER
Check the user's groups.
Check the user’s groups.

Step 6: Running VirtualBox on Fedora 38

You can start using VirtualBox by launching it from the desktop environment’s application menu. Type “virtualbox” and click on the icon when it appears.

Running VirtualBox on Fedora 38.
Running VirtualBox on Fedora 38.
VirtualBox 7 is running on Fedora 38.
VirtualBox 7 is running on Fedora 38.

To start creating a new virtual machine, use the “New” button.

How to Uninstall VirtualBox

If you uninstall VirtualBox from your Fedora system for any reason, you can do it easily by running the command below.

sudo dnf remove VirtualBox-7.0
Uninstall VirtualBox.
Uninstall VirtualBox.

Then you have two choices: disable the VirtualBox repository on your Fedora system:

sudo dnf config-manager --set-disabled virtualbox

Or completely remove it by deleting the file you created when you added it.

sudo rm /etc/yum.repos.d/virtualbox.repo


Installing VirtualBox 7 on Fedora 38 can give users a powerful and versatile virtualization solution for running multiple operating systems on a single machine.

With Fedora 38 as the host operating system, users can take advantage of its stability, security, and open-source nature, making it a reliable platform for virtualization.

The installation process outlined in this guide provides a comprehensive and detailed approach to setting up VirtualBox 7 on Fedora 38, ensuring that users can follow along and successfully install the software.

Thanks for using this tutorial! Any feedback is welcomed in the section below.

Bobby Borisov
Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?


  1. I would like up to date and detailed instruction on how to install VirtualBox in Fedora 38 on an EFI system. All the instruction I have tried did not prove out. Kubuntu as well as other Debian based distributions build the Mok built into the installation process. I hope Fedora will follow suit or if I can find instruction that actually works. Can you assist? Thanks.

  2. I get these errors:
    file /usr/bin/VBox from install of VirtualBox-7.0-7.0.8_156879_fedora36-1.x86_64 conflicts with file from package VirtualBox-server-7.0.8-1.fc38.x86_64
    file /usr/bin/vbox-img from install of VirtualBox-7.0-7.0.8_156879_fedora36-1.x86_64 conflicts with file from package VirtualBox-server-7.0.8-1.fc38.x86_64
    file /usr/bin/vboximg-mount from install of VirtualBox-7.0-7.0.8_156879_fedora36-1.x86_64 conflicts with file from package VirtualBox-server-7.0.8-1.fc38.x86_64

    • Hi Peter,

      It looks like there are already VirtualBox-related packages installed on your system. Did you try to install it from other sources? Anyway.

      My advice is to run “sudo rpm -aq | grep VirtualBox” and then use “sudo yum remove package_name” to remove all VirtualBox-related packages from your system.

      Once you’ve done that, follow the steps in this guide again, and everything should be fine.


  3. I have unsuccessfully tried to install and use Virtual Box several times. This guide, accompanied by the helpful tips provided by VBoxManage helped me to get the job done very easily. This is a tip for those who follow: If your PC has Secure Boot enabled read this. Automatic driver signing failed for me. Fortunately the installer gave me instructions to manually sign the drivers using MOK enrollment. I followed them, step by step up to the point where I was directed to reboot. Before rebooting, I copied the remaining instructions to a text document so I would have them after the reboot. When I rebooted, I was greeted with the MOK enrollment dialog. I chose to enroll the key, then rebooted back into Fedora 38. I then ran ‘/sbin/vboxconfig’ to restart the setup process. This time it completed successfully. My last steps were to download and install the extension pack, then install Windows 11 in VBox. It’s working great! I wanted to install Windows 11 in a VM hosted by Fedora so I could potentially remove it from by bare-metal PC and run it in a VM ( there are a few games I’m nearly addicted to that are only available for Windows), but I.m becoming increasingly fed up with the direction Microsoft is taking. If I,m running Fedora as my daily production environment, with VBox installed and working correctly, I can still have my favorite games!

    I hope this helps others,


  4. I found a missing dependency
    WARNING: The vboxdrv kernel module is not loaded. Either there is no module
    available for the current kernel (6.2.9-300.fc38.x86_64) or it failed to
    load. Please recompile the kernel module and install it by

    It appears this is the correct dependency:
    [cpvmuser@fedora ~]$ sudo dnf install kernel-devel-6.2.9-300.fc38.x86_64

    $ sudo /sbin/vboxconfig Stopping VirtualBox services. Starting VirtualBox services. Building VirtualBox kernel modules.

  5. Hi,
    It is worth noting that the current VirtualBox version (7.0.8) does not support correctly the 6.3.x kernels that are the latest in Fedora 38.
    In many cases, booting on 6.2.x is the only solution.

    … avoid updating Fedora if it removes that 6.2.x kernel, at least until VB has a better support (in 7.0.8 changelog it says « initial kernel 6.3 support »).

  6. There is a fix to the problem of virtualbox not starting on kernel 6.3.x. Just execute the following command as root and then reboot:

    grubby –args=”ibt=off” –update-kernel $(grubby –default-kernel)

Leave a Reply

Your email address will not be published. Required fields are marked *