KVM Management

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

KVM Management

Pre-Requisites Good hand-on on Linux and proper knowledge about Type-1 and Type-
2 Hypervisor. Good knowledge about virtualization, networking.

Duration: 5 Days

Lab Setup: Hardware Requirement


Corei7 Core Machine
16GB RAM
Base OS Windows 2012
VMWare Workstation
CentOS Linux Virtual Machine
Windows 8 or any client OS ISO Image
Internet connectivity on the Machine

Module 1: Setting Up Standalone KVM Virtualization


Determining the right system requirements for your environment
Physical CPU
CPU cores
Physical memory
Storage
Network
Setting up the environment
Installing virtualization packages
Starting the libvirt service
Validate and understand your system's virt capabilities

Module 2: libvirt and Creating Virtual Machines


Introducing virt-manager
The Virtual Networks tab
NATed virtual network
Routed virtual network
Isolated virtual network
Default network
Storage tab
Creating virtual machines using the Virtual Machine Manager
Creating a new virtual machine wizard
The Network installation (HTTP, FTP, or NFS) method
Network Boot (PXE)
Importing an existing disk image
Introducing virt-install
Installing a Windows 7 Guest using the virt-install command
Automated virtual machine deployment
Introducing virt-builder
Introducing oz
The oz configuration file
Creating a virtual machine using oz

Module 3: Network and Storage


Virtual networking
Virtual networking using libvirt
Isolated virtual network
Routed virtual network
Editing a virtual network
NATedvirtual network
MacVTap
PCI passthrough
Storage
Working with unmanaged storage
Creating a disk image and attaching it to a guest
Getting image information
Attach a disk using virt-manager
Attach a disk using virsh
Working with managed storage
Storage management console
Creating storage pools
File system directory backed storage pool
LVM Volume Group backed storage pool
iSCSI backed storage pool
Creating an ISO image library
Deleting a storage pool
Deleting storage pool using virt-manager
Deleting storage pool using virsh
Creating storage volumes
Creating volume using virsh command
Deleting a volume using the virsh command

Module 4: Virtual Machine Lifecycle Management


QEMU Guest Agent
Virtual video cards and graphics
Virtual video card
Graphics
VNC graphics server
SPICE graphics server
Adding SPICE graphics server
Methods to access a virtual machine console
VM migration
Offline migration
Live or online migration
Benefits of VM migration
Setting up the environment
Shared storage
Offline migration
Enabling lockd
Live or online migration
Future of migration

Module 5: Templates and Snapshots


Introducing virtual machine templates
Working with templates
Creating templates
Deploying virtual machines from a template
Deploying VMs using the clone provisioning method
Deploying VMs using the thin provisioning method
Snapshots
VM disk image formats
Converting a VM disk format
Working with internal snapshots
Creating the first internal snapshot
Creating an internal snapshot with a custom name
Creating multiple snapshots
Reverting to internal snapshots
Deleting internal snapshots
Managing snapshots using virt-manager
Working with external disk snapshots
Creating an external disk snapshot
What is quiesce?
Reverting to external snapshots
Deleting external disk snapshots

Module 6: Software-Defined Networking for KVM Virtualization


Introducing Software Defined Networking
Limitations of Linux bridges
Introducing Open vSwitch
Comparison between Linux bridge and Open vSwitch
Open vSwitch architecture
Open vSwitch installation and setup
Starting openvswitch.service
Open vSwitch kernel module
Getting started with the Open vSwitch command-line interface
Setting up your first Open vSwitch bridge
Configuring an Open vSwitch bridge manually using the ovs-vsctl
command
Configuring an Open vSwitch bridge using network scripts
Integrating KVM VMs and OVS
VLANs with Open vSwitch
Configuring VLANs for KVM virtual machines
Using libvirt integration
Open vSwitch QoS – controlling KVM VM traffic
Applying traffic rate limiting
Controlling outbound (egress) traffic
Applying traffic shaping
Overlay networks
Configuring Open vSwitch tunnels with VxLan
KvmHOST1 host side configuration
kvmHOST2 host configuration
Network port mirroring
Configuring port mirroring
Managing Open vSwitch using the OpenDaylight SDN controller
Installing the OpenDaylight controller (ODL-sys)
Hardware requirements
Installing and configuring ODL
Adding an Open vSwitch (vswitch001) instance to the
OpenDaylight controller on system (ODL-sys)
Installing flows on the OVS bridge using OpenDaylight
Dashboard

Module 7: Installing and Configuring the Virtual Datacenter Using oVirt


Introducing oVirt
oVirt architecture
The oVirt engine
The oVirt node
Storage
Networking
Installing the oVirt engine
Preparing the system for oVirt engine installation
Installing oVirt node

Module 8: Performance Tuning and Best Practices in KVM


VirtIO
CPU tuning
The number of vCPUs
CPU configuration
CPU topology
CPU pinning
The numactl command
Working with memory
Memory allocation
Memory tuning
Memory backing
locked
nosharepages
hugepages
Getting acquainted with Kernel Same Page merging
KSM packages and files
Tuning CPU and memory with NUMA
What is NUMA?
NUMA memory allocation policies
numatune
emulatorpin
KSM and NUMA
Automatic NUMA balancing
Understanding numad and numastat
Disk and block I/O tuning
Cache mode
I/O mode
I/O tuning
Networking tuning in KVM
KVM guest time-keeping best practices
kvm-clock

Module 9: KVM Security


Security Concerns when Adding Block Devices to a Guest
SELinux and Virtualization
SELinux
Virtualization Firewall Information
Host Security Recommended Practices
Guest security
Why guest security matters
Guest security recommended practices

SVIRT
Selinux And Mandatory Access Control (Mac)
SVIRT Configuration
SVIRT Labeling
Types of sVirt Labels
Dynamic Configuration
Dynamic Configuration with Base Labeling
Static Configuration with Dynamic Resource Labeling
Static Configuration without Resource Labeling
Network Security Recommendations

You might also like