Virtual Lab Final
Virtual Lab Final
TINDIVANAM
(A Constituent College of Anna University, Chennai)
2024-2025
UNIVERSITY COLLEGE OF ENGINEERING
TINDIVANAM
(A Constituent College of Anna University, Chennai)
2024-2025
This his is to certify that this is a bonafide record of the work done by
5
6
EX.NO:01 Create type 2 virtualization in VMWARE or any equivalent Open
DATE: Source Tool
AIM:
To create a type 2 virtualization in Oracle VirtualBox and allocate the primary memory, second
storage in the virtual HDD as per Ubuntu 18.0.4 OS requirement. Then, install the guest OS Ubuntu 18.0.4
in this created virtual machine.
ALGORITHM:
Procedure:
Installing the Oracle VM VirtualBox hypervisor in the host (Here, Windows 11 OS is the host – It depends
on the OS on which this hypervisor is installed)
Step 1:
Download the oracle VirtualBox Manager
Step 2: Select Windows Hosts to download.
Step 4: Browse for the downloaded Virtuabbox-7.1.6-167084-Win.exe. Then, click next to install the
VirtualBox 7.1.6.
Creating a VM hardware (i.e. a shared hardware) in the host (Here, OS is the host)
Step 1:
Open oracle VirtualBox Manager
Step 4: Select the Primary Memory you want to allocate to your VM hardware which is going to
install Ubuntu 18.0.4 (Bionic Beaver) and run this OS and the future applications.
Base Memory: 2048 MB (defalt memory requirement shown by the VM)
Here, we can see the total memory (8192 MB = 8GB) and the needed primary memory (2048MB = 2 GB)
Processors: 1 CPUs needed (totally 8 logical CPUs available in my system)
I have increased it to two.
Step 5: Select the you want to allocate to your VM hardware which is going to install Ubuntu 18.0.4
(Bionic Beaver) and run this OS and the future applications.
By default, it says 25.00 GB of virtual Hard Disk is needed.
It also, shows the total available HDD disk space: In this case, it is 2.00 TB. (It will change depending on
your machine).
Step 6: Summary of the VM hardware is listed.
We have to verify it and click the Finish option.
Next step is, we have to install OS into this Virtual Machine (VM).
Installing the Guest operating system in the VM hardware created (i.e. a shared hardware) in the host
(Here, Windows OS is the used as the host)
Step 1: Open the VM with the configurations.
At present, the VM is in the powered off state.
Now, when your system is getting booted, the BIOS in the VM hardware, will try to look for the Boot Disk
in the order Floppy, Optical, Hard Disk.
At present, we don’t have a floppy disk in the physical system and hence, we cannot virtualize it.
Then, Optical disk – It is the place where we have already shown to point to the Ubuntu 18.0.4 (Bionic
Beaver) operation system.
Finally, Hard disk – It is completed empty and has no Boot Disk.
Hence, when we boot the machine, the BIOS software will look for the Boot Disk first in Floppy which will
cannot find. Then, it will try to find it in the Optical Disk (i.e. the CD Drive). It will find the Ubuntu iso
image in that drive. Hence, it has found the Boot Disk.
From there, the installation process will start.
Step 3: select the option try or install ubuntu
Completed.
Now, you can install a C compiler and run your C program.
You can install java to develop and run your applications.
Result:
Thus a type II hypersivor has been installed in the host successfully and the Ubuntu 18.0.4 OS is running
successfully in the host.
EX.NO:02 Create type 2 virtualization on ESXI 6.5 server
DATE:
AIM:
To install VMWare ESXi 6.5 hypervisor on top of a type 2 hypervisor called VMWare Workstation
Pro 7 which is running on a Windows 11 host. Then, to access this ESXi 6.5 hypervisor remotely from a web
browser.
ALGORITHM:
Step 1: Download and install the VMWare Workstation Pro 7 which is a type II hypervisor.
Step 2: Download the type I hypervisor VMWare ESXi hypervisor from the Internet archives.
Step 3: Open the VMWare Workstation Pro 7 hypervisor and create a virtual machine with the ESXi hypervisor
as the boot ISO.
Step 4: Restart the Virtual Machine and install ESXi hypervisor (with a username and a password) as a guest
OS in the VMWare Workstation Pro 7.
Step 5: After installation, restart the ESXi hypervisor and log in to it.
Step 6: Access the ESXi hypervisor from command prompt using the url shows the ESXi hypervisor
homepage.
Step 7: Access the ESXi hypervisor from the web browser using the url shows the ESXi hypervisor homepage.
Step 1:
Download the VMWare ESXi 6.5 server from this archive downloads.
https://archive.org/details/esxi-6.5.2-8294253-nec-6.5.2-01
(It is not able to be downloaded from the Broadcom website who is the official provider of VMWare ESXi
downloads).
Step 2: Open VMWare workstation application from the desktop or from the start menu to create a new VM.
(a) Here, ESXi 6.5 hypervisor is going to be installed as the guest OS.
(b) So, browse the file explorer to point to the ESXi 6.0 file.
(c) Write the Virtual machine name.
Step 1:
In this Virtual Machine, Click on the option ‘Power on this virtual machine’.
192.168.159.128
(i) Open the browser (I have opened Microsoft Edge browser in my system)
(iv) Now, we have logged into the server from the web browser as follows:
Note:
To create a VM in using this hypervisor, we can create it by clicking the ‘Create/Register VM’ in the menu.
Result:
Thus the type I ESXi hypervisor has been installed on top of the type II hypervisor VMWare
Workstation Pro 7 which has been running on top of the Windows 11 host.
EX.NO:03 Install KVM in Linux
DATE:
AIM:
To write the step by step procedure to install the KVM as a Type II hypervisor
ALGORITHM:
Step 2: In the VM in which we have already installed Ubuntu 18.0.4, enable the
Step 5: Login to the Ubuntu 18.0.4 OS with the corresponding username and
the password.
Step 6: Check whether the CPU cores in the Ubuntu OS support virtualization.
Step 7: From the terminal, install qemu, libvirt-bin, bridge-utils, virtinst, virt-
manager packages.
Step 8: Add the present user under the installation done to the libvirt and kvm
groups.
Step 9: From the terminal, type virt-manager to open the virtual machine
manager (VMM) or from the GUI, type virt-manager in the applications tab to
Step 10: The virtual machine manager which provides GUI to the KVM
hypervisor, will get connect to the qemu. If not connected, then error and we
need to check it. If we want, we can install a new guest OS on top of this KVM
as a nested OS.
Step 11: Exit VMM, shutdown the Ubuntu Guest OS and stop the procedure.
Procedure:
KVM (Kernel-based Virtual Machine) is an open-source virtualization
technology built into the Linux kernel. It allows you to run multiple isolated
guest virtual machines based on Linux or Windows. Each guest has its own
operating system and dedicated virtual hardware such as CPU(s), memory,
network interfaces and storage.
In this experiment, we are going to use Ubuntu 18.04 (Which is already
installed as a guest OS in the Windows host).
(i) Open VM VirtualBox Manager (in the Windows host)
(ii) In the VM in which we have already installed Ubuntu 18.0.4,
enable the processor’s configuration Nested VT-x/AMD-V in the
system settings.
Note:
If the option Nested VT-x/AMD-V is greyed out, follow the steps below:
1. Inside the path
C:\Program Files\Oracle\VirtualBox
Open Command Prompt on Windows and execute the following
command:
$ VBoxManage modifyvm <VirtualMachineName> --nested-hw-virt on
replace the VirtualMachineName with the name of your virtual machine, given
during the time of creation.
Now after stopping any currently running vm, you can check the box for
enabling nested VM option.
(iii) Start the VM with Ubuntu OS installed in it.
(iv) Then, do the following to install KVM in the Ubuntu (linux)
Prerequisites
To be able to run guests with more than 2 GB of RAM, and to host both
32-bit and 64-bit KVM guests, you must have a 64-bit host system.
Before continuing with the installation, make sure your Ubuntu host
machine supports KVM virtualization. The system should have either an Intel
processor with the VT-x (vmx), or an AMD processor with the AMD-V (svm)
technology support.
Enter the following grep command to see if your processor supports hardware
virtualization:
To check if VT is enabled in the BIOS, use the kvm-ok tool, which is included
in the cpu-checker package. Run the following commands as root or user with
sudo privileges to install the package:
Step 1: sudo apt update
Note:
if you face issues with sudo command execute the following commands
su -
(if prompted for password, give the password if entered, else default password
“changeme” )
usermod -a -G sudo <username>
restart before proceeding
Step 2: sudo apt install cpu-checker
Step 3: kvm-ok
If the processor virtualization capability is not disabled in the BIOS the
command will output:
INFO: /dev/kvm exists
KVM acceleration can be used
Run the brctl tool to list the current bridges and the interfaces they are
connected to:
(i) brctl show
Output:
Result:
Thus, the step by step procedure to install the KVM as a Type II
hypervisor in the Linux Operating system has been successfully done and the
results are verified.
EX.NO:04 Create Nested Virtual Machine(VM under another VM)
DATE:
AIM:
To write the step by step procedure to install Lubuntu VM as a nested guest OS
on top of the KVM hypervisor.
Algorithm:
Step 1: Open Oracle VM Virtual Box.
Step 2: Open the VM in which we have already installed Ubuntu 18.0.4. Now,
power on that VM with Ubuntu OS. Login to the Ubuntu 18.0.4 OS with the
corresponding username and the password.
Step 3: Download lubuntu OS (for the x64 ISA).
Step 4: We have already installed KVM as a type-II hypervisor on this Ubuntu
OS. Open that KVM.
Step 5: Create a VM with the install media path set to the downloaded lubuntu
iso image.
Step 6: Follow the installation procedure to install minimal lubuntu OS
Step 8: Login to the lubuntu OS
Step 9: install gcc compiler
Step 10: Run the hello world C program.
Step 11: Exit VMM, shutdown the Ubuntu Guest OS and stop the procedure.
Procedure:
Step 1: Open the Oracle VM Virtual Box installed on your Windows 11 OS.
Step 5: In the KVM, Create a VM with the install media path set to the
downloaded lubuntu.iso image.
In the KVM, Click on the File Menu. And, click on the option “New Virtual
Machine”
Click forward and now, you can choose the ISO image path.
It is to be noted that, the present alpine volumes are used by the previous
installation.
Now, to make a fresh installation, click on the option “Browse local” at the
bottom of this window.
Now, locate the ISO image downloaded from the Internet. Double click the
image and then, you will come back to the new VM creation page.
Allocate 70% memory and 50% CPU resources to the nested OS.
In the Customize Section, Select the Minimal Installation to make the process
Faster.
Select The Erase Disk Option and Click Next.
Check the Summary and Click Install Now and wait a few minutes to complete
installation.
Once Installation is Complete, click “Restart Now” to boot into the nested OS
We can see that “gcc” has not been installed, so we can install it using the
following command
sudo apt install gcc
While gcc is being installed, we can create a new C program using VIM editor,
type
vim <filename>.c
and press Enter
Right now we cannot write into the editor to enable the input stream, press “I”,
You can notice the bottom left now saying “INSERT”
Once we are out of VIM editor, we can check for the file using ls command and
compile it using
gcc <filename>.c
followed by
./a.out
And we can see the “hello world” printed in the console.
Result:
Thus, the experiment to install the nested VM on top of another VM has
been successfully completed and the results are verified.
EX.NO:05 Create a VLAN using Cisco Packet Tracer
DATE:
AIM:
To write the step by step procedure to install the Cisco Packet Tracer and
to create a Virtual LAN (VLAN) in it.
Algorithm:
Step 1: Open the Cisco Packet Tracer application.
Step 2: Add four PCs with fast Ethernet ports and a 4-port Switch.
Step 3: Create a LAN network with those four systems using the IP Addresses
192.168.1.2, 192.168.1.3, 192.168.1.4, 192.168.1.5 with the subnet mask
255.255.255.0
Step 4: From system 1 with the IP Address 192.168.1.2, ping all other systems.
It has to work.
Step 5: From system 2 with the IP Address 192.168.1.3, ping all other systems.
It will work.
Step 6: Create a new VLAN with the VLAN ID 10.
Step 7: Add the system with the IP Address 192.168.1.2 and the system with
the IP Address 192.168.1.3 to VLAN 10.
Step 8: Create a new VLAN with the VLAN ID 11.
Step 9: Add the system with the IP Address 192.168.1.4 and the system with
the IP Address 192.168.1.5 to VLAN 11.
Step 10: From system 1 with the IP Address 192.168.1.2, ping all other
systems. It will work only for the system (192.168.1.3) which is in the
same VLAN 10.
Procedure:
Step 1:
Open the Cisco Packet Tracer application.
If login is requested, login using the email id.
Step 2: Add four PCs with fast Ethernet ports and a 4-port Switch.
Adding system 1:
Then, click on the FastEthernet0 option in the left hand side list of options.
Similarly, create the 3rd PC and set name it as PC3 with the IP Address
192.168.1.4 and subnet mask 255.255.255.0
Similarly, create the 4th PC and set name it as PC4 with the IP Address
192.168.1.5 and subnet mask 255.255.255.0
Now, we add a switch. To do that,
(i) In the bottom left corner, select the network devices.
(iv) Now, to add a cable from PC1 to the switch, click on the
in the bottom-left panel.
(v) Drag the copper straight-through cable and connect one end to
the PC1 and another end to the FastEthernet Port 0/1 of the
switch.
(vii) Similarly, connect the PC3 to the FastEthernet Port 2/1 of the
Switch. Also, connect the PC4 to the FastEthernet Port 3/1 of the
Switch.
That is,
Step 4: From system 1 with the IP Address 192.168.1.2, ping all other systems.
It has to work.
(i) First let us ping to system 192.168.1.3
Click on PC1 to open the command prompt.
Now, ping to the system PC2 with IP Address 192.168.1.3. Also, ping
to PC3 with the IP Address 192.168.1.4
(iv) See the present VLANs in the switch (The default VLAN is 1 for all
the ports)
Switch# show VLAN brief
From this figure, we understand that, there are 6 ports in this switch
and all of them are assigned to VLAN id 1.
(v) To create a VLAN, type config and then press enter.
Step 7: Add the system with the IP Address 192.168.1.2 and the system with
the IP Address 192.168.1.3 to VLAN 10.
We know that, system with IP address 192.168.1.2 is connected to the
switch interface FastEthernet 0/1. By default, it is at VLAN 1. Hence, we move
that, interface to the VLAN id 10.
(i) Enter the configuration mode in the switch.
(ii) Type interface FastEthernet port 0/1 in the command line interface
of the switch.
It will allow us to enter into the configuration mode for the interface
fastEthernet Port 0/1
(iii) Set the interface FastEthernet 0/1 to access port using the command
Switchport mode access
Similarly, add the fastEthernet port 1/1 of the switch to the VLAN 10.
This means, PC2 is connected to switch’s fastEthernet port 1/1 and
hence, this PC2 is indirectly present in VLAN 10.
Step 9: Add the system with the IP Address 192.168.1.4 and the system with
the IP Address 192.168.1.5 to VLAN 11.
Now, as done in Step 7, configure the switch interfaces 2/1, 3/1 to the
VLAN id 11.
Step 10: From system 1 with the IP Address 192.168.1.2, ping all other
systems. It will work only for the system (192.168.1.3) which is in the
same VLAN 10. And, it will not work for the system (192.168.1.4)
which is not in the same VLAN 10. For 192.168.1.5 also, it will not
work.
Result:
Thus, we have created VLANs using the Cisco Packet Tracer and
understood the concept of sharing resources in a VLAN.
EX.NO:06 A Desktop Virtualization using Chrome Remote Desktop
DATE:
AIM:
To write the step by step procedure to do desktop virtualization using the
Chrome Remote Desktop application.
Step 2: In PC2, click on the option, “Share this screen”. It will generate an
access
code.
Step 3: In PC1, type the access code in under “Connect to another computer” to
remotely access the desktop of PC2.
Step 4: In PC2, allow the screen sharing option.
Step 5: In PC1, access the PC2’s desktop and all its application remotely.
Result:
Thus, the experiment to perform desktop virtualization using the chrome
remote desktop application has been successfully completed and the results are
verified.
EX.NO:06 B Desktop Virtualization using VNC application
DATE:
AIM:
To write the step by step procedure to do desktop virtualization using the VNC
application.
Step 2: Configure the VNC server: You'll typically need to set a password to
secure the connection and specify the desired port number.
Step 3: Ensure the server is running: Make sure the VNC server is active and is
listening for connections.
Step 4 Open the browser and add the users to connect to this server using their
email id.
Step 4: Enter the password: If the VNC server requires a password, enter it to
establish the connection.
In our case, we have given 12345678 as password.
Now, the client is connected to the server.
But, if you take screenshot, it is done remotely in the server. You cannot take
screenshot of server system in this client viewer.
But, you can do all the desktop works in the VNC server system from here.
Result:
Thus, the experiment to perform desktop virtualization using the RealVNc application has been
successfully completed and the results are verified.For VNC Server in PC2:
Setting up the Remote Computer (VNC Server):
Step 1: Install a VNC server: Download RealVNC Server in this system.
Then, install the VNC server application
Step 2: Configure the VNC server: You'll typically need to set a password to
secure the connection and specify the desired port number.
Step 3: Ensure the server is running: Make sure the VNC server is active and is
listening for connections.
Step 4 Open the browser and add the users to connect to this server using their
email id.
After adding the user, an email is sent to the user.
Algorithm for VNC Client in PC1:
(Connecting from the Local Computer (VNC Viewer):
Step 1: Open your gmail and accept the invite from the VNC server. Now,
Download Install the VNC viewer application.
Step 2: Open the VNC viewer, it will show the server’s Name.
Step 4: Enter the password: If the VNC server requires a password, enter it to
establish the connection.
In our case, we have given 12345678 as password.
But, you can do all the desktop works in the VNC server system from here.
Result:
Thus, the experiment to perform desktop virtualization using the RealVNc application has been successfully
completed and the results are
verified.
EX.NO:7A Shrink and Extend Virtual Disk
DATE:
Aim:
To find the procedure of Shrink a virtual disk involves reducing its size to reclaim
unused space and extend a virtual disk allows you to increase its size to accommodate more
data.
Procedure:
Shrink a Virtual Disk:
Step1: Inside the virtual machine, delete unnecessary files and empty the recycle bin/trash to
free up space.
Step 2: Defragment the virtual machine's disk to move all the data to the beginning of the
disk.
Step 3: Shutdown the virtual machine.
Step 4: On the host system, open the virtualization software
Step 5: Navigate to the virtual machine's settings or configuration.
Step 6: Select the virtual disk you want to shrink.
Step 7: Look for an option to shrink or compact the disk and follow the prompts.
Step 8: The process might take some time, and it's essential to back up your virtual machine
before proceeding, as data loss can occur in some cases.
Extend Virtual Disk:
Step 1: Shutdown the virtual machine.
Step 2: On the host system, open the virtualization software (e.g., VMware, VirtualBox).
Step 3: Navigate to the virtual machine's settings or configuration.
Step 4: Select the virtual disk you want to extend.
Step 5: Look for an option to increase or extend the disk and follow the prompts.
Step 6: Specify the new size for the virtual disk (make sure to allocate enough space for your
needs).
Step 7: The process might take some time, and it's crucial to back up your virtual machine
before proceeding, as extending the disk involves modifying the underlying file system.
Output:
,
Result:
Thus, the shrink and extend of virtual disk has been created and run
Successfully.
EX.NO:7B Create, Manage, Configure and schedule snapshots
DATE:
Aim
To find the procedure of Creating, managing, configuring, and scheduling snapshots is
a fundamental part of virtual machine management.
Procedure:
Step 1: Creating a Snapshot: To create a snapshot, follow these steps:
a. Select the virtual machine in the management interface (e.g., vSphere Client).
b. Right-click on the virtual machine and choose "Snapshot" or "Take Snapshot."
c. Provide a name and description for the snapshot.
d. Optionally, select the memory state to capture the virtual machine's running state
(requires the virtual machine to be powered off).
e. Click "OK" to create the snapshot.
Step 2: Managing Snapshots: Managing snapshots involves tasks such as viewing, reverting,
deleting, and consolidating snapshots.
a. Viewing Snapshots: To see the list of snapshots for a virtual machine, navigate to the
"Snapshots" tab in the virtual machine's details.
b. Reverting to a Snapshot: To revert a virtual machine to a specific snapshot, right-click
on the snapshot and choose "Revert to Snapshot." This action will roll back the virtual machine
to the state captured in the selected snapshot.
c. Deleting Snapshots: To delete a snapshot, right-click on the snapshot and choose
"Delete Snapshot." You can choose to delete the snapshot only or delete the snapshot and
consolidate its changes into the base virtual machine disk.
d. Consolidating Snapshots: If you have multiple snapshots, you can perform a
"Snapshot Consolidation" to merge all snapshots into the base disk. This helps to reduce
storage requirements and improves performance.
Step 3: Configuring Snapshot Settings: The snapshot settings allow you to define how
snapshots are managed and stored.
a. Snapshot Location: Configure the location where snapshot files are stored, which can
be on the same data store as the virtual machine or on a different storage location.
b. Snapshot Quiescent: Enable or disable the use of VMware Tools to quiesce the file
system inside the virtual machine before taking a snapshot. This helps ensure application
consistency during the snapshot.
Output:
Result:
Thus, the experiment to perform Create, Manage, Configure and schedule snapshots are
completed and the results are Verified.