Ubuntu is a Linux-based operating system and VirtualBox is a tool by Oracle for installation and running Virtual Machines on your operating system. You may need an Ubuntu operating system to run your project or application. Let’s run to install Ubuntu 22.x on VirtualBox

Prerequisite

You need to have VirtualBox Installed on your Operating System. You can follow the below post for the installation of VirtualBox on your machine

Download the Ubuntu 22.x Operating System Image

Ubuntu installation comes in two forms

  • Desktop: This contains the Graphical user interface of Ubuntu
  • Server: This only contains the Ubuntu Operating System in Server Mode

we will install the Ubuntu 22.x Desktop version. You need to open the Ubuntu releases page and then choose version 22.04.

https://releases.ubuntu.com/

This will take you to another screen to select the Desktop or Server Version.

  • You need to choose the Desktop Version
  • Windows will prompt you to save the file in the Downloads folder.
  • You can choose another location for downloading the file. I am choosing the Downloads folder which is the default location for downloading.

You will see the downloaded file in the Downloads folder and the file extension is ISO

Install Ubuntu 22.x Virtual Machine

Open your VirtualBox Application and click on New. This will prompt you to enter different details of your Virtual Machine

  • Name: You can provide whatever name you want to give to your Virtual machine
    • In our case, we will give ubuntu-22-VM
  • Folder: Choose the Folder where you want to store the Virtual Machine Data
    • In our case, I have created a folder in F drive and I will choose that
  • ISO Image: Choose the ISO image that we downloaded in the previous step. It is saved in the Downloads folder
  • Skip Unattended Installation: Check the box

Once you select the ISO image then Type and Version will automatically get detected. Click on Next to start the installation process.

Select RAM and CPU processor configuration

The Virtual machine will run on the host Operating System so it becomes very important to provide the configuration on how much RAM and CPU of the Host Operating System will be used by the Virtual Machine.

These settings are entirely based on your system configuration so you can tweak it based on your need. I will be using the below settings

  • RAM: 4GB
  • CPU: 2

Virtual Hard Disk

Every operating system needs a Hard Disk to run where it will store the system files and other documents. VirtualBox will create a Virtual Hard Disk that can be used by the Ubuntu 22.x Virtual Machine.

I am giving the Size as 20GB. This setting is entirely based on your system configuration. You can tweak this based on your Need.

Note: Increasing the size of a Virtual Hard Disk is a difficult and time-consuming process. so choose the size of the Virtual Hard disk slightly high.

Finally, Click on Finish to complete the configuration

Starting the Ubuntu 22.x Virtual Machine

Once the configuration is done then you will see the Virtual Machine Icon on the VirtualBox tool. Click on Start to start the Virtual Machine

First-time installation process for Ubuntu 22.x

As we are installing the Virtual Machine for the first time we need to follow the installation process.

  • Select Install Ubuntu
  • Select the Language of your installation and click Install Ubuntu
  • Select Your Keyboard Layout
  • Choose Normal Installation and don’t select Download updates while installing Ubuntu otherwise, this will require Internet accessibility.
  • Select Erase Disk and then Install Ubuntu
  • Click on Continue or Next for in further steps

Setup User Credentials for Ubuntu 22.x System

You need to provide the user configuration like username and password that will be used to Login to the Ubuntu Virtual Machine

These configurations are user specific so you can provide whatever you want

Note: Remember the username and password as it will be used later on to Login to the Ubuntu Virtual Machine

After this, the Installation process will start. Once installation is completed you need to restart the Virtual Machine.

Login to Ubuntu 22.x Desktop

Once installation is complete then you will be asked to log in. Enter the username and password that were configured in previous steps and you will be able to log in to a brand new Ubuntu 22.x Desktop version

Learn More

Leave a Reply

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