How to Install VirtualBox on Ubuntu (Linux)

Introduction

VirtualBox is a powerful open-source virtualization software that allows you to run multiple operating systems simultaneously on your Ubuntu machine. In this guide, you'll learn how to install VirtualBox on Ubuntu.

Step 1: Update Your System

First, update your package list to ensure you have the latest information about available packages:

sudo apt update

Step 2: Install Prerequisites

Install required dependencies for VirtualBox:

sudo apt install -y software-properties-common

Step 3: Add VirtualBox Repository

Add the Oracle VirtualBox repository to your system:

sudo add-apt-repository "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

Step 4: Install VirtualBox

Update your package list again and install VirtualBox:

sudo apt update
sudo apt install -y virtualbox-6.1

Step 5: Install VirtualBox Extension Pack (Optional)

The VirtualBox Extension Pack provides additional features and capabilities. Download and install it with the following commands:

wget https://download.virtualbox.org/virtualbox/6.1.26/Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.26.vbox-extpack

Step 6: Launch VirtualBox

Once installed, you can launch VirtualBox from the application menu or by running the following command in a terminal:

virtualbox

Conclusion

Installing VirtualBox on Ubuntu is a straightforward process that allows you to run multiple operating systems on your machine. By following these steps, you can easily set up VirtualBox and start creating virtual machines. For more information on using VirtualBox, refer to the official documentation or community forums.

Comments

Popular posts from this blog

Complete Guide to Clean and Optimize Ubuntu (Linux)

How to Install FileZilla on Ubuntu (Linux)