How to use a VM (Virtualbox on F39)

I am on fedora 39. I need to install virtual box and run a VM to complete a course. There is no procedure mentioned to do so on the internet. I want to run the VM on the same OS(fedora). Is it possible for me to do so?

Instead of running VirtualBox, I recommend using KVM/QEMU, which is native to GNU Linux. There is two backends for that:

  • Virtual Machine Manager (sudo dnf install virt-manager)
  • Gnome Boxes (it’s preinstalled in Fedora Workstation)

If you really want virtualbox, install it from rpmfusion repository, see https://rpmfusion.org/Howto/VirtualBox:

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install VirtualBox
sudo akmods
sudo systemctl restart vboxdrv

Yes, any guest os is possible.

Welcome to Fedora @adilinux

I also recomend KVM/QEMU … less troubles on Linux.

Here an other manual how to install Virtualbox. Not recommend … se bellow augenauf’s comment.

If you want to go deeper with virtualization have a look here:

I did install VirtualBox from Oracle’s repo for more than a decade but I do not recommend doing so. There is a bunch of disadvantages, the main ones being the use of dkms (I prefer akmods) and the huge delay of Oracle updating the repo after a new Fedora version is released.

2 Likes

For me installing virtualbox from rpmfusion has worked well and no issues with updates or anything else. With the rpmfusion repo enabled the command dnf install VirtualBox was all that was necessary.

I do, however, recommend using QEMU /KVM instead.

2 Likes