How to Install VirtualBox 6.1 on Linux Mint 21

This article provides a comprehensive guide on setting up Oracle VM VirtualBox 6.1 on the Linux Mint 21 Vanessa distribution. With this setup, you can effortlessly make virtual machines and seamlessly integrate various operating systems, including Windows, Linux, and macOS, alongside your existing design. Follow the steps below to unlock the real potential of VirtualBox and improve your computing experience.

Installing VirtualBox 6.1 on Linux Mint 21

How to Use Oracle VM VirtualBox 6.1.36 to Run a Virtual Machine on Linux Mint

Oracle VM VirtualBox is the perfect solution for those seeking free virtualization software on their computer. This software is consistent with Windows, Linux, and macOS, and the installation stages are straightforward. No matter which operating system you use, VirtualBox is an excellent choice that offers exceptional virtualization features that are accessible immediately.

You can run a guest operating system on the virtual computer you have prepared without dual-boot by using the Oracle virtualization program on your Linux Mint computer that supports virtualization. You can quickly run and operate your virtual system without restarting your host computer.

You can install Oracle software on Linux Mint with 3 methods.

  1. You can install it with Package Manager.
  2. You can install it with the deb package.
  3. You can install it from Oracle servers.

In this article, we will download the Oracle program from the official website and install the deb package as a more straightforward installation method.

How to Download and Install VirtualBox

Downloading VirtualBox for Linux platforms is easily achievable by visiting any website on the Internet or the official website.

Step 1

To download VirtualBox from the official website, visit this address and click Download VirtualBox 6.1 image.

Download Oracle VM VirtualBox for Linux

Step 2

Click Linux Distributions in VirtualBox 6.1.36 Platform Packages.

Linux Distributions

Step 3

After clicking Ubuntu 19.10 / 20.04 / 20.10 / 21.04 option from Linux platforms, save the deb package to your computer.

Ubuntu 19.10 / 20.04 / 20.10 / 21.04

Step 4

To access the terminal, confidently press CTRL + ALT + T on your keyboard. Onetime there, type the “sudo apt update” command to confirm your system’s package list is entirely up-to-date.

sudo apt update

Updating the Package List

Step 5

Go to the Download location in the terminal and execute the “sudo dpkg -i virtualbox-6.1_6.1.36-152435~Ubuntu~jammy_amd64.deb” command to install VirtualBox.

sudo dpkg -i virtualbox-6.1_6.1.36-152435~Ubuntu~jammy_amd64.deb

Installing the VirtualBox.deb Package

Step 6

You can see that the dependent packages required for VirtualBox should also be installed during the installation. To confirm the Oracle software runs smoothly, enter the command “sudo apt install -f” into the terminal, and the necessary packages will be installed.

sudo apt install -f

Force Installation of Dependent Packages

Step 7

To efficiently install and compile Linux kernel modules for VirtualBox, enter “sudo apt install linux-headers-$(uname -r) build essential dkms” in the terminal. This straightforward process will only consume a little of your precious time.

sudo apt install linux-headers-$(uname -r) build essential dkms

Installing Linux Kernels for VirtualBox

Step 8

You can check the version of Oracle VM VirtualBox in Help / About.

Checking VirtualBox Version

How to Install Extension Pack

After installing VirtualBox on Linux Mint, you need to install the Extension Pack to operate USB 3.0 devices in the virtual machine, get a better mouse experience, and enable full-screen resolution.

Step 1

View the VirtualBox download webpage and click All Supported Platforms under the Extension Pack heading.

Oracle VM VirtualBox Extension Pack Download

Step 2

Double-click on the Vbox-extpack file you downloaded to your computer.

Installing Extension Pack

Step 3

If you downloaded the Extension Pack from a secure source, click the Install button.

Starting Installation

Step 4

To gain full access to the license agreement, it’s crucial that you confidently scroll down and assertively click on the “I Agree” button without any delay.

Reading and Accepting the Full Text of the License Agreement

Step 5

Type the root password of your Linux Mint system and click Authenticate.

Typing the Root Password

Step 6

Close the information window after successfully installing the Extension Pack on your Linux Mint computer.

Extension Pack Installed Successfully

Step 7

Click File / Preferences from the VirtualBox tool menu, and you can check the Extension Pack version you have installed from the Extensions option on the left panel.

Checking Extension Pack Version

How to Create a New Virtual Machine

After installing Oracle VM VirtualBox and configuring the necessary extension pack for the drivers of virtual machines, you can now create a new virtual machine on your Linux system.

Step 1

After running VirtualBox, open the virtual machine wizard by clicking the New icon from the tool menu. After opening the wizard, as soon as you type the operating system’s name, you will install it in the Name and Operating System window, and the values in the Type and Version sections will automatically match.

After the version of the virtual guest operating system matches correctly, configure the location on your Linux system to install and click Next.

Creating a New Virtual Machine

Step 2

Configure the memory size of your virtual system according to the capacity of your host computer and click Next.

Configuring Memory Size

Step 3

Since installing Windows 10 from scratch, create a new virtual hard disk and click Create.

Creating a New Virtual Hard Disk

Step 4

Select the virtual hard disk type as the default option VDI (VirtualBox Disk Image) and click Next.

VDI (VirtualBox Disk Image)

Step 5

If you want the virtual disk size allocated from your host disk in advance, choose the Fixed Size backup type. If you have a fast disk, you can select the Dynamically allocated option to allocate disk space as much as necessary from disk capacity.

Choosing the Dynamically Allocated Disk Type

Step 6

The disk size of the Windows 10 guest machine is set to 50 GB by default. You can specify a higher disk space if you install and run multiple programs on your virtual computer.

Configuring Virtual Disk Size

Step 7

After creating the Windows 10 virtual machine, click Settings for more advanced hardware configurations.

Opening Virtual Machine Settings

Step 8

Open Advanced in the General settings of the Windows 10 virtual system and change both properties to Bidirectional to enable drag-drop and copy-paste between host and VM.

Enabling Shared Clipboard and Drag and Drop Features

Step 9

Change the guest system’s primary boot device to an optical drive in System / Motherboard settings and disable Floppy.

Configuring the Optical Disk Drive as a Primary Device

Step 10

After enabling the 3D Acceleration feature in the Display settings, change the Video Memory size to 256 MB.

Enabling 3D Graphics Acceleration and Increasing Display Memory

Step 11

After selecting SATA Controller in the Storage device settings, enable the Host I/O Cache feature from the Attributes section.

Enabling Host I/O Cache for SATA Disk

Step 12

Activate the Solid-State Drive feature from the Windows 10.vdi virtual disk file settings.

Configuring Windows 10.vdi Disk File as SSD

Step 13

To add a Windows 10 ISO file to the virtual computer you created, select the Empty optical drive, click the DVD icon, and click Choose a disk file from the options that appear.

Adding ISO File to Virtual Machine

Step 14

Select a Windows 10 image file you downloaded to your computer and click Open.

Choosing the Windows 10 ISO File

Step 15

View the USB hardware settings and enable the 3.0/3.1 controller.

Selecting the USB 3.0 Controller

Step 16

After configuring the settings of your Windows 10 virtual computer, run it.

Running a Windows 10 Virtual PC

Step 17

When the installation wizard for Microsoft Windows 10 presents itself, you can proceed with the installation process for virtual and physical computers using the same steps. Remember to install Guest Additions to install the VM’s drivers after installation.

Windows 10 Setup Wizard

How to Delete the Virtual Machine

After successfully establishing a guest operating system on VirtualBox for Windows or Linux, you can confidently delete the virtual machine files from your host disk without negatively impacting your host system.

Step 1

If you want to completely delete the Windows 10 virtual system you have installed from your host disk and do not want to use this VM again, right-click / Remove on the VM from the left panel of the Oracle virtualization software, and then, click Delete All Files in the warning window that opens.

Deleting All Files of the Virtual Machine

Step 2

When you check the virtual computer installed in the VirtualBox VMs location, you can see no files.

Checking VirtualBox VMs Folder

How to Uninstall VirtualBox from Linux Mint

Eliminating Oracle software from your Linux machine can be accomplished swiftly in minutes.

Step 1

After opening the terminal, execute the “sudo apt remove –purge *virtualbox*” command to remove VirtualBox at the command prompt.

sudo apt remove --purge *virtualbox*

Uninstalling Oracle VM VirtualBox

Step 2

Press Y, then Enter to confirm the removal of packages and files associated with VirtualBox.

Confirming Packages to be Removed

Step 3

To delete the residual files of the Oracle software on your system, execute the commands below in the terminal.

sudo rm -rf ~/"VirtualBox VMs"
sudo rm -rf ~/.config/VirtualBox/
sudo rm -rf /usr/lib/VirtualBox/

Deleting Relic Files

Step 4

After successfully removing VirtualBox from your system, you can see vboxusers in user groups. Check the vboxusers group with the compgen command and delete this group, if any.

compgen -g | grep -i "vbox"
sudo groupdel vboxusers

Deleting a User Group

Video

Installing VirtualBox from Oracle Repositories

You need to download current versions of the virtualization program from Oracle servers to your Linux Mint PC, update your repository list, and install the program.

  1. Run the following command in the terminal console to edit the Linux Mint sources.list.
    • sudo nano /etc/apt/sources.list
  2. Add the address below to the Sources.list, press Ctrl + X, then hit Enter to save the file.
    • deb https://download.virtualbox.org/virtualbox/debian eoan contrib
  3. To add the Public Key of the Oracle VM, execute the command below and update your package list with the sudo apt update command.
    • wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
    • sudo apt update
  4. Execute the sudo apt install virtualbox-6.1 command to start the Oracle virtual machine program installation.
    • sudo apt install virtualbox-6.1
  5. Just execute the commands below to effortlessly get the Extension Pack up and running on your system.
    • wget https://download.virtualbox.org/virtualbox/6.1.36/Oracle_VM_VirtualBox_Extension_Pack-6.1.36.vbox-extpack
    • sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.36.vbox-extpack

To verify the status of VirtualBox following its installation from the Oracle repositories, execute the “sudo systemctl status vboxdrv” command in the terminal.

Installing Old Versions

Mint / VBox Version
YouTube Video
Slide
18 / 5.2
19 / 6.0
20.3 / 6.1
21 / 6.1 (NEW)

 

Related Articles


How to Set Up VirtualBox on Ubuntu
How to Create a Virtual Machine in VirtualBox
How to Run Windows 10 on VirtualBox
How to Set Up Ubuntu in VirtualBox
How to Set Up Debian in VirtualBox

4 Comments

Add a Comment

Your email address will not be published. Required fields are marked *