0% found this document useful (0 votes)
38 views

CSM Lab 3

Vikash Kumar submitted a lab report on installing and configuring KVM virtualization on Ubuntu 22. The report details enabling nested virtualization in VirtualBox, checking if the CPU supports hardware virtualization using egrep and kvm-ok commands, installing KVM and related packages using apt, authorizing the user to run VMs by adding them to the libvirt group, verifying the installation with virsh and systemctl commands, installing virt-manager to manage VMs, and provides steps to build a Fedora virtual machine using virt-manager by selecting an ISO, allocating resources, and finishing the setup.

Uploaded by

Vikash Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

CSM Lab 3

Vikash Kumar submitted a lab report on installing and configuring KVM virtualization on Ubuntu 22. The report details enabling nested virtualization in VirtualBox, checking if the CPU supports hardware virtualization using egrep and kvm-ok commands, installing KVM and related packages using apt, authorizing the user to run VMs by adding them to the libvirt group, verifying the installation with virsh and systemctl commands, installing virt-manager to manage VMs, and provides steps to build a Fedora virtual machine using virt-manager by selecting an ISO, allocating resources, and finishing the setup.

Uploaded by

Vikash Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

University Of Petroleum and Energy Studies,

Dehradun

Cloud Security & Management


(Lab)

Submitted by:
Name- Vikash kumar

SAP: 500087705

Enrolment No. : R2142201906

batch: B4.CCVT

Submitted To: Amanjot Kaur Ma’am


Installation and Configuration of virtualization using KVM
Enabling nested virtualization:
1.intially, we are going to enable nested virtualization.

2.locate path using


 Cd C:\Program Files\Oracle\VirtualBox

3. enable nested virtulization. using


 VBoxManage modifyvm "ubuntu 22" --nested-hw-virt on

4.nested virtualization on.

Check Virtualization Support on Ubuntu 22


1. Before you begin with installing KVM, check if your CPU supports hardware
virtualization via egrep command:
 egrep -c '(vmx|svm)' /proc/cpuinfo
output:

2. Now, check if your system can use KVM acceleration by typing:


 sudo kvm-ok
output:

3.If kvm-ok returns an error stating KVM acceleration cannot be used, try
solving the problem by installing cpu-checker. To install cpu-checker, run the
following command:
 sudo apt install cpu-checker

Install KVM on Ubuntu 22


To enable KVM virtualization on Ubuntu 22 .
Step 1.installing kvm:-
1. First, update the repositories:
 sudo apt update

2. Then, install essential KVM packages with the following command:


 sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-
utils

Step 2: Authorize Users


1. Only members of the libvirt and kvm user groups can run virtual machines.
Add a user to the libvirt group by typing:
 sudo adduser ‘username’ libvirt
Replace username with the actual username.

Step 3: Verify the Installation


1. Confirm the installation was successful by using the virsh command:
 virsh list --all
output :

2. Or use the systemctl command to check the status of libvirtd:


 sudo systemctl status libvirtd
If everything is functioning properly, the output returns an active
(running) status.

3. Press Q to quit the status screen.


4. If the virtualization daemon is not active, activate it with the following
command:
 sudo systemctl enable --now libvirtd

step 4:setting up tools for VM:-


1. Before you choose one of the two methods listed below, install virt-
manager, a tool for creating and managing VMs:
 sudo apt install virt-manager

2. Type Y and press ENTER. Wait for the installation to finish.

3.Make sure you download an ISO containing the OS you wish to install on a
VM and proceed to pick an installation method.
Step 5:build a fedora virtual machine
1. Start virt-manager with:
 sudo virt-manager

2. In the first window, click the computer icon in the upper-left corner.In the
dialogue box that opens, select the option to install the VM using an ISO
image. Then click Forward.
3. In the next dialogue, click Browse Local and navigate to the path where you
stored the ISO you wish to install.

4.. The ISO you chose in the previous window populates the field in Step 2.
Proceed to Step 3 by clicking Forward.
5. Enter the amount of RAM and the number of CPUs you wish to allocate to
the VM and proceed to the next step.

6. Allocate hard disk space to the VM. Click Forward to go to the last step.
7. Specify the name for your VM and click Finish to complete the setup.
8. The VM starts automatically, prompting you to start installing the OS that’s
on the ISO file.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy