How to Install Ubuntu 22.04 on VirtualBox

Install Ubuntu 22.04 on VirtualBox

Ubuntu is the most useful and familiar distribution of Linux. Installing Linux in a VirtualBox gives you an option to use Linux as a virtual machine within windows. In this guide, we will discuss how to create a virtual machine and install Ubuntu 22.04 on it.

How to Install Ubuntu 22.04 on VirtualBox?

To install the latest Ubuntu version 22.04 on VirtualBox, first, you need to download VirtualBox and the latest Ubuntu using Ubuntu 22.04 iso file. If you don’t know how to download and install VirtualBox on Windows, you can check this step-by-step guide.

We will install Ubuntu 22.04 LTS on VirtualBox with the help of the following steps:

Step 1: Open Oracle VirtualBox

Once you have installed the VirtualBox and are ready to install Ubuntu 22.04 on VirtualBox. Open VirtualBox from the start menu and click on “New” to start creating a new virtual machine.

VirtualBox Interface

Step 2. Create a new Virtual Machine

A new window will open for entering the credentials of the virtual machine. Set a “Name”, and select the “Type” & “Version” of the operating system.

Click on “Next” to go ahead.

Name and Operating System

Step 3. Allocate Memory Size for Virtual Machine

Allocate the memory size to the virtual machine according to your RAM.

Click the “Next” option to proceed to the next step.

Allocate Memory Size

Step 4. Create and Configure a Virtual Hard Disk

You can select the first option if you have already created a virtual hard disk. But for the new setup, you should choose the second option, “Create a virtual hard disk now”.

Click on ”Create” to make a virtual hard disk.

Create a virtual hard disk

Select the default first option, “VDI” as the file type for the hard disk.  

VirtualBox Disk Image

Press the “Next” button and continue.

Now, choose the “Dynamically allocated” option that will take only the required space in the hard disk.

Click “Next“ to continue.

Dynamic Storage

Select the virtual hard disk size according to your need, like 10GB (Better to assign more sizes for the quick process). This size will limit the storage of files on your virtual machine to your virtual hard disk.

File Location and Size

Click the “Create” button to create a virtual machine with your desired specifications.

You have successfully created a virtual machine on VirtualBox. Now, let’s install Ubuntu 22.04 on the virtual machine.

Now, we will discuss how to install Ubuntu 22.04 on the virtual machine step-by-step. Let’s begin!

Step 5: Start the Virtual Machine

You can see the VirtualBox interface below. Click on “Start” to begin the process. 

Note: If you have more than one virtual machine installed in your system, first select your desired virtual machine, then click on “Start”.

Start Virtual Machine

Step 6: Add Ubuntu 22.04 iso File

To install Ubuntu 22.04 on the virtual machine, you must include its “iso” file, which acts as a startup disk.

Select Ubuntu 22.04 iso file

Click the box icon to get the option to add a Ubuntu 22.04 iso file.

Add iso file Ubuntu 22.04

Clicking the “Add” icon will ask you to choose the iso file from your desktop.

Click “Open” to add the Ubuntu 22.04 iso file where it is being downloaded.

Open Ubuntu 22.04 iso file

After adding the iso file, click “Start” to begin the installation.

Select iso file

We have added the iso file to the Virtual machine, and we are ready to install Ubuntu 22.04 on our system.

Step 7: Installing Ubuntu 22.04 on a Virtual Machine

In this step, we will see how we can install Ubuntu 22.04. Select the first option and proceed with the normal installation.

Choose Install Ubuntu

After clicking on the first option, it will direct you to the window shown below with a file.

Step 8: Select Installation File

Double-click on the added file to start the installation.

Select Installation Ubuntu 22.04 file

Now, we will choose our desired preferences to configure the Ubuntu 22.04 on our system.

System Language

Now choose your preferred language for keyboard layout and press “Continue”.

Step 9: Select Keyboard Layout

Select your system’s keyboard layout language (in my case English) and press the “Continue” button.

Keyboard Layout

Step 10: Updates and Other Software

For updates and other software, select the default options and click on “Continue”.

Updates and other software

Step 11: Installation Type

Choose the first option for the installation type (Don’t Panic, It won’t delete the guest operating system’s data).

Installation Type

It will open a new window confirming the changes in the disk for the above option. Press “Continue” to proceed.

Installation Warning
Step 12 Set Your Location:

Select your location for your date and time settings.

Set Location

Step 13: Set Credentials For the User

In the next step, it will ask for details about the user. Set the credentials about the user, like “Name,” etc., and choose a strong password. You should select the “Require my password to login” option to secure your system.

User Details

It will take a few minutes to install, depending on your system. After installation, it will ask to restart the system.

Installation Complete

Congratulations, you have successfully installed Ubuntu 22.04 LTS on the virtual machine.

That’s the end of this guide!


To Install Ubuntu 22.04 on VirtualBox requires creating a virtual machine and installing Ubuntu using an iso file. For creating a virtual machine, you need to specify the Linux operating system, allocate memory size, and the size of the virtual hard disk. Moreover, add an iso file to the virtual machine and set the preferences to install Ubuntu 22.04 on the Virtual machine. In this guide, we have covered how to create a virtual machine first and how to install Ubuntu 22.04 LTS on the created virtual machine.

Leave a Reply

Your email address will not be published. Required fields are marked *