Article Directory
2.1、 Install VirtualBox Extension Pack
Three, start VirtualBox
Four, summary
This article was first published in: https://www.itcoder.tech/posts/how-to-install-virtualbox-on-ubuntu-20-04/
VirtualBox is an open source, cross-platform virtualization software that allows you to run multiple virtual machines at the same time. Generally, VirtualBox is used by desktop users as a testing and development environment.
In this guide, we will show you how to install VirtualBox on Ubuntu 20.04:
The VirtualBox package is available in the Ubuntu multiverse software source, but it may not be the latest version. The Oracle software source always contains the latest released version.
Installing VirtualBox from the Ubuntu software source is very simple and straightforward. Run the following command as root or another user with sudo privileges to update the package index, and install VirtualBox and extended enhancement packages:
sudo apt update
sudo apt install virtualbox virtualbox-ext-pack
that's it! You have successfully installed VirtualBox on your Ubuntu machine, and you can start using it.
At the time of writing this article, the latest version of VirtualBox is version 6.1.x.
To install VirtualBox from the Oracle software source, follow the steps below:
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 -
These commands should all output OK, which means that the public key was successfully imported and the software package of the software source is considered authentic.
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)
Print the Ubuntu code name. For example, if you are using Ubuntu version 20.04, this command will print focal
.
sudo apt update
sudo apt install virtualbox-6.1
The VirtualBox extended enhancement package provides some very useful functions to the client, such as virtual USB 2.0, USB 3.0, RDP support, image encryption, and so on.
To download the expansion enhancement package file, enter:
wget https://download.virtualbox.org/virtualbox/6.1.8/Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack
Make sure that the version of the extended enhanced version matches the version of VirtualBox.
When the download is complete, use the following command to import the extended enhancement package:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack
You will be shown the Oracle agreement and prompted to accept their agreement and conditions:
Do you agree to these license terms and conditions(y/n)?
Type y
and press Enter
. Once the installation is complete, you will see the following output:
0 %...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".
VirtualBox can enter virtualbox
in the terminal command line, or click the VirtualBox icon.
When you start VirtualBox for the first time, a window similar to the following will appear:
We have shown you how to install VirtualBox on Ubuntu 20.04. Now you can create your first Windows or Linux client.
For more information about VirtualBox, please visit Official VirtualBox Documentation Page.
If you want to manage your virtual machine from the command line, please browse this article How to install Vagrant on Ubuntu 20.04
If you have any questions, please contact us in the following ways:
WeChat:
WeChat group: add the above WeChat, remark the WeChat group
QQ: 3217680847
QQ Group: 82695646
Recommended Posts