Tutorial 10: Install Ubuntu VM on Oracle Virtual Box

What you will Learn:

Need for Virtualization

Virtualization

 

Most of us work on Windows OS. Using virtualization technique, you can install an image of Linux OS on your windows host machine. So your windows machine will become the host machine & we can install a guest linux OS on top of that. This way, you can install any necessary software (for DevOps) on linux virtual machine. You don’t have to disturb the setup on your host windows machine.

We would be installing Ubuntu OS image on our windows host machine. Ubuntu is a flavour of Linux. So let us start.

Install Oracle VM Virtual Box

We need to first install the Oracle VM Virtual box. Once we are done with this, we can then setup Ubuntu VM.

So, below are the steps to install Oracle Virtual Box.

Go to https://www.virtualbox.org/wiki/Downloads

Oracle Virtual Box

Download the Windows hosts package

Windows hosts

Just install the above package

Oracle Virtual Box

After installation, click the desktop icon ‘Oracle VM VirtualBox’, below window would come up

Oracle Virtual Box

 

Download Ubuntu desktop image

Next, we will download ‘Ubuntu Desktop’ image from https://ubuntu.com/download#download

Oracle Virtual Box

Click 20.94 LTS to download image

Oracle Virtual Box

Oracle Virtual Box

Install Ubuntu image

 

Once the image gets downloaded, click ‘New’ icon that you see on Oracle virtual box

Oracle Virtual Box

Provide name of your new Ubuntu machine (example Ubuntu1). The type automatically changes to Linux and Version changes to Ubuntu (64 bit)

Oracle Virtual Box

Next

Memory size: 1024 MB

Memory size: 1024 MB

Next, Keep default as shown below

Memory size: 1024 MB

Create

Create

Next

Next

Next

Next

Create

Memory size: 1024 MB

Select Ubuntu1 on the left hand side and click Settings

Select Ubuntu1

In the ‘Advanced’ tab, select ‘Bidirectional’ as the 2 dropdown values. This will allow to share files between host machine (windows) and Ubuntu VM and vice-versa

Ubuntu VM and vice-versa

System > Processor tab, enter number of processors as 1

processors as 1

Storage > Select Empty > Click disc icon  > Click ‘Choose a disk file’

processors as 1

Select the Ubuntu iso file you downloaded

 Ubuntu iso

You would now see the iso image name

iso image

Click Ok

Click Ok

Click Start Click Start to start the Ubuntu installation

Click Start

Click Click  to close the warnings that you see in the above screen

close

Similarly close other warnings

Finish all the remaining steps by setting up your user id, password etc (pretty straightforward). Once the steps are completed, you would see Ubuntu VM successfully installed

Similarly close other warnings

Click applications  to show applications

Type ‘terminal’ and hit ‘Enter’, you would enter the terminal app, see below

terminal app

Double click ‘Terminal’. A terminal session would open, see below

Double click

We can now execute any linux commands

linux commands

So this is how we install an Ubuntu VM on windows host!

We would next see how to connect to Ubuntu virtual machine from our windows machine using SSH plus we will also study about important Linux concepts.

Thank you for reading!

Share On

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp
Share on tumblr
Share on email

Leave a Comment

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

Scroll to Top

Lifetime Membership Club

LIFETIME MEMBERSHIP BIG SALE - ALL LIVE COURES JUST - 7000 RS/ 99 USD
Attend All Live courses in just 7000 rs / $99 - offer ends 1st Nov 2024