The objective of this tutorial is to install VirtualBox on Ubuntu 22.04 Jammy Jellyfish. VirtualBox is a free and open source hosted hypervisor for x86 virtualization developed and maintained by the Oracle Corporation.
VirtualBox is a great way to install a guest operating system on your computer, if you either want to try a different operating system or just maintain a separate environment from your host system. You will learn how to install VirtualBox via both command line and GNOME GUI in this tutorial.
In this tutorial you will learn:
- How to Install VirtualBox from command line
- How to Install VirtualBox from GNOME Desktop

Category | Requirements, Conventions or Software Version Used |
---|---|
System | Ubuntu 22.04 Jammy Jellyfish |
Software | Oracle VirtualBox |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions |
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ – requires given linux commands to be executed as a regular non-privileged user |
Install VirtualBox on Ubuntu 22.04 step by step instructions
VirtualBox can be installed via command line with
apt
package manager, or via GUI with the Software application. Choose your preferred method and follow the corresponding section below.
Install VirtualBox from command line
- Get started by opening a command line terminal and using the following two commands with root permissions in order to update your Ubuntu package cache and install the
virtualbox
package.$ sudo apt update $ sudo apt install virtualbox
- That’s all there is to it. You can now open VirtualBox from the app launch menu or just execute the following command in terminal to open the program.
$ virtualbox
You can now for example test the VirtualBox installation by creating a new Ubuntu 64-bit virtual machine and booting into Ubuntu 22.04 downloaded ISO image.
Optionally you can now install VirtualBox Extension Pack to add some extra features to your VirtualBox installation.
Install VirtualBox from GNOME Desktop
- First, Use the top left
Activities
menu to open theSoftware
application.Opening the software application on Ubuntu 22.04 - Next, search for the VirtualBox software.
Type VirtualBox in the search menu to find the right package
- To begin the VirtualBox installation hit the
install
button on the correct result.Begin installation of Oracle VirtualBox - Enter your password. Your user must belong to the sudo group in order to proceed with the installation.
Authenticate in order to proceed with the installation - Once VirtualBox has finished installing, simply open the application from within the
Activities
menu.Opening VirtualBox on Ubuntu 22.04
Closing Thoughts
In this tutorial, we saw how to install VirtualBox on Ubuntu 22.04 Jammy Jellyfish Linux. Now you can use an ISO file to install a guest operating system as a virtual machine. This is a great way to have an environment separate from your host system in order to test software or use a completely different type of operating system such as BSD, Windows, or MacOS.