How to Install Ubuntu Server on VirtualBox.

Introduction

In this blog I’ll show you how to install Ubuntu server version 20.04.2.0 LTS on Oracle’s VirtualBox 6.1.22. I will be explaining everything in a very simple way so that anyone can use this blog as an easy guide.

VirtualBox

VirtualBox is open-source software for virtualizing the x86 computing architecture and is developed by Oracle Corporation. It supports the creation and management of virtual machines through which you can install a second operating system. The operating system on which you install VirtualBox is called HOST(The regular operating system). The operating system you install within VirtualBox is called the GUEST. For this tutorial, I’ll be using Windows 10 as the host OS.

Install VirtualBox

The first step you need to take is to install VirtualBox. I’ll not go into much details here, as there are perfect instructions for all of the main operating systems on the VirtualBox homepage. I’m going to download and install the latest version of virtualbox as 6.1.22 and ubuntu server as 20.04.2.0 LTS.

Download Ubuntu Server

The second step is to download Ubuntu Server. You can do this from their download page. This will download a 889 MB ISO file on your computer system. Currently the latest LTS version is Ubuntu Server 20.04.2.0 and this is what I’ll be using. It is supported until April 2025 of free security and maintenance updates guaranteed.

Create a new Virtual Machine

Once you are done with installation, open the VirtualBox. The VirtualBox has an interface from which you will control all of your virtual machines.

Now Click on New, give your virtual machine a name and the other fields will update accordingly.

Click Next. Now in the wizard, select the amount of memory (RAM) in megabytes to be allocated to the virtual machine. I chose 2GB (2048 megabytes).

Click Next and you will be directed to add a virtual hard disk to the new machine. Select ‘Create a virtual hard disk now’ and press Create.

Here we have to choose the file type for the new virtual hard disk. Select VDI (VirtualBox Disk Image) and press Next.

Now you will be asked ‘whether the new virtual hard disk should grow as it is used (dynamically allocated) or if it should be created at its maximum size (fixed size)’. Select dynamically allocated so that file may select it’s size according to the need and press Next.

Select the size of the virtual hard disk in megabytes. The default size of 10GB should be plenty, but you can increase it if you need. Then click Create.

The hard disk will be created and after a short while you will see yourself redirected to the VirtualBox Manager. You should be able to see your newly created virtual machine listed on the left. If not, then you must check what mistake you made in those steps.

Install Ubuntu Server on the Virtual Machine

Open VirtualBox then go to settings > storage > controller: IDE and either you can choose Ubuntu ISO file from a disk or select the Ubuntu ISO file in the optical drive option and press Ok.

Now select your virtual machine and press Start. The Ubuntu installation process will now begin. It consists of thirteen steps and is very easy.

Now you will see the screen where installation is being processed. This may take a while.

And now the installation is complete.

You’re good to go. Just reboot.

THANK YOU FOR READING MY BLOG :)