University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Operating System
Lab No 1
Ubuntu Installation and Setting up Virtual Machine
Faculty of Information Technology
UCP Lahore Pakistan
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
TOPIC TO BE COVERED
Introduction to VirtualBox
Installation of Virtual Box
Setting up the VirtualMachine
InstallingUbuntu
Objectives
Student get familiar with Virtualbox
Student able to install Ubuntu in its laptop/PC in VirtualBox
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Virtual Box – An Introduction
Virtual Box is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not
only is Virtual Box an extremely feature rich, high performance product for enterprise customers, it is also the
only professional solution that is freely available as Open Source Software under the terms of the GNU General
Public License (GPL) version 2.
When we describe Virtual Box as a "virtualization" product, we refer to "full virtualization", that is, the particular
kind of virtualization that allows an unmodified operating system with all of its installed software to run in a
special environment, on top of your existing operating system. This
environment,calleda"virtualmachine",iscreatedbythevirtualizationsoftwarebyintercepting access to certain
hardware components and certain features. The physical computer is then usually called the "host", while the
virtual machine is often called a "guest". Most of the guest code runs unmodified, directly on the host computer,
and the guest operating system "thinks" it's running on real machine. Learn more athttps://www.virtualbox.org/
Now we will start Installing Virtual Box in Windows, to install Ubuntu as virtual machine
Installing Virtual Box
You can download Virtual Box from following link.
VirtualBox Download
ClickonWindowshosts.Aftercompletingthedownloadclickon .exeforstartingthe installation.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step1: Following Welcome screen will appear.
Click “Next” button.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step2: Click Next
Step3: Custom Setup for different features Window is displayed. No need to change anything, just
press “Next” button.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step 4: Warning window is displayed. Click Yes.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step5: “Ready to Install” window is displayed. Press “Install” button.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step6: Finally after setup, installation will start and following window will be displayed with status bar.
Installation continues…
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Meanwhile Windows Security will ask for the confirmation of installing hardware. e.g below.
Press Install.
Step7: Installation Complete. Press “Finish” button.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
After installation completed, you can find its icon on desktop.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Setting up Virtual Machine
Step1: Click the Virtual Box icon and following window will be opened.
Click on “New” button on top of menu bar.
Step2: Step1 will lead you to setup a new virtual machine.
Following window will be opened to setup virtual machine name and type. Press Next.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step3: By pressing “Next”, following window will be opened to setup memory size. Minimum size
is 1024MB. Allocate at least 2GB if you have 8GB or more RAM.
Press Next.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step4: By pressing “Next”, “Hard drive” window will be opened. Select “Create a virtual hard drive now”.
Press “Create” button.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step 5: By default, VDI option is selected. Do not make any change and just press “Next”.
Step6: Select “Dynamically allocated”.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step7: Following window will be opened to setup virtual hard drive size. Here 15 GB is selected but you must
select it greater than 100GB if free space is available. Allocate at least 20GB.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Press “Create” button.
Step8: Following window will appear with one virtual machine named “Ubuntu” will be added in left
panel. Click on “Start” button highlighted.
Step9: In order to attach ISO image with this virtual machine.
9.1 Click on “Settings” button. Following settings window willopen.
9.2 Go to Storage Option. Under “Storage Tree” go to Controller:IDE.
9.3 Select “Empty” option. By selecting “Empty” Attributes will bechanged.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
9.4 Click on CD icon pointed by arrow in belowimage.
9.5 By clicking at icon of CD, following menu will bedisplayed.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
9.6 By clicking on “Choose a virtual CD/DVD disk file… An “Open Window” willappear.
Select .iso(Downloaded From Ubuntu website) image and click “Open” button.
9.7 Now it’s added here. Press “OK”button.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step 10: Click “Start” button and following window will appear.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Installing Ubuntu
Step1: Now you will start installing Ubuntu from ISO image just added in virtual machine named
“Ubuntu”
When following screen will appear
Step2: Select “Install Ubuntu” button.
Step3: Click “Install now”
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step4:
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step5: Choose Language
Step6: Give username and password information.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step7: Following welcome window will appear
Step8: Restart system.
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step 9: Press “Enter”. Login into Ubuntu
Instructor Name Here, Department of Software Engineering
University of Central Punjab
(Incorporated by Ordinance No. XXIV of 2002 promulgated by Government of the Punjab)
FACULTY OF INFORMATION TECHNOLOGY
Step10: Desktop of Ubuntu displayed.
Step11: After Installation completed, go to settings and delete Storage link to iso image.
Instructor Name Here, Department of Software Engineering