College of Electrical and Mechanical Engineering.: Lab Individual Assignment

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

ADDIS ABABA SCIENCE

AND TECHNOLOGY
UNIVERSIT Y

College of Electrical and


Mechanical Engineering.
Software Engineering Department.
Introduction to Software Engineering and
Computing.
(SWEG 2101)

Lab Individual Assignment


• Prepare a manual for installation of Ubuntu operating system on
virtual machine “Oracle VM VirtualBox”

Oracle VM Virtual Box Ubuntu operating system

AUTHER NAME- YOSEF LAKEW

ID- ETS 0729/12


SUBMITTED TO: TARIKWA
SECTION-G DATE: 15/06/21
1
How to Install Ubuntu on Virtual Box
Introduction
Oracle VirtualBox is a cross-platform virtualization application. It installs on your existing Intel or
AMD-based computers, whether they are running Windows, Mac, Linux or Solaris operating systems.
VirtualBox can create and run a "guest" operating system (virtual machine) in a window of the host
operating system. The virtual machine provides a self-contained environment in which to experiment
with new software without risking damaging changes to the host operating system.

This manual willl give an instruction with step-by-step screenshots to show how to install VirtualBox
with an example of installing Ubuntu OS as a guest machine. We also explain how to share files
between the host and guest operating systems.

1, System Configuration of the Host Machine


In order to install Ubuntu on Virtual Box, you should have a physical computer with at least 4 GB of
RAM (Random Access Memory), a hard disk drive with at least 30 GB of free space (SSD is preferred
due to its higher performance). Your CPU (Central Processor Unit) must support Intel VT-x or AMD-v
hardware virtualization features which must also be enabled in UEFI/BIOS. This point is especially
important if you are looking for how to install Ubuntu 64-bit on VirtualBox.

2, Downloading the Installation Image


You need to download the Ubuntu distribution for installing Ubuntu on VirtualBox. Go to the official
Ubuntu website and download the necessary version of the Ubuntu installer. Let’s download Ubuntu
18.04.2 LTS – this is the latest long term support (LTS) Ubuntu version available at this moment. You
can find version numbers that are higher than 18.04.2, but they may not offer long term support yet.
Five-year support is provided for Ubuntu LTS distributions (both Ubuntu Desktop and Ubuntu Server).
Ubuntu LTS is more widely tested, enterprise-focused and compatible with new hardware.
Click the green Download button and save the ISO file to the custom location. In our case, the file
name is ubuntu-18.04.2-desktop-amd64.iso. Ubuntu 18 is provided only as 64-bit editions.

2
.3, Creating a New VM
In order to create a new virtual machine for installing Ubuntu on VirtualBox, open VirtualBox and click
New (Machine > New) or press Ctrl+N.

In the Create Virtual Machine screen, set the options for a new VM. In our example of installing
Ubuntu on VirtualBox, the new VM options are the following:

Name: Ubuntu18x64

Machine Folder: C:\Virtual\VirtualBox (try to use disk D, E or other non-system partitions if you have
them).

Type: Linux

Version: Ubuntu (64-bit)

Memory size: Set at least 1 GB of RAM. As our physical machine used in this example has 16 GB of
RAM, we can set 4 GB of RAM for a virtual machine to install Ubuntu on Virtual Box. You should leave
enough memory for your host operating system to operate normally.

Select the Create a virtual hard disk now option.

Hit Create to continue.

3
On the next Create Virtual Hard Disk screen, set the virtual disk file location, for example,

C:\Virtual\VirtualBox\Ubuntu18x64\Ubuntu18x64.vdi

The file size of the virtual disk: 20 GB or more.

Hard disk file type: VDI (VirtualBox Disk Image). Let’s select the native VirtualBox virtual disk format.

Storage on physical hard disk: Dynamically allocated. This option allows you to save space on your
physical disk until the virtual disk grows to its maximum allocated size.

Hit Create to finish creating a new VM to install Ubuntu on Virtual Box.

4
4, VM Configuration
A new virtual machine to install Ubuntu on Virtual Box has now been created and its name is
displayed in the list of VMs in the main Virtual Box window. You need to edit VM settings after VM
creation. Select your new VM (Ubuntu18x64 in this case) and click Settings (Machine > Settings or
press Ctrl+S).

In the Settings window, go to the Display section and select the Screen tab. Set video memory to 128
MB. Otherwise the Ubuntu installer may hang on some installation steps, keyboard may not response
etc. You can enable 3D acceleration.
Hit OK to save settings.

5
5, Select the Boot Disk Image
You don’t need to burn the ISO image onto a DVD disk as you would for installing an
operating system on a physical machine. You can mount the ISO image to the virtual DVD drive
of the virtual machine and boot a VM from this media. Let’s insert the ubuntu-18.04.2-
desktop-amd64.iso image that was downloaded from the official Ubuntu web site before,
into a virtual DVD drive of the Ubuntu18x64 VM. Open your VM settings and go to the
Storage section. Select your virtual controller used for connecting a virtual DVD drive (by
default a virtual DVD drive is empty). Click the Empty status and in the right pane near the
IDE Secondary Master, click the disc icon. In the menu that appears, click Choose Virtual
Optical Disk File and browse your Ubuntu installation ISO image file (ubuntu-18.04.2-desktop-
amd64.iso).
Hit OK to save settings. Now your VM is ready to install Ubuntu on VirtualBox

6, How to Install Ubuntu on Virtual Box VMs


At this point, your virtual machine has been successfully created and the name of your virtual
machine will now appear on the left side of the VirtualBox manager. Select Start in the toolbarto
launch your VM. Now, it is time to install Ubuntu on it.

Step 1
-The name of your virtual machine will now appear on the left side of the VirtualBox Manager.

Click on the "Start" button in the toolbar to launch your VM.


Figure 6.1 - VirtualBox Main Window with Added Virtual Machine

Step 2

-This time, you have to select your Ubuntu ISO file that you downloaded earlier. Now, click on
the folder icon and then click on the "Add" button. Then, select your Ubuntu ISO file. Click on the
"Start" button to proceed.

Figure 6.2 - Selecting the ISO File


Note:

If you get the following error:

The native API DLL was not found (C:\WINDOWS\system32\WinHvPlatform.dll)


(VERR_NEM_NOT_AVAILABLE).
VT-x is not available (VERR_VMX_NO_VMX).
To resolve this above error, use the following command in Command Prompt (Admin),"dism.exe
/Online /Disable-Feature:Microsoft-Hyper-V".
After removing this error, your Ubuntu installation will be ready to start on your VirtualBox.

Figure 6.3 - Starting the Ubuntu OS

Step 3 -Now, click on the "Install Ubuntu" button to proceed


Figure 6.4 - Click Install Ubuntu to Continue Installation

Step 4-Select your desired "keyboard layout" and click on the "Continue" button to
proceed.

Figure 6.5 - Choosing Keyboard Layout

Step 5 Use the default option as "Normal Installation" with the "Download updates while installing
Ubuntu" and click on the "Continue" button.

Figure 6.6 - Choose Normal Installation

9
Step 6 Select the default option as the "Erase disk and Install Ubuntu" and click on the "Install Now"
option to proceed.

Figure 6.7 - Select Install Now

Step 7 A warning prompt will appear on the screen and click on the "Continue" button to ignore this
warning.

Figure 6.8 - Click Continue

Step 8 Choose your time zone on the map and click Continue.

10
Figure 6.9- Choosing Time Zone

Step 9 Now, set your user account here by filling the necessary details and click on the "Continue"
button to proceed.

Figure 6.10 - Fill in Important Information

11
Now, the installation process will begin.

Figure 6.11 - Installing Ubuntu

Step 10 Now, restart your system by clicking on the "Restart Now" option.

Figure 6.12 - Click Restart Now

Congratulations! you have successfully installed and configured

Ubuntu on Windows 10 using VirtualBox and the Welcome

screen will appear.

12
Figure 6.13 - Ubuntu Welcome Page

8, Conclusion
This manual explained how to install Ubuntu on Virtual Box. This process is not difficult – you should
create a new VM, configure that VM, select a boot disk ISO image and boot from that installation
image. Further installation process of Ubuntu on a Virtual Box VM is similar to installing Ubuntu on a
physical machine. After installing Ubuntu on Virtual Box, don’t forget to install Virtual Box Guest
Additions on a guest OS and Virtual Box Extension Pack on a host OS to unlock extra features, improve
performance and user experience.

References:
- https://www.tutorialspoint.com/ubuntu/ubuntu_overview.htm
- https://askubuntu.com/questions/319214/hardware-requirements-for-ubuntu-and-
virtualization
- https://www.virtualbox.org/
- https://help.ubuntu.com/lts/installation-guide/s390x/ch01s01.html
- https://www.lifewire.com/install-ubuntu-linux-windows-10-steps-2202108

13

You might also like