
A quick welcome and introduction to the course on KVM ( Kernel Based Machines) We will discuss the following topics with appropriate LABs at end of the session :
Define a hypervisor and distinguish host and guest machines, then contrast type 1 and type 2 hypervisors with examples such as vmware workstation, while noting domains, logical partitions, and zones.
Explore KVM as a Linux kernel hypervisor, highlighting open-source benefits, performance and scalability, security features, live migration, resource overcommitment, and type 1 vs type 2 distinctions and management tools.
Explore lab details and installation prerequisites for Linux KVM, including host system requirements, virtualization extensions (SVM/BMX), BIOS enablement, and keeping the kernel and packages up to date.
Install kvm and related packages from base repositories using apt-get or yum, enable and start the virtualization service, reboot, and verify kvm modules are loaded and virt-manager available.
Configure kvm networking by creating a custom bridge (br0) and network range, assign static ip addresses, enable ip forwarding, and update firewall for persistence.
Configure a dedicated storage pool for KVM by creating an LVM-backed pool mounted at a separate directory for guest VM images, enable autostart, and verify with pool details.
Learn to create guest VMs on Linux KVM using CLI and GUI, including OS support, unique identifiers, memory and disk settings, ISO installation, and management via virt-manager.
Learn to clone a guest VM in Linux KVM by creating a base VM template, shutting down the source, and cloning to a target disk image for rapid deployment.
Learn to create, list, restore, and delete snapshots of a guest VM in Linux KVM, capturing pre-upgrade states and reverting from a chosen snapshot.
Learn how to back up a guest VM in Linux KVM by safely shutting down, syncing data, and copying disk images and VM configuration files to a designated backup location.
Expand the qcow2 guest image in kvm from 10 gb to 11 gb using qemu-img resize, then resize the guest partitions or lvm to reflect the new size.
Learn to repair a corrupted qemu disk by booting a live guest, check and repair the file systems with tools shown, and complete the repair to resume the VM.
Learn to manage guest virtual machines in Linux KVM using command line and graphical tools, including listing, starting, stopping, rebooting, suspending, resuming, destroying, consoles, autostart, and resource changes.
Increase resources on the guest VM by raising memory in graphical tools (virt-manager) and via the command line, applying changes to the domain.
Learn to monitor KVM performance and troubleshoot unresponsive VMs using a graphical VM manager, observe resource and CPU utilization, and perform force shutdown, decommission, and review log messages.
Kernel-based Virtual Machine (KVM) is a virtualization infrastructure for the Linux kernel that turns it into a hypervisor. It was merged into the Linux kernel mainline in kernel version 2.6.20, which was released on February 5, 2007.
In this quick training on KVM ( Kernel Based Machines) , we will discuss the following topics with appropriate LABs at end of the session :
Quick Introduction to Hypervior and KVM :
KVM Installation and Configuration
Creating Guest Virtual Machines
KVM Administration