How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

VirtualBox is a free and open-source hypervisor for x86 and x86-64 virtualization, which the Oracle Corporation develops. The software targets users wishing to create virtual environments for servers and desktops that allow users and administrations to run multiple guest operating systems on a single computer for either testing methods or production use. VirtualBox may be installed on Windows, macOS, Linux, Solaris, and OpenSolaris.

In the following tutorial, you will learn how to install VirtualBox on your Pop!_OS 20.04 desktop, along with creating a new Virtual Machine from scratch.

Prerequisites

  • Recommended OS: Pop!_OS 20.04 or higher.
  • User account: A user account with sudo or root access.

Update Operating System

Update your Pop!_OS 20.04 operating system to make sure all existing packages are up to date:

sudo apt update && sudo apt upgrade

The tutorial will be using the sudo command and assuming you have sudo status.

To verify sudo status on your account:

sudo whoami

Example output showing sudo status:

[joshua@popos ~]$ sudo whoami
root

To set up an existing or new sudo account, visit our tutorial on adding a User to Sudoers on Pop!_OS 20.04.

To use the root account, use the following command with the root password to log in.

su

Install VirtualBox

Import the GPG Key

The first step in installing VirtualBox latest build is first to add the GPG key:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

Example output if successful:

OK

Import VirtualBox Repository

The next step once the GPG key is imported is to add the repository as follows:

echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian focal contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

Now, update your repository list to reflect the new additions.

sudo apt update

Install VirtualBox

With the setup complete, execute the installation command to install VirtualBox:

sudo apt install virtualbox-6.1 

Example of dependencies installed with VirtualBox:

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Type “Y,” then press the “ENTER KEY” to proceed and complete the installation.

To confirm if VirtualBox was installed successfully, check the current status as follows:

systemctl status vboxdrv

Example output:

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

How to Launch & Use VirtualBox

How to Launch VirtualBox

With the installation complete, you can launch Virtualbox on Pop!_OS in a few different ways.

First, while you are in your terminal, you can use the following command:

virtualbox

Alternatively, run the VirtualBox & command in the background to free up the terminal:

virtualbox &

However, this isn’t practical, and you would use the following path on your desktop to open with the path: Activities > Show Applications > Oracle VM Virtualbox. If you cannot find it, use the search function in the Show Applications menu if you have many applications installed.

Example:

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Add & Setup New VM

To create and configure a new VM with VirtualBox is a straightforward process as follows. The tutorial will create a VM with the Linux profile for creating a new Ubuntu 21.04 Desktop VM.

Step 1. Once VirtualBox is open, click on the New button as below:

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 2. For the tutorial, it was stated the VM creation of choice would be Windows 10. Name your VM, then click Version Windows 10 if it hasn’t been automatically selected for you.

Hint, if you name the VM the operating system, you install it’ll automatically pick the version for you.

Click the Next > button to proceed.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 3. The following window you will see is the select Memory (RAM) option. The default is 1024 MB; however, for most systems, you will need to increase this. A handy tip is to look at the min specs and determine how much memory your VM OS will require or expand to a healthy margin.

As shown below, the tutorial guest machine increased the margin to roughly 6.5GB.

Once done, click the Next > button.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 4. Create or use an existing hard drive setup. Most users will typically Create a virtual hard disk now an option when creating a new VM.

Select this option and click Create button.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 5. When choosing the virtual storage allocation method, VDI (VirtualBox Disk Image) is recommended.

Click on the Next > button to proceed.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 6. Dynamically allocated when running a guest machine for best performance in disk allocation.

Click on the Next > button to proceed.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 7. Select the file location if the default isn’t reasonable for you. Lastly, set the time of the virtual hard disk.

Once configured, click on the Create button to finish up.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 8. You will now come to an overview of the virtual machine you just created. You can modify the settings of your VM in this overview directly and in the future. Note, if you want to change settings, the virtual machine much be shut down.

To proceed with the Windows 10 installation, click on the Start button as below:

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 9. The first screen will appear when starting your VM for the first time, which will prompt you to select your ISO as the start-up disk.

Click on the icon folder as the example below.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Click on the Add + button on the top left corner as below:

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 10. Now locate the directory and the ISO file, select it and click on the Open button:

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 12. Click on the newly added ISO option, and this may take a second or three to sync up in the directory.

Once you have selected the ISO installation option, click on Choose button.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Step 13. In the last step, you can see the ISO file now in the start-up disk option to install.

Click on the Start button to install your VM OS system.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

This will begin installing the chosen operating system; this was Ubuntu 21.04 as the example for the tutorial.

How to Install & Create a VM on VirtualBox with Pop!_OS 20.04

Comments and Conclusion

In the tutorial, you have learned how to install VirtualBox directly from the source repository to receive the latest updates and features in the future, along with a basic example of creating a VM using VirtualBox.

Overall, out of the many virtual machine software on the market, VirtualBox is one of the top players supplying an excellent selection of host and client combinations such as Windows from XP onwards, any Linux level 2.4 or better, Windows NT, Server 2003, Solaris, OpenSolaris, and even OpenBSD Unix.



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!