Virtualization Lab
Virtualization Lab
Virtualization Lab
Expt.
Date Title of Experiment Page Signature
No
Install Guest OS on that VM
1
WARE
CreateRAID5 volume
1
Ex.1: Create type2 virtualization in VMWARE or any equivalent Open Source
Tool. Allocate memory and storage space as per requirement. Install Guest OS
on that VMWARE
Aim:
Procedure:
Step2: Create a New Virtual Machine Open VMware Workstation Player Click on
"Create a New Virtual Machine" or go to File> New Virtual Machine
2
The Virtual machine configuration Wizard will appear. Choose “Typical”
configuration and click “Next”.
Choose the installation method for the guest OS. You can either install
from a disc or image file (ISO) or choose to install later. If you have
the ISO file for your guest OS, select it during this step
Click “Next”
Enter the name of your virtual machine and choose the location where
you want to save it.
Select the appropriate guest operating system and version. For example,
if you are installing Windows 10, choose "Windows" as the guest OS and
"Windows 10 x64" as the version.
Click "Next.
3
Step7: Configure Virtual Machine Hardware
Allocate memory: Choose how much RAM you want to allocate to the
virtual machine. Make sure to leave enough memory for your host OS to
run smoothly as well.
Allocate storage: Choose whether to store the virtual disk as a single file
or split into multiple files. Specify the disk size, and you can also choose
to allocate all disk space now or let it grow as needed.
Click "Next."
Step8: Customize Hardware (Optional)
If needed, you can customize the virtual machine's hardware settings like
CPU cores, network adapters, graphics memory, etc. Otherwise, you can
leave them as default.
Click "Finish" once you are satisfied with the settings.
Step9: Install Guest OS
Start the virtual machine you just created. The virtual machine will boot
from the ISO or installation media you provided earlier.
Follow the standard installation process for your guest OS.
Step10: Install VM ware Tools (Optional but Recommended)
4
OUTPUT:
RESULT:
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 there cycle
bin/trash to free up space.
Step2: Defragment the virtual machine's disk to move all the data to the beginning
of the disk.
Step3: Shut down the virtual machine.
Step4: On the host system, open the virtualization software
Step5: Navigate to the virtual machine's settings or configuration.
Step6: Select the virtual disk you want to shrink.
Step7: Look for an option to shrink or compact the disk and follow the prompts.
Step8: The process might take sometime, and it's essential to backup your virtual
machine before proceeding, as data loss can occur in some cases.
Step2: On the host system, open the virtualization software (e.g., VMware, Virtual
Box).
Step3: Navigate to the virtual machine's settings or configuration.
6
Step5: Look for an option to increase or extend the disk and follow the
prompts.
Step6: 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:
7
8
Result:
Thus, the shrink and extend of virtual disk has been created and run
Successfully.
9
Ex2 (b): Create, Manage, Configure and schedule snapshots
Procedure:
Step1: Creating a Snapshot: To create a snapshot, follow these steps:
Output:
11
Result
12
Ex.3(a) Create Spanned, Mirrored and Striped volume
Aim:
Procedure:
c. Identify the disks you want to use in the spanned volume. They should
be unallocated or have empty space available.
f. Assign a drive letter or mount point to the new volume and format it
with a file system.
b. Right-click on one of the disks you want to use in the mirror and
choose "New Mirrored Volume."
c. Select the additional disk(s) to mirror the first disk, and then allocate
space for the mirrored volume.
d. Assign a drive letter or mount point to the new volume and format it
with a file system. e. Windows will start the synchronization process, where
data is copied from the source disk to the mirror disk(s).
13
b. Right-click on one of the disks you want to use in the stripe and
choose "New Striped Volume."
c. Select the additional disk(s) to include in the stripe, and then allocate
space for the striped volume. d. Assign a drive letter or mount point to the new
volume and format it with a file system.
Output:
14
Result:
15
Ex. 3(b): Create RAID 5 Volume:
Aim:
Procedure:
Step 1: Backup Data: Before creating the RAID 5 volume, back up all your
critical data to ensure it is safe in case of any unforeseen issues.
Step 2: Initialize and Convert Disks to Dynamic: If your disks are currently
basic disks, you need to convert them to dynamic disks to create a RAID 5
volume. Follow these steps:
c. IdentifythedisksyouwanttouseintheRAID5array.Theyshouldbe
unallocated or have empty space available.
Step 3: Create the RAID 5 Volume: Once you have converted the disks to
dynamic, you can proceed to create the RAID 5 volume:
a. Right-clickononeofthedisksyouwanttouseintheRAID5array.
c. Follow the on-screen instructions to select the other disks you want to
include in the RAID 5 array. There should be at least three disks in total.
d. Allocate the desired amount of space for the RAID 5 volume. RAID 5
requires a minimum of three disks, and the volume size will be the totalcapacity
of all disks minus one disk's worth of space. For example, if you have three 1TB
disks, the RAID 5 volume will have a total capacity of 2TB.
e. Assign a drive letter or mount point to the new RAID 5 volume and
format it with a file system.
Step 4: Initialize and Format the RAID 5 Volume: After creating the RAID
5volume, you need to initialize and format it:
a. When prompted, initialize the disks using the default partition style
16
(usually GPT).
b. Format the RAID 5 volume with your desired file system (e.g., NTFS)
and assign a drive letter or mount point.
Output:
17
Result:
18
Ex.4(a): Desktop Virtualization using VNC
Aim:
Procedure:
Step 2: Configure VNC Server: After installing the VNC server, you'll need to
configure it by setting a password or access control options to secure the remote
access. Ensure that the VNC server is running and ready to accept incoming
connections.
Step 4: Connect to the Remote Desktop: Launch the VNC viewer and enter the
IP address or host name of the remote computer (the host) you want to connect
to. If you have configured a password or access control options on the VNC
server, you will be prompted to enter the credentials. Once authenticated, the
VNC viewer establishes a connection to the remote desktop.
Step 5: Control the Remote Desktop: After the connection is established, you
will see the remote desktop environment displayed in the VNC viewer. You can
now interact with the remote desktop as if you were physically sitting in front of
it. You can run applications, access files, and perform any tasks on the remote
computer just as if you were using it directly.
Output:
19
Result:
20
Ex.4(b) Desktop Virtualization using Chrome Remote Desktop
Aim:
Procedure:
Step 1: Install Chrome Remote Desktop Extension: Make sure you have the
Google Chrome web browser installed on both the computer you want to access
remotely (the host) and the computer or device you want to use for remote
access (the client). Install the "Chrome Remote Desktop" extension from the
Chrome Web Store on both devices.
b. In the address bar, type" remote desktop. google. com/ access" and press
Enter.
d. Sign in with your Google Account (the same account used on the host
computer).
21
a. After signing in, you should see a list of available computers set up for
remote access. Choose the host computer you want to access.
a. If you have set up a PIN for the host computer, you will be prompted to
enter it to authenticate the remote access.
a. You can now interact with the host computer's desktop through the
Chrome browser on your client device. Use your mouse and keyboard to control
the remote desktop.
Step7: End the Remote Session: To end the remote session, click the "Stop
Sharing" button at the bottom of the remote desktop window.
Output:
22
Result:
23
Ex.5 Create type2 virtualization on ESXI6.5 server
Aim:
Procedure:
Step 1: Install ESXi 6.5: First, you need to install VMware ESXi 6.5 on your
server.
Step 2: Access ESXi Web Client: Once ESXi is installed and running, access
the ESXi Web Client through a web browser on a separate computer. Enter the
IP address or hostname of your ESXi server to log in to the management
interface.
a. In the ESXi Web Client, navigate to the" Hosts and Clusters" view.
d. The "Create New Virtual Machine" wizard will appear. Follow the
steps in the wizard to configure the virtual machine, including providing a
name, selecting the guest operating system, setting the desired resources (CPU,
memory, disk space, etc.), and selecting a storage location for the virtual
machine files.
Step 4: Install Guest Operating System: Once the virtual machine is created,
you can power it on and install the guest operating system of your choice (e.g.,
Windows, Linux, etc.) using an ISO image or CD/DVD.
Step 5: Access and Manage the Virtual Machine: After the guest operating
system is installed, you can access the virtual machine through the VMware
Remote Console (VMRC) or use remote access tools like VNC or RDP to
interact with the guest operating system.
24
OUTPUT:
25
Result:
26
Ex.6: Create a VLAN in CISCO packet tracer
Aim:
Procedure:
Step 1: Launch Cisco Packet Tracer: Start Cisco Packet Tracer and open a new
or existing project.
Step 2: Add Switches: Drag and drop switches from the "Switches" section of
the "Devices" pane onto the workspace. You can use any Cisco switch model
available in Packet Tracer.
Step3: Connect Switches: Connect the switches using Ethernet cables. Click on
the Ethernet interfaces of the switches and then click on the other switch's
Ethernet interfaces to create connections.
Step 4: Access the CLI: Double-click on the first switch to access its CLI
(Command Line Interface). The CLI window will open.
enable
configure terminal
Step6: Create VLANs: To create VLANs, use the vlan command followed by
the VLAN number. For example, to create VLAN 10 and VLAN 20, you would
do:
vlan10
vlan20
Step7: Assign Ports to VLANs: To assign ports to VLANs, use the vlan
interface FastEthernet0/1
switchportaccessvlan20
Step 8: Exit Configuration Mode: After assigning VLANs to the desired ports,
exit the configuration mode by typing exit.
Step 10: Test VLANs: Now that you have created VLANs and assigned ports,
you can test the connectivity between devices connected to the switches. Devices
in the same VLAN should be able to communicate with each other, while
devices in different VLANs should not have direct communication unless you
configure inter-VLAN routing.
28
Output:
29
Result:
30
Ex.7. Install KVM in Linux
Aim:
Procedure:
Step 1: Check Hardware Support: Before installing KVM, ensure that your
system's CPU supports hardware virtualization extensions (Intel VT-xor AMD-
V). You can check this by running the following command:
egrep-c'(vmx|svm)'/proc/cpuinfo
If the output is greater than zero (1or more), it means your CPU supports
hardware virtualization.
Step 2: Install KVM Packages: The package names may vary depending on
your Linux distribution. Here are the package names for some popular
distributions:
For Ubuntu/Debian:
For CentOS/RHEL:
sudosystemctlstart libvirtd
For Fedora:
sudodnfinstall@virtualization
Step3: Verify Installation: After installing the required packages, check if KVM
kernel modules are loaded correctly:
lsmod|grek
l 31
Step4:Configure Permissions: For non-root users to manage virtual machines
using KVM, add them to the libvirt group:
sudousermod-aGlibvirt<username>
Remember to logout and log back in for the changes to take effect.
ForIntel CPUs:
sudomodprobe-rkvm_intel
sudomodprobekvm_intel
sudomodprobe-rkvm_amd sudo
modprobe kvm_amd
For Ubuntu/Debian:
sudoaptinstallvirt-manager
For CentOS/RHEL:
sudoyuminstallvirt-manager
For Fedora:
sudodnfinstallvirt-manager
32
Once the installation is complete, you can start creating and managing virtual
Machines using KVM. You can use command- line tools like graphical interface
like Virt-Manager to interact with KVM.
Output:
33
Result:
34
Ex.8: Create Nested Virtual Machine (VM under anotherVM)
Aim:
Procedure:
Step 3: Install Virtual Box within the Host VM: Inside the host VM, download
and install Virtual Box (or any other virtualization software you prefer) as if
you were installing it on a physical machine.
Step 4: Create the Nested VM: Now that you have Virtual Box installed within
the host VM, you can create a new VM inside it.
Step 4: Install the Guest Operating System in the Nested VM: With the nested
VM created, start it and install the guest operating system, just as you would
with any regular VM installation.
Step 6: Use the Nested VM: Once the nested VM is set up and the guest
operating system is installed, you can use it just like any other VM. Install
35
Result:
36
37
38
39
40
41