How to install VirtualBox 6 on Fedora Linux 29

ADVERTISEMENTS



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

I am a new Fedora Linux user. How can I download and install Oracle VirtualBox 6 on my Fedora Linux 29 workstations?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.

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:



Start up the OpenSUSE VM and install OpenSUSE Linux

Set up guest VM name, OS and memory size as follows:Set up guest VM hard disk file size:The empty VM is now ready. You need click on theoption:Choose virtual optical discs (DVD) for booting VM as follows:Choosein thecontroller, then the. Select the ISO image downloaded earlier and press OK:

Let us start installation of OpenSUSE Linux:



Installing the Guest Additions for OpenSUSE VM

The OpenSUSE Linux boot process begins. You can now continue with the normal installation process. Just follow on-screen instructions:

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 >



$ sudo reboot

Conclusion

Click onto install the Guest Additions:Wait for some time: Reboot the Linux VM by typing the following reboot command

That is all for now. Next time we will see how to migrate VirtualBox VM to KVM. For further information see the following resources:

Oracle VirtualBox site here

OpenSUSE VirtualBox wiki page here

Category List of Unix and Linux commands File Management cat Network Utilities dig • host • ip • nmap Package Manager apk • apt Processes Management bg • chroot • 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