Using Virtual Box with Fedora 36

Siddharth Johri
2 min readJul 21, 2022

So I have always only used the most simple to use distros and all, so when I made a new setup I thought lets go with Fedora, which often needs more than point and click operations for installing software etc.

I wanted to setup a kali linux pentest box on virtual box and soon realized I would have to spend a little more time than usual to install it.

This might have an easier solution, but I thought using dnf for this would be better, so I scraped the whole rpm package signing etc thingy.

So, first we need some of these installed to support virtualbox, I don't know the specifics, but apparently they are required.

Next we head over to https://www.virtualbox.org/wiki/Linux_Downloads and download the oracle public key for rpm from https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

To make Fedora consider this a valid source to install rpm packages, we put this file up at /etc/yum.repos.d/virtualbox.repo

Now we have to import gpg keys for the source rpm — import https://www.virtualbox.org/download/oracle_vbox.asc

Post that, a simple sudo dnf update or sudo dnf upgrade and sudo dnf install VirtualBox-6.1 should get virtual box installed

You can probably also use the inbuilt “Boxes” on fedora for VMs, I don't have any experience with it, but I might try that in the future.

--

--