Professional Documents
Culture Documents
College of Electrical and Mechanical Engineering.: Lab Individual Assignment
College of Electrical and Mechanical Engineering.: Lab Individual Assignment
College of Electrical and Mechanical Engineering.: Lab Individual Assignment
AND TECHNOLOGY
UNIVERSIT Y
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.
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
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.
3
On the next Create Virtual Hard Disk screen, set the virtual disk file location, for example,
C:\Virtual\VirtualBox\Ubuntu18x64\Ubuntu18x64.vdi
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.
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
Step 1
-The name of your virtual machine will now appear on the left side of the VirtualBox Manager.
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.
Step 4-Select your desired "keyboard layout" and click on the "Continue" button to
proceed.
Step 5 Use the default option as "Normal Installation" with the "Download updates while installing
Ubuntu" and click on the "Continue" button.
9
Step 6 Select the default option as the "Erase disk and Install Ubuntu" and click on the "Install Now"
option to proceed.
Step 7 A warning prompt will appear on the screen and click on the "Continue" button to ignore this
warning.
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.
11
Now, the installation process will begin.
Step 10 Now, restart your system by clicking on the "Restart Now" option.
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