Introduction – Oracle VirtualBox is an open source and free hypervisor/virtual machine monitor for x86 based computers. VirtualBox 6 supports Linux, Windows, *BSD and other types of guest VMs. This page shows how to install Oracle VirtualBox 6 on Fedora Linux 29.
Procedure to install VirtualBox on Fedora Linux 29
- Install virtualbox.repo on Fedora Linux 29 using wget command
- Import VirtualBox 6 public key in Fedora Linux 29, run: sudo dnf update
- Search for VirtualBox 6 packages on Fedora, run: sudo dnf search virtualbox
- To install Oracle VirtualBox 6 on Fedora, run: sudo dnf install virtualbox
- Upgrade Oracle VirtualBox 6 in Fedora Linux, run: sudo dnf upgrade virtualbox
Let us see all examples and usage in details.
Download VirtualBox for Fedora Linux
Create a new RPM repo, run the following cd command:
$ cd /etc/yum.repos.d
Use the wget command to download virtualbox.repo file:
$ sudo wget https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
Refresh and import public key
Run the following dnf command:
$ sudo dnf update
Search for virtualbox package
Now we can search for Oracle VM VirtualBox
$ yum search virtualbox
Fedora Linux install VirtualBox 6
Oracle VirtualBox 6 will build Linux kernel modules on Fedora Linux 29. So, make sure the following packages installed on your system:
$ sudo dnf install @development-tools
$ sudo dnf install kernel-devel kernel-headers dkms elfutils-libelf-devel qt5-qtx11extras
Now you are ready to install VirtualBox 6, run the following dnf command:
$ sudo dnf install VirtualBox-6.0
Add VirtualBox user to vboxusers group
The installer gave you hint:
Creating group ‘vboxusers’. VM users must be member of that group!
Hence, you must add Linux user to the vboxusers group, run:
$ sudo usermod -a -G vboxusers {userNameHere}
$ sudo usermod -a -G vboxusers vivek
Verify it with the help of the id command:
$ id vivek
Reload or refresh a Linux user group permission for the current shell session by running the following newgrp command:
$ newgrp vboxusers
$ id
How to start VirtualBox on Fedora Linux 29
Type the following command:
$ virtualbox
Installing OpenSUSE Linux as a VirtualBox guest
Once VirtualBox installed, it is time to install a virtual machine. I am going to install OpenSUSE Tumbleweed. You can install Windows, OpenBSD/FreeBSD, CentOS, Debian, Ubuntu or any other supported guest operating systems as per your needs.
Download the OpenSUSE ISO
In order to install OpenSUSE Linux, you need the installation DVD media. You can download OpenSUSE from https://www.opensuse.org/. I am going to use wget command to download the ISO:
wget https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-DVD-x86_64-Current.iso
How to create a new virtual machine
The VirutalBox GUI is easy to use, and it will help you through the VM creation. Click on the New icon:
Click on the “New” icon
Create Virtual Machine
Create Virtual Hard Disk
Let us change VM options by clicking the Settings option
Storage settings to choose the ISO file previously downloaded using wget
OpenSUSE Boot DVD ISO for my VM
Start up the OpenSUSE VM and install OpenSUSE Linux
Let us start installation of OpenSUSE Linux:
Choose OpenSUSE VM in left side panel and click on the green start arrow.
Go ahead install OpenSUSE Linux
Performing installation
Installing the Guest Additions for OpenSUSE VM
I am going to install the latest Version of the Guest Additions. Start OpenSUSE VM. Log in and open the terminal application. Run the following zypper command:
sudo zypper ref
sudo zypper up
sudo zypper in kernel-devel gcc make dkms
Once installed, click on the VM > Devices >
OpenSUSE VM: Insert guest additions CD image
Run VirtualBox guest additions script
VirtualBox guest additions installation completed
$ sudo reboot
Conclusion
That is all for now. Next time we will see how to migrate VirtualBox VM to KVM. For further information see the following resources:
🐧 1 comment so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Comments on this entry are closed.
Please use our forum if you stuck with installing VirtualBox on Fedora Linux.