How to Install Ubuntu on VirtualBox

1. Download VirtualBox 6.10

Oracle VM VirtualBox is cross-stage virtualization programming. It permits clients to stretch out their current PC to run different working frameworks.It’s a GUI and command line tool that makes it deployable servers, desktops, and installed working frameworks as VMs that permits clients and administrator to effectively run various OS frameworks on a single host.

You can download the VirtualBox directly from the link VirtualBox and get started, follow below instructions

2. Download Ubuntu 20.04 LTS Distribution

Ubuntu based on Debian is a Linux distribution and composed mainly of free and open-source software. It is officially released in three editions with versions and Long Term Support (LTS): Server, Desktop, and Core for Internet of things devices and robotics, etc. All of the editions Server, Desktop and Core of Internet of things based Ubuntu can run on the computer alone, or in a virtual machine

You can download latest version of Ubuntu from this link Ubuntu and get started and follow the Instructions:

3. Installation of Ubuntu 20.04 on VirtualBox

When you downloaded the Latest VirtualBox and Latest Ubuntu Edition, We are prepared to begin the installation of Ubuntu on VirtualBox with simple, easy and least steps. Adhere to stepwise directions and don’t skip any steps

3.1 Create Virtual Machine

Open VirtualBox and click ‘New‘ to open a dialog box

3.1.1 Name and Operating system

Type Name for the virtual machine. Since I am planning to install Ubuntu 20.04 LTS, so i’ll type Ubuntu 20.04 LTS. you can type any name of your choice.

Select Type: as Linux. Note that the virtual machine will automatically select the type as Linux and Version Ubuntu (64-bit)

Click on the Continue

3.1.2 Memory Size

Select the amount of memory you wish to allocate to the virtual machine. This memory allocation depends on the actual memory of your host machine. For example, If I am having 8 GB of RAM, I can allocate 4 GB of memory to virtual machine and will keep 4GB of the memory for my host machine Operating system. Recommended amount of memory will be displayed and you can go with the recommended amount of memory also.

Click to Continue

3.1.3 Hard disk

Select the default option ‘Create a virtual hard disk now’. If you have limited space and want to select the existing virtual hard disk file, you can select ‘Use an existing virtual hard disk file’ 

Click to Create

3.1.4 Hard disk file type

Select the default option ‘VDI (VirtualBox Disk Image)’

Click to Continue

3.1.5 Storage on physical hard disk

Select the Fixed size option which is often faster than Dynamically allocated option and may take some time to create on some system because of internal structure. We recommend to select Fixed size

You may also select Dynamically allocated option as per your requirement as virtual hard disk file grow as it is used.

Click to Continue

3.1.6 File location and size

Select the size of virtual hard disk and this is the amount of data of the virtual machine will be stored in host machine. Since the default size is 10GB and you can select as per the available storage of your host machine. If you have plenty of space you can select the better storage space of 50GB or 100GB. Though I have limited space in my host machine, so i am selecting the size of the virtual hard disk is 20GB.

You can select the location by clicking on the icon

Click on Create

3.1.7 Creating fixed medium storage unit '/Users/.../Ubuntu 20.04 LTS.vdi

On clicking of ‘Create’. It will be create a storage unit and virtual machine will be created

Create Virtual Machine Step is successfully completed. Now we have to install the Ubuntu 20.04 LTS on our virtual machine

4. Install Ubuntu 20.04 LTS on VirtualBox 6.10

Select your new virtual machine created just now and click on Settings..

4.1.1 Storage

Select storage unit Controller: IDE’ then ‘Empty

Choose a disk file (*.iso) from the option shown below 

Select the *.iso file and click on open

Once selected the Controller IDE: option will be ubuntu-xxxx (iso) file as shown below

Click OK

4.1.2 Start a Virtual Machine

Click on ‘Start’

Virtual machine has loaded the ubuntu and is running. In the next steps we are going to install ubuntu on virtual machine and the steps are same for the installation of ubuntu on independent host machine.

4.1.3 Welcome Screen

Once the ubuntu iso file is fully loaded in virtual machine boot sector index, you will see the ‘Welcome’ screen

Here you note that you can ‘Try Ubuntu’ or ‘Install Ubuntu’

Please note that the installation process may be different from version to version but the most of the steps are easy to follow and here the screen shots are taken for Ubuntu 20.04. LTS

Click on ‘Install Ubuntu’

4.1.4 Keyboard layout

Select the Keyboard layout as per your country specific and you can test your keyboard

Click on Continue

4.1.5 Updates and other software

You can select the Normal installation / Minimum installation as per your requirement 

You can select other options:

  • Download updates while installing Ubuntu
  • Install third-party software for graphics and Wi-Fi hardware and additional media formats

You can select default option also

Click on Continue

4.1.6 Installation type

Make sure the ‘Erase disk and install Ubuntu’ is selected as per screen default option and click on Install Now

Click Continue

4.1.7 Location - Where are you ?

Ubuntu being an intelligent OS will ask you few questions about your location. If you are good to go, you can go ahead

Click Continue

4.1.8 Who are you ?

Who are you?

Select your preferred name, computer’s name and password

Click Continue

Ubuntu 20.04 LTS Installation process is started, Please continue until it finishes

4.1.9 Finish the Installation

After Installation process is complete. You need to reboot the system.

Click on Restart Now 

When you get the below screen and it asks you to remove the installation medium, then

Press ENTER 

4.1.10 Login to Ubuntu OS

Enter the password you set while installation / user creation

Press ENTER 

The Ubuntu 20.04 LTS Desktop OS is ready to play with. You may find the desktop screen is too small and icons are very large. Don’t worry. You can solve this easily with installation of “VirtualBox Guest Additions”.

5. Additional Installations - Full Screen Ubuntu 20.04 LTS in VirtualBox 6.10

Before installing “VirtualBox Guest Additions”, you need to sure that current user ‘amulbhatia in my case’ must have sudo privileges. In order to get the sudo privileges, run the following terminal command  with root privileges to enable the root privilege for the current user

If the current user is already having the sudo privileges, then it will throw a message that ‘The user ‘amulbhatia’ is already a member of ‘sudo’

$ sudo adduser amulbhatia sudo

Once the user is having the sudo privileges, you can install VirtualBox guest utils using the following terminal command.

Dont forget to enter the password on asking

$ sudo apt-get install virtualbox-guest-utils

If the above command shows the below error or message while executing

This system is currently not setup  to build kernel modules.

you need to run the below mentioned command. if the command is executed successfully, you can skip the following command

$ sudo apt-get install build-essential gcc make perl dkms

Reboot the Machine. You will now have full screen of Ubuntu 20.04 LTS on your VirtualBox,

If required you can set your resolution by going to Display Settings → Resolution and set accordingly

Ubuntu Linux OS 20.04 LTS has been successfully installed on VirtualBox with full screen

If you find any problem while installation, you can write down in the comment section, I’ll get back to you.

Leave a Reply