Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install VirtualBox on Ubuntu 20.04 - DesignLinux

May 29 2020
designlinux 0 Comments

VirtualBox is open-source cross-platform virtualization software that allows you to run multiple guest operating systems (virtual machines) simultaneously. Generally, Virtualbox is used by desktop users as a testing and development environment.

In this tutorial, we will show you two ways to install VirtualBox on Ubuntu 20.04:

  • From the standard Ubuntu repositories.
  • From the Oracle repositories.

The VirtualBox package that is available in the Ubuntu multiverse repository may not be the most recent version. Oracle repositories always contain the latest released version.

Installing VirtualBox from Ubuntu repositories #

Installing VirtualBox from the Ubuntu repositories is a straightforward process. Run the following commands as root or user with sudo privileges to update the package index and install VirtualBox and Extension Pack:

sudo apt updatesudo apt install virtualbox virtualbox-ext-pack

That’s it! You have successfully installed VirtualBox on your Ubuntu machine, and you can start using it.

Installing VirtualBox from Oracle repositories #

At the time of writing this article, the latest version of VirtualBox is version 6.1.x.

To install VirtualBox from the Oracle repositories, follow these steps:

  1. Import the Oracle public keys using the following commands:

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

    Both commands should output OK, which means that the keys are successfully imported, and packages from this repository will be considered trusted.

  2. Add the VirtualBox APT repository to your system:

    echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | \     sudo tee -a /etc/apt/sources.list.d/virtualbox.list

    $(lsb_release -cs) prints the Ubuntu codename. For example, if you have Ubuntu version 20.04 the command will print focal.

  3. Update the packages list and install the latest version of VirtualBox:

    sudo apt updatesudo apt install virtualbox-6.1

Installing VirtualBox Extension Pack #

The VirtualBox Extension Pack provides several useful functionalities for guest machines such as virtual USB 2.0 and 3.0 devices, support for RDP, images encryption, and more.

Download the extension pack file by typing:

wget https://download.virtualbox.org/virtualbox/6.1.8/Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack
Make sure the version of the Extension Pack matches with the VirtualBox version.

When the download is completed, import the extension pack using the following command:

sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack

You will be presented with the Oracle license and prompted to accept their terms and conditions.

Do you agree to these license terms and conditions (y/n)?

Type y and hit Enter. Once the installation is completed, you will see the following output:

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".

Starting VirtualBox #

VirtualBox can be launched from the command line by typing virtualbox or by clicking on the VirtualBox icon (Activities -> VirtualBox).

When you start zoom for the first time, a window like the following will appear:

Conclusion #

We’ve shown you how to install VirtualBox on Ubuntu 20.04. You can now create your first Windows or Linux guest machine.

For more information about VirtualBox, visit the official VirtualBox documentation page.

If you’d like to manage your virtual machines from the command line, check out our article on how to How to install Vagrant on Ubuntu 20.04.

Feel free to leave a comment if you have any questions.

virtualbox ubuntu

Related

Tags: ubuntu, virtualbox

How to Install Composer on CentOS 8

Prev Post

How to Install OpenCV on Debian 10 Linux

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 1
  • 483
  • 612,662

DesignLinux.com © All rights reserved

Go to mobile version