You are on page 1of 13

LINUX Operating System (OS)

ON VIRTUAL MACHINE (VM)


PC24 – CDI Student Course Final Project (13 Pages) –
Rifaat Chowdhury - 699359396 - Cyber Security Specialist
Program – Nov-Dec.2022

CDI College
Managing and Maintaining PCs (A+) Part 2
Introduction
In this Project you will perform complete installations of the Linux operating system
virtually, which will allow you to run multiple operating system simultaneously, you will learn
to resolve any conflicts that occurs during installation, and you will have to document all the
steps performed during installation.

Objectives
The objectives of this project are:

• Perform an installation of the Linux operating system on your device via virtual machine.

• Troubleshoot the system

Setup a Virtual Machine to run Linux (Ubuntu) on Windows 10


1.) To make sure your computer is Hyper V enabled, open a Command Prompt

a. Left Click on Start

b. Type CMD for command Prompt and open it

c. Type systeminfo.exe and press Enter to bring up your system information.


Under Hyper-V requirements make sure everything has YES beside it. If there
is NO, you need to enable it first.

In CMD prompt, my Hyper-V Requirements reads: A hypervisor has been


detected. Features required for Hyper-V will not be displayed.
I know my computer is Hyper-V enabled because I have worked on virtual machines before.
However, this cmd prompt shows me this message instead. I have looked all over online, and no one
seems to have an answer for it. They say it is software related. But, it has no
effect on using any VM software and I am able to install an run VM’s no problem.

When checking Services.msc, I was able to see all the services that are running,
including the Hyper-V services, to also confirm that my Computer is Hyper-V enabled.

2.) Download Hyper – V for Windows 10 Home

a. Google and download a Hyper-V, I downloaded Hyper-V enabler.BAT for


windows 10 Home
b. Right Click the downloaded file and Run as administrator

c. It will open a CMD and download and install, give it time. After its done you
will have to restart computer
d. Make sure the Hyper V in windows is selected and turned on in

control panel e. Left click on Start

f. Type in Control Panel and open it

g. Open Programs

h. Select Turn Windows features on or of

i. Make sure Hyper-V > Hyper-V Management Tools and Hyper-V Platform is
clicked and restart your computer if necessary
Here I have made sure that Hyper-V is turned on withing the
Windows Features window.

3.) Next you need to create a Virtural switch to allow connection to the internet

a. Left click Start and type Hyper-V

b. Select your computer name (DEATHRIG is mine)

c. Click Action menu

d. Select Virtual Switch Manager

e. On the right select External and click Create Virtual Switch

f. Enter a description, click Apply and click OK (you may get a warning
window to disrupt network while changes are applied, accept this.)
This screenshot shows the creation of a Virtual Switch. In the description I
labelled the course I am taking, along with the OS and my name.
4.) After the Virtual switch is done we can create the Virtual Machine
a. Back on Hyper-V management window, select Action, click New and click Virtual
Machine

b. Click Next and Enter a description for your VM, I’m going to install a Linux
distro called Ubuntu, so I will name mine Virtual Machine Ubuntu for example

c. Select the default location to store the VM

d. Click Next select Generation 1 or Generation 2 if you want a UEFI based


firmware, select Generation 1 for now.
e. Click Next
f. Select the amount of Ram to allocate for you VM, since im using Ubuntu it
requires a min 2gb, you can select as much as you want but also depends on
how much your physical machine has.

I have decided to use 5000mb of ram to allocate for my VM

g. Click Next and select your switch you created in the drop down.

I did not change the name of the virtual switch I created, so the default
name stays the same as New Virtual Switch.
h. On the next screen you can keep all default settings EXCEPT make sure for
SIZE you allocate the correct amount of storage, since im using Ubuntu it
requires a minimum of 25GB, which ill use as my minimum.
I have decided to use 30 GB for my size on the virtual machine.

j. On installation options select install an operating system from a bootable


CD/DVD-ROM option and than select Image File (.ISO) option.

k. Next make sure you have downloaded the correct ISO file and it is
saved. I downloaded the most recent UBUNTU desktop ISO from
Ubuntus site at https://ubuntu.com/download/desktop
l. This is the file your going to be selecting in Image File (.iso)

m. Click Next and Click Finish

I have selected the .ISO file I have installed from the Ubuntu website and
clicked Next and Finish.
5.) Next, we want to install Ubuntu on our Virtual Machine.
a. Back on Hyper-V manager, right click the Virtual Machine you have created and click
Connect or Start or Power buttons

b. Let the Ubuntu system load and go through the installation

process. i. Select language and Keyboard


ii. Check the install third-party software for graphics and Wi-Fi hardware, flash,
MP3, and other media option

iii. Click Continue

iv.On next screen select Something Else option

v. Double click the /dev/sda drive and click continue


vi. Double click Free Space, than select the Use as drop down and choose Swap
Area

vii. Under Size select the amount of space for the swap partition, this
should be 2x of the amount of RAM allocated for Virtual Memory, for me I
selected 2GB, so I will make this 4gb and click OK.
I chose to allocate 5gb of RAM, so I have partitioned double, ex. 10000MB

viii. Double click Free Space again, Under Mount Point use the drop
down and select root / And select ext4 partition and click OK.

ix. Click install now

x. Select your time zone and continue.


xi. Create a user account with your information

xii. And that is it you’re done!

xiii. Restart your VM for the changes to take efect, after that you can
just turn on your new VM to begin using it!

After doing the final reboot, I was greeted by this screen. After
pressing enter, the system has successfully restarted and I have
successfully installed Ubuntu Linux.
Here is a screenshot of the Ubuntu Linux homescreen of the VM I installed.

If during the final restart process, you get a message to remove the installation and press Enter, but
hitting the key wont restart the VM, just click the Turn OFF button and then turn it back on again.

You might also like