ccs372 Virtualization Lab Manual
ccs372 Virtualization Lab Manual
NAME :
REG NO :
YEAR : III
SEMESTER : 06
INSTITUTE VISION
INSTITUTE MISSION
• To produce competent and disciplined high-quality professionals with the practical skills
necessary to excel as innovative professionals and entrepreneurs for the benefit of society.
• To improve the quality of education through excellence in teaching and learning, research,
leadership, and by promoting the principles of scientific analysis, and creative thinking.
• To provide excellent infrastructure, serene, and stimulating environment that is most conducive to
learning.
• To strive for productive partnership between the Industry and the Institute for research and
development in the emerging fields and creating opportunities for employability.
• To serve the global community by instilling ethics, values, and life skills among the students
needed to enrich their lives.
DEPARTMENT VISION:
DEPARTMENT MISSION:
M1: To collaborate with industry and provide the state of the art infrastructural
facilities to meet the global requirements and societal needs for AI.
• To equip students with required skills and competencies in AI & Data Science - Data Toolkit -
Python & Data Visualization in Python, Regression, Natural Language Processing, Deep Learning
and Reinforcement Learning including basic electronics and applied mathematics to further inspire
the student's creative and innovative thought process.
• Enabled students competent and employable by providing excellent Infrastructure to learn and
contribute to the industry and for the welfare of the society.
• To produce professionally ethical individuals with multi-disciplinary skills that will meet the
industry expectations.
PROGRAM OUTCOMES
2. Problem analysis: (K4) Identify, formulate, review research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles of mathematics, natural
sciences, and engineering sciences.
3. Design/development of solutions: (K4) Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate consideration for
the public health and safety, and the cultural, societal, and environmental considerations.
4. Conduct investigations of complex problems: (K5) Use research-based knowledge and research
methods including design of experiments, analysis and interpretation of data, and synthesis of the
information to provide valid conclusions.
5. Modern tool usage: (K3, K5, K6) Create, select, and apply appropriate techniques, resources, and
modern engineering and IT tools including prediction and modelling to complex engineering activities
with an understanding of the limitations.
6. The engineer and society: (A3) Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the
professional engineering practice.
7. Environment and sustainability: (A2) Understand the impact of the professional engineering
solutions in societal and environmental contexts, and demonstrate the knowledge of, and need for
sustainable development.
8. Ethics: (A3) Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
9. Individual and team work: (A3) Function effectively as an individual, and as a member or leader
in diverse teams, and in multidisciplinary settings.
10. Communication: (A3) Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and write effective
reports and design documentation, make effective presentations, and give and receive clear instructions.
11. Project management and finance: (A3) Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and leader in a
team, to manage projects and in multidisciplinary environments.
12. Life-long learning: (A2) Recognize the need for and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change
JEPPIAAR INSTITUTE OF TECHNOLOGY
BONAFIDE CERTIFICATE
Examiner Date:
CONTENTS
2
1 Install Guest OS on that VMWARE
6
(a) Shrink and extend virtual disk
22
Create type 2 virtualization on
4
ESXI 6.5 server
25
Create a VLAN in CISCO packet
5
tracer
31
Create Nested Virtual Machine
7
(VM under another VM)
1
Ex. No:1 Create type 2 virtualization in VMWARE or any equivalent Open-
Source Tool. Allocate memory and storage space as per requirement.
DATE: Install Guest OS on that VMWARE
Aim:
Procedure:
Workstation Player
Click on "Create a New Virtual Machine" or go to File > New Virtual Machine
2
Step 4: Install Guest Operating System
• 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
Step 6: Configure Virtual Machine Hardware
• 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.
Step 9: Install VMware Tools (Optional but Recommended)
4
OUTPUT:
RESULT:
5
Ex. No:2(a)
Shrink and Extend Virtual Disk
DATE:
Aim:
Procedure:
Step 2: Defragment the virtual machine's disk to move all the data to the
beginning of the disk.
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.
6
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:
7
8
Result:
Thus, the shrink and extend of virtual disk has been created and run
Successfully.
9
Ex. No:2(b)
Create, Manage, Configure and schedule snapshots
DATE:
Procedure:
11
12
Result:
13
Ex. No:2(c)
Create Spanned, Mirrored and Striped volume
DATE:
Aim:
To Create Spanned, Mirrored and Striped volume
Procedure:
Step 1: How to create a spanned volume:
a. Right-click on "This PC" or "My Computer" and select "Manage."
b. In the Computer Management window, click on "Disk
Management" under "Storage" in the left pane.
c. Identify the disks you want to use in the spanned volume. They
should be unallocated or have empty space available.
d. Right-click on the first disk and choose "New Spanned Volume."
e. Follow the on-screen instructions to select additional disks and
allocate space for the spanned volume.
f. Assign a drive letter or mount point to the new volume and format it
with a file system.
Step 2: How to create a mirrored volume:
a. Follow steps a to c from the spanned volume creation process to
open Disk Management.
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).
Step 3: How to create a striped volume:
a. Follow steps a to c from the spanned volume creation process to
open Disk Management.
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.
14
Output:
Result:
Thus, The Spanned, Mirrored and Striped volume has been Created
and Run Successfully.
15
Ex. No:2(d)
Create RAID 5 Volume
DATE:
Aim:
To Create RAID 5 Volume
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. Identify the disks you want to use in the RAID 5 array. They
should be 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-click on one of the disks you want to use in the RAID 5 array.
16
Step 4: Initialize and Format the RAID 5 Volume: After creating the
RAID 5 volume, you need to initialize and format it:
b. Format the RAID 5 volume with your desired file system (e.g.,
NTFS) and assign a drive letter or mount point.
Output:
Result:
Thus, The RAID 5 Volume has been Created and Run Successfully
17
Ex. No:3(a)
Desktop Virtualization using VNC
DATE:
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.
Output:
18
Result:
Thus, The Desktop Virtualization using VNC has been Created and
Ru Successfully.
19
Ex. No:3(b)
Desktop Virtualization using Chrome Remote Desktop
DATE:
Aim:
To Create Desktop Virtualization using Chrome Remote Desktop
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.
Step 2: Set Up Host Computer (Computer to be Accessed):
a. Open Google Chrome on the host computer.
b. In the address bar, type "chrome://apps" and press Enter.
c. Click on the "Chrome Remote Desktop" icon to open the application.
d. Follow the on-screen instructions to grant necessary permissions
and set up remote access for the host computer.
e. Create a secure PIN to use for remote access authentication.
Step 3: Access Host Computer (Client Device):
a. Open Google Chrome on the client device (the computer or device
from which you want to access the host computer remotely).
b. In the address bar, type "remotedesktop.google.com/access" and press
Enter.
c. Click on the "Access" button under the "Remote Access" section.
d. Sign in with your Google Account (the same account used on the host
computer).
Step 4: Choose the Host Computer:
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.
Step 5: Authenticate and Connect:
a. If you have set up a PIN for the host computer, you will be
prompted to enter it to authenticate the remote access.
b. Once authenticated, the remote connection will be
established, and you will see the host computer's desktop in the
Chrome browser window.
Step 6: Control the Host Computer:
20
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.
b. To switch between full-screen and windowed mode, click the
"Toggle full screen" button on the top right corner of the remote desktop
window.
Step 7: End the Remote Session: To end the remote session, click the
"Stop Sharing" button at the bottom of the remote desktop window.
Output:
Result:
21
Ex. No:4
Create type 2 virtualization on ESXI 6.5 server
DATE:
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 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.
22
OUTPUT:
23
Result:
Thus, The type 2 virtualization on ESXI 6.5 server was Created and
Run Successfully.
24
Ex. No:5
Create a VLAN in CISCO packet tracer
DATE:
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.
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
vlan 10
vlan 20
25
switchport access
interface command followed by the port number and then the
vlan command. For example, to assign port 1 to VLAN 10 and port 2 to
VLAN 20, you would do:
interface FastEthernet0/1
interface FastEthernet0/2
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.
Output:
26
Result:
Thus, The VLAN in CISCO packet tracer has been Created and Run
Successfully.
27
Ex. No:6
Install KVM in Linux
DATE:
Aim:
Procedure:
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:
sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients
bridge-utils virt-manager
For CentOS/RHEL:
sudo yum install qemu-kvm libvirt virt-install bridge-
utils sudo systemctl enable libvirtd
sudo systemctl start libvirtd
For Fedora:
sudo dnf install
@virtualization sudo
systemctl enable libvirtd
sudo systemctl start libvirtd
Step 3: Verify Installation: After installing the required packages, check if
KVM kernel modules are loaded correctly:
lsmod | grep kvm
The output should kvm and kvm_intel or kvm_amd modules loaded,
show depending on
your CPU.
28
Step 4: Configure Permissions: For non-root users to manage virtual
machines using KVM, addlibvirt
them to the group:
sudo usermod -aG libvirt <username>
Remember to log out and log back in for the changes to take effect.
Step 5: Enable Nested Virtualization (Optional): If you plan to run virtual
machines with nested virtualization (e.g., running KVM inside a KVM
guest), you may need to enable nested virtualization on the host. This step
is only required if you intend to run virtual machines with KVM as guests.
For Intel CPUs:
echo "options kvm-intel nested=1" | sudo tee
/etc/modprobe.d/kvm- intel.conf
sudo modprobe -r
kvm_intel sudo modprobe
kvm_intel
For AMD CPUs:
echo "options kvm-amd nested=1" | sudo tee
/etc/modprobe.d/kvm- amd.conf
sudo modprobe -r
kvm_amd sudo modprobe
kvm_amd
Step 6: Install and Configure Virt-Manager (Optional): Virt-Manager is a
graphical user interface tool to manage virtual machines using KVM. If you
prefer a GUI interface, you can install Virt-Manager:
For Ubuntu/Debian:
sudo apt install virt-manager
For CentOS/RHEL:
sudo yum install virt-manager
For Fedora:
sudo dnf install virt-manager
Once the installation is complete, you can start creating and managing virtual
machines using KVM. You can use command-line tools virsh or a graphical
like interface like Virt-Manager to interact with KVM.
29
Output:
Result:
30
Ex. No:7
Create Nested Virtual Machine (VM under another VM)
DATE:
Aim:
Procedure:
For VirtualBox:
Open VirtualBox and select the host VM from the list. Go to "Settings" >
"System" > "Processor" and check the "Enable Nested VT-x/AMD-V"
option.
Step 2: Install an Operating System in the Host VM: Ensure you have an
operating system installed in the host VM. This will be the environment in
which you'll run the nested VMs.
Step 3: Install VirtualBox within the Host VM: Inside the host VM,
download and install VirtualBox (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 VirtualBox 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.
31
Step 5; Configure Networking (Optional): Depending on your
requirements, you may need to configure the networking of the nested VM
to allow communication with other VMs or external networks.
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
applications, run tests, or perform any tasks within the nested VM.
Output:
Result:
Thus, The Nested Virtual Machine (VM under another VM) was
Created and Run Successfully.
32