Getting Dependency Issues Installing VirtualBox on Bazzite GNOME

Hello everyone,

I’m experiencing some dependency issues while trying to install VirtualBox on my Bazzite GNOME system. Here’s what I did and the error message I received:

Command Executed:

sudo rpm-ostree install VirtualBox

Error Output:
Checking out tree 421cea1… done
Enabled rpm-md repositories: …
[… truncated for brevity …]
Resolving dependencies… done
error: Could not depsolve transaction; 1 problem detected:
Problem: conflicting requests

  • package VirtualBox-7.1.2-1.fc40.x86_64 from rpmfusion-free-updates-testing requires VirtualBox-server = 7.1.2, but none of the providers can be installed
  • package VirtualBox-7.1.0-2.fc40.x86_64 from rpmfusion-free-updates requires VirtualBox-server = 7.1.0, but none of the providers can be installed
  • package VirtualBox-7.0.16-1.fc40.x86_64 from rpmfusion-free requires VirtualBox-server = 7.0.16, but none of the providers can be installed
  • package VirtualBox-server-7.1.2-1.fc40.x86_64 from rpmfusion-free-updates-testing requires VirtualBox-kmod = 7.1.2, but none of the providers can be installed
  • package VirtualBox-server-7.1.0-2.fc40.x86_64 from rpmfusion-free-updates requires VirtualBox-kmod = 7.1.0, but none of the providers can be installed
  • package VirtualBox-server-7.0.16-1.fc40.x86_64 from rpmfusion-free requires VirtualBox-kmod = 7.0.16, but none of the providers can be installed
  • package kmod-VirtualBox-7.1.2-1.fc40.x86_64 from rpmfusion-free-updates-testing requires akmod-VirtualBox = 7.1.2-1.fc40, but none of the providers can be installed
  • package kmod-VirtualBox-7.1.0-1.fc40.x86_64 from rpmfusion-free-updates requires akmod-VirtualBox = 7.1.0-1.fc40, but none of the providers can be installed
  • package kmod-VirtualBox-7.0.16-1.fc40.x86_64 from rpmfusion-free requires akmod-VirtualBox = 7.0.16-1.fc40, but none of the providers can be installed
  • package akmod-VirtualBox-7.1.2-1.fc40.x86_64 from rpmfusion-free-updates-testing requires akmods, but none of the providers can be installed
  • package akmod-VirtualBox-7.1.0-1.fc40.x86_64 from rpmfusion-free-updates requires akmods, but none of the providers can be installed
  • package akmod-VirtualBox-7.0.16-1.fc40.x86_64 from rpmfusion-free requires akmods, but none of the providers can be installed
  • package akmods-0.5.8-8.fc40.noarch from fedora requires (kernel-devel-matched if kernel-core), but none of the providers can be installed
  • package kernel-devel-matched-6.10.11-200.fc40.x86_64 from updates requires kernel-core = 6.10.11-200.fc40, but none of the providers can be installed

  • [Full error message continues with similar dependency issues]

System Information:
$ rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-gnome:stable
Digest: sha256:b72a876be97a559b1783cac2a708d0d488f50ca2bcbda37e0653dcc31ddb927b
Version: 40.20240922.0 (2024-09-23T05:00:35Z)
LayeredPackages: feh gnome-terminal gparted mediawriter nemo runc sunshine zsh

ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-gnome:stable
Digest: sha256:b72a876be97a559b1783cac2a708d0d488f50ca2bcbda37e0653dcc31ddb927b
Version: 40.20240922.0 (2024-09-23T05:00:35Z)
LayeredPackages: feh gnome-terminal gparted mediawriter nemo sunshine zsh

Additional Details:

  • I’m using Bazzite GNOME based on Fedora 40.
  • The kernel version is a custom one provided by Bazzite (kernel-core-6.9.12-205.fsync.fc40.x86_64).
  • I suspect the issue might be related to the custom kernel and missing kernel-devel packages that match this kernel version.

Attempts to Resolve:

  • I tried updating the system using rpm-ostree upgrade, but the issue persists.
  • I considered switching to the standard Fedora kernel, but I’m concerned about losing the performance optimizations provided by Bazzite.

Questions:

  • Is there a recommended way to install VirtualBox on Bazzite GNOME with the custom kernel?
  • Are there compatible kernel-devel packages available for the custom kernel?
  • Should I consider using an alternative virtualization tool that’s more compatible with Bazzite?

Any guidance or suggestions would be greatly appreciated!

Thank you for your help.

Have you tried doing this in a container?

It does not work in a container. The first thing I tried was installing it in a container. However this added an extra layer of complexity as well as more restricted access.

Yeah I tried it in a Arch container and getting this error.

The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.9.12-205.fsync.fc40.x86_64) or it failed to
         load. Please recompile the kernel module

Did a search and yeah it’s not possible to run in a container, due to nesting and such.

Found a discussion on silverblue which should apply here also.

https://discussion.fedoraproject.org/t/install-virtualbox-on-silverblue-36/43890

Unfortunately I have a virtual box VM that I need to spin up that already has a project on it. So I can’t just make a new VM using the gnome solution. I can always use a second box with Windows on it. I was posting this so it would be a known issue. :slightly_smiling_face:

2 Likes