Oracle’s VirtualBox is virtualization software that is widely utilized for creating virtual machines. These virtual machines can work around multiple operating systems simultaneously. VirtualBox is generally used by developers for testing their products.
In this guide, we will instruct you about the method of installing VirtualBox and its Extension pack on Ubuntu 22.04.
How to Install VirtualBox on Ubuntu 22.04 using the default Ubuntu repository
Open up the terminal and type this command to update the system repositories:
Now simply use the following command to install the VirtualBox:
The given output signifies that the latest stable version of VirtualBox has been installed on Ubuntu 22.04:
Now, you can search for VirtualBox in the “Activities” menu and open it from there:
At this point, VirtualBox is installed on your Ubuntu 22.04 system and you only need to add its Extension Pack.
How to VirtualBox Extension Pack on Ubuntu 22.04
It is recommended to install the VirtualBox Extension Pack for your VirtualBox as it provides a handful of useful features for your guest machines such as USB support, image encryption, webcam, and much more:
Click the ‘OK’ and then ‘Yes’ button to agree with the terms and conditions of the extension pack:
At this point, the VirtualBox Extension pack is successfully installed on our Ubuntu 22.04:
How to uninstall VirtualBox from Ubuntu 22.04
Want to uninstall VirtualBox from Ubuntu 22.04? If yes, then execute the following commands:
$ sudo rm ~/.config/VirtualBox/ -Rf
Now you’re all set to create virtual machines on your system using the VirtualBox. This guide covers two different methods of installing the VirtualBox on the Ubuntu 22.0 system. Installing VirtualBox through Oracle’s official repositories is the better option as it automatically updates the VirtualBox whenever there’s a new version available.