Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install Fedora on VirtualBox

Run Fedora Workstation in a virtual machine on Windows, macOS or Linux.

How-To Guides3 min read21 steps24 screenshots
Fedora on VirtualBox

Requirements

  • An internet connection for the downloads.
  • At least 4 GB of RAM (8 GB or more is better).
  • At least 20 GB of free disk space.
  • A 64-bit processor with virtualization support (turned on in the BIOS/UEFI).
  • VirtualBox on the host.

Step 1: Download and install VirtualBox

Windows

  1. Go to virtualbox.org, click Downloads and choose Windows hosts.
  2. Run the installer as administrator and keep the defaults.
  3. Restart when asked.

macOS

  1. Download the macOS package (.dmg) from the VirtualBox site.
  2. Open it and run the VirtualBox.pkg installer.
  3. Allow it in System Settings, Privacy & Security, if macOS blocks it.

Linux

Ubuntu and Debian:

sudo apt install virtualbox

Fedora: use the RPM Fusion repository or the package from virtualbox.org.

Arch Linux:

sudo pacman -S virtualbox

Step 2: Download the Fedora ISO

  1. Open the Fedora website.
  2. Choose Workstation for the desktop version.
  3. Click the download button for the standard ISO.
  4. Pick the architecture (x86_64 for most PCs).
  5. Wait for the download (about 2 GB).
    Downloading Fedora

Step 3: Create the virtual machine

Click New in VirtualBox.

Creating a new virtual machine

Enter a name, such as Fedora. Choose the Fedora ISO, and set Type to Linux and Version to Fedora (64-bit).

Naming the virtual machine

Memory. At least 2 GB (2048 MB). 4 GB or more is better. Do not give more than half of your host RAM.

Allocating memory

Virtual disk. Choose Create a virtual hard disk now, the type VDI, and a size of at least 20 GB (30 GB is better).

Creating the virtual disk

Step 4: Adjust the VM settings

Select the VM and click Settings.

System. Check that Optical comes before Hard Disk in the boot order. On the Processor tab, give 2 or more CPU cores.

System settings
Updating the settings

Display. Give 128 MB of video memory and turn on 3D acceleration if it is offered.

Display settings

Storage. Check that the Fedora ISO is in the optical drive.

Storage configuration

Network. The default NAT works for internet access. Use a bridged adapter if you need to reach the VM from the network.

Network settings

Step 5: Install Fedora

  1. Click Start to run the VM. Choose Start Fedora-Workstation-Live.
    Starting the VM
  2. Click Install to Hard Drive. Choose your language and keyboard.
    Choosing the language
    Starting the installation
  3. Choose the installation destination (the virtual disk) and keep the automatic partitioning.
    The installation destination
  4. Create a user account and click Install.
    Reviewing and installing
    The installation begins
  5. When it ends, click Finish Installation, then shut down the VM, remove the ISO from the optical drive and start the VM again.
    Fedora is installed

Step 6: After the first boot

  1. Log in and follow the welcome steps.
    The first boot
  2. Update the packages:
sudo dnf update -y
Updating the package list
  1. Install the Guest Additions for a better screen size, shared clipboard and shared folders. In the VM menu choose Devices, then Insert Guest Additions CD image, and run the installer. You may first need:
sudo dnf install gcc kernel-devel kernel-headers make bzip2 perl elfutils-libelf-devel
Inserting the Guest Additions CD image
Confirming the Fedora release
  1. Under Devices, set Shared Clipboard to Bidirectional.
    Enabling the shared clipboard
  2. In the VM Settings, Shared Folders, add a folder from the host and tick Auto-mount.
    Configuring a shared folder

Quick recap

  • Install VirtualBox, download the Fedora Workstation ISO.
  • Make a VM with 4 GB RAM, 20 GB disk and 2 CPUs.
  • Install Fedora, then add the Guest Additions.