x32x01
ADMINISTRATOR
- by x32x01 ||
VirtualBox is a powerful free tool by Oracle for running a virtual operating system on your computer. In this tutorial learn how to install VirtualBox on Ubuntu and other Debian-based Linux distributions.
Prerequisites
The easiest way to install VirtualBox is by using the official Ubuntu repositories.
1. Open a terminal, and enter the following to update the repository:
2. Download and install VirtualBox by running:
3. Next, install the VirtualBox Extension Pack:
Read the VirtualBox Extension Pack Personal Use and Evaluation License and select <Ok> to confirm you understand.
Accept the terms of the VirtualBox PUEL license by selecting <Yes> and hitting Enter.
Finally, the output displays you have successfully installed "Oracle VM VirtualBox Extension Pack".
The Extension Pack enhances VirtualBox by adding USB 2.0 and 3.0 support, remote desktop, and encryption.
Option 2: Installing VirtualBox from Oracle’s Repositories
Often the default repositories do not have the latest versions of the software. They may work for test environments, but some users need the latest security or functionality patches. This process is more in-depth but installs the most recent version of VirtualBox on Ubuntu.
Install Supporting software
The software-properties-common package is required to run Virtualbox on Ubuntu. It allows you to add new software repositories.
Enter the following into a terminal window:
Install GPG keys
GPG keys allow you to verify and communicate with the VirtualBox repository.
To download and install GPG keys, use the commands:
Add VirtualBox Repository to Ubuntu
To add the VirtualBox repository, enter the command :
Install Latest Version of VirtualBox
1. Start by updating the package lists:
2. To Install VirtualBox 6.1 on Ubuntu, use the command:
At the time of writing this article, the latest VirtualBox version is 6.1.26. It was designed for 64-bit operating systems. If you’re running a 32-bit OS, you can use VirtualBox 5.2 instead.
To install VirtualBox 5.2, enter the following:
Install VirtualBox Extension Pack
The VirtualBox Extension Pack enhances the functionality of your virtual machines. It adds additional tools like USB 2.0 and 3.0, Remote Desktop, and encryption.
1. Enter the following:
2. Import the Extension Pack:
Confirm the installation, then allow the process to complete.
Using VirtualBox
1. Launch the VirtualBox interface by entering the following:
2. After VirtualBox launches, a graphic interface will load. Use the Add or New button to create a new virtual machine. A dialog will open. Select the operating system and version you’d like to create, then click Next.
3. The dialog will offer you several options for the virtual machine. This is where you allocate memory, hard drive, and other resources to the virtual machine. Use default options if you are unsure about customizing this
4. Once you finish, a new virtual machine is available in the left column. Select it, and click the green arrow Start button. A new window will open and boot up the virtual machine.
- A user account with sudo privileges
- A terminal window (Ctrl+Alt+T)
The easiest way to install VirtualBox is by using the official Ubuntu repositories.
1. Open a terminal, and enter the following to update the repository:
Code:
sudo apt-get update
Code:
sudo apt-get install virtualbox
Code:
sudo apt-get install virtualbox-ext-pack
Option 2: Installing VirtualBox from Oracle’s Repositories
Often the default repositories do not have the latest versions of the software. They may work for test environments, but some users need the latest security or functionality patches. This process is more in-depth but installs the most recent version of VirtualBox on Ubuntu.
Install Supporting software
The software-properties-common package is required to run Virtualbox on Ubuntu. It allows you to add new software repositories.
Enter the following into a terminal window:
Code:
sudo apt-get install software–properties–common
Install GPG keys
GPG keys allow you to verify and communicate with the VirtualBox repository.
To download and install GPG keys, use the commands:
Code:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
Code:
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add –
To add the VirtualBox repository, enter the command :
Code:
echo "deb [arch=amd64] http://virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
Install Latest Version of VirtualBox
1. Start by updating the package lists:
Code:
sudo apt-get update
Code:
sudo apt-get install virtualbox–6.1
To install VirtualBox 5.2, enter the following:
Code:
sudo apt-get install virtualbox–5.2
Install VirtualBox Extension Pack
The VirtualBox Extension Pack enhances the functionality of your virtual machines. It adds additional tools like USB 2.0 and 3.0, Remote Desktop, and encryption.
1. Enter the following:
Code:
wget https://download.virtualbox.org/virtualbox/6.1.26/Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack
Code:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack
Using VirtualBox
1. Launch the VirtualBox interface by entering the following:
Code:
virtualbox
3. The dialog will offer you several options for the virtual machine. This is where you allocate memory, hard drive, and other resources to the virtual machine. Use default options if you are unsure about customizing this
4. Once you finish, a new virtual machine is available in the left column. Select it, and click the green arrow Start button. A new window will open and boot up the virtual machine.