13.6.1 Lab - Install Linux in a Virtual Machine and Explore the GUI
13.6.1 Lab - Install Linux in a Virtual Machine and Explore the GUI
Objectives
Name: Luong On
Class: CISN 342
ID: 2047032
Part 1: Prepare a Computer for Virtualization
Part 2: Install a Linux OS on the Virtual Machine
Part 3: Explore the GUI
Background / Scenario
Computing power and resources have increased tremendously over the last 10 years. A benefit of multi-core
processors and large amounts of RAM is the ability to install multiple operating systems through the use of
virtualization on a computer.
With virtualization, one or more virtual computers can operate inside one physical computer. Virtual
computers that run within physical computers are called virtual machines. Virtual machines are often called
guests, and physical computers are often called hosts. Anyone with a modern computer and operating system
can run virtual machines.
In this lab, you will install a Linux OS in a virtual machine using a desktop virtualization application, such as
VirtualBox. After completing the installation, you will explore the GUI interface. You will also explore the
command line interface using this virtual machine in a lab later in this course.
Required Resources
Computer with a minimum of 2 GB of RAM and 10 GB of free disk space
High-speed Internet access to download Oracle VirtualBox and Linux OS image, such as Ubuntu Desktop
Instructions
Part 1: Prepare a Computer for Virtualization
In Part 1, you will download and install desktop virtualization software and a Linux OS image. Your instructor
may provide you with a Linux OS image.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
b. Choose and download the appropriate installation file based on your operating system.
c. After the VirtualBox installation file is downloaded, run the installer and accept the default installation
settings.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
b. In the Name and operating system screen, type Ubuntu in the Name field. For the Type field, select
Linux. In the Version field, select the corresponding downloaded version. Click Next to continue.
c. In the Memory size screen, increase the amount of RAM as long as the amount of RAM for the virtual
machine is in the green area. Going beyond the green area would adversely affect the performance of the
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
d. In the Hard disk screen, click Create to create a virtual hard disk now.
e. In the Hard disk file type screen, use the default file type settings of VDI (VirtualBox Disk Image). Click
Next to continue.
f. In the Storage on physical hard disk screen, use the default storage settings of dynamically allocated.
Click Next to continue.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
g. In the File location and size screen, you can adjust the hard drive and change the name and location of
the virtual hard drive. Click Create to use the default settings.
h. When the hard drive creation is done, the new virtual machine is listed in the Oracle VM VirtualBox
Manager window. Select Ubuntu and click Start in the top menu.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
b. In the Oracle VM VirtualBox Manager window, click Start in the top menu.
b. Follow the on-screen instructions and provide the necessary information when prompted.
Note: If you are not connected to the Internet, you can continue to install and enable the network later.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
c. Because this Ubuntu installation is in a virtual machine, it is safe to erase the disk and install Ubuntu
without affecting the host computer. Select Erase disk and install Ubuntu. Otherwise installing Ubuntu
on a physical computer would erase all data on the disk and replace the existing operating system with
Ubuntu. Click Install Now to start the installation.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 10 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
f. The Ubuntu OS is now installing in the virtual machine. This will take several minutes. When the
Installation is complete message displays, return to the Oracle VM Virtualbox Manager window. Right-
click Ubuntu and select Settings. In the Ubuntu – Settings window, click Storage in the left pane. Click
the mounted Ubuntu image in the middle pane. In the right pane, click the CD symbol and click Remove
Disk from Virtual Drive. Click OK to continue.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 11 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
c. Click Run to install the additions. When prompted for a password, use the same password that you used
to log on. Click Authenticate to continue.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 12 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
d. If the computer was not connected to the Internet during the installation, click Devices > Network
Settings in the Oracle VirtualBox menu. Enable network adapters and configure the proper setting for
network connections as necessary. Click OK.
e. When the installation of the additions is done, restart the virtual machine again. Click the menu in the
upper-right corner and click Shut down. Click Restart to restart Ubuntu.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 13 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
b. Open a web browser. Depending on the Linux distribution, you may need to search for a web browser or
there is a link to a web browser already on the Desktop.
c. Locate a terminal emulator to access the command line interface. You will be using a terminal emulator in
later labs.
d. Explore the installed Linux distribution and locate a few applications that you may use.
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 14 of 15 www.netacad.com
Lab - Install Linux in a Virtual Machine and Explore the GUI
Reflection Question
What are the advantages and disadvantages of using a virtual machine?
Using a virtual machine allows you to run multiple operating systems on a single physical machine, which can
save space and resources. It also provides a sandboxed environment for testing software or running
applications in isolation. However, virtual machines can sometimes suffer from performance overhead due to
the emulation layer, and they may not be suitable for applications requiring direct access to hardware
resources.
Type your answers here.
End of Document
2015 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 15 of 15 www.netacad.com