Install Ubuntu Desktop on VirtualBox

Install Ubuntu Desktop on VirtualBox

In this article, I will show you how to install Ubuntu desktop on VirtualBox. I'll be using Ubuntu 22.04.3 LTS and Oracle VM VirtualBox.

So, Why VirtualBox?

VirtualBox provides useful features such as running multiple operating systems simultaneously, whereas a virtual machine (VM) is the special environment that VirtualBox creates for your guest OS while it is running [Orac00].

Guest OS is an operating system running inside the VM.

Assuming you have already installed Oracle VM VirtualBox, the first step is to download the Ubuntu 22.04.3 LTS .iso image from https://ubuntu.com/download/desktop.

After the download, navigate to your VirtualBox and click on New.

New virtual box menu

Create Virtual Machine with the following information:

  • Name: Provide a name for your VM
  • Folder: VM folder
  • ISO image: Specify the location of the Ubuntu 22.04.3 LTS .iso image
  • Type: Linux
  • Version: 64-bit

Create virtual machine

Check skip unattended installation and provide Hardware information:

  • Base memory: Allocate 4096 MB of memory
  • Processors: Allocate 2

For the hard disk, choose a 25 GB virtual hard disk named ubuntu-desktop.vdi.

Now, right-click on the newly created VM and click "Normal Start," as shown in the figure.

VM normal start

As soon as the machine starts, you will see two options for Ubuntu:

  1. Try Ubuntu
  2. Install Ubuntu

Ubuntu start options

Select "Install Ubuntu," then choose your desired keyboard layout. For updates and other software, stick with the default checked items.

Ubuntu install keyboard settings
Ubuntu software updates

For Installation type, choose Erase disk and install Ubuntu and continue.

Ubuntu erase disk and install ubuntu

Furthermore, provide your location and user information; in my case:

Ubuntu install geographic location setting
Ubuntu install geographic location setting

Time for a coffee break, as it make take sometime to complete the installation

Ubuntu installation process

Restart the VM now

Restart Ubuntu

And press enter

Restart Ubuntu - 2

Congratulations, you've just created an Ubuntu VM!

Enjoy the first glimpse of your newly created VM.

Ubuntu login
Ubuntu desktop view

This post is part of the series called A Linux Crash Course for Absolute Beginners.

Bibliography

[Orac00] “Oracle® VM VirtualBox®.” https://www.virtualbox.org/manual/UserManual.html#virt-why-useful (accessed Jan. 31, 2024).

Leave a Reply

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


© 2024 A. Maharjan