Visão Geral
Este curso de nível avançado oferece uma exploração aprofundada da virtualização Kernel-based Virtual Machine (KVM), permitindo que os participantes criem, configurem, gerenciem e otimizem ambientes virtuais em sistemas Linux. O treinamento abrange conceitos básicos e configurações avançadas, alta disponibilidade, ajuste de desempenho e integração com infraestruturas empresariais. Os participantes ganharão experiência prática na implantação de ambientes virtualizados de nível de produção usando KVM e ferramentas associadas, como QEMU, libvirt e virt-manager.
Conteúdo Programatico
Module 1 – Introduction to KVM Virtualization
- Overview of virtualization types: full, para, and hardware-assisted
- KVM architecture and kernel integration
- QEMU role in KVM virtualization
- libvirt API and management tools
- KVM vs. other hypervisors (VMware ESXi, Hyper-V, Xen)
Module 2 – Installing and Configuring KVM
- Hardware requirements and virtualization extensions (Intel VT-x, AMD-V)
- Installing KVM, QEMU, and libvirt on Linux (RHEL, CentOS, Ubuntu, Debian)
- Verifying virtualization support
- Configuring libvirt daemon and networking modes (NAT, bridged, isolated)
Module 3 – Managing Virtual Machines
- Creating VMs using
virt-install
and virt-manager
- VM lifecycle management (start, stop, pause, resume, delete)
- Managing VM snapshots
- VM templates and cloning
- Importing and exporting VMs
Module 4 – Networking in KVM
- Understanding virtual networking concepts
- Configuring NAT and bridged networks
- VLAN tagging and trunking
- Using Open vSwitch with KVM
- Troubleshooting networking issues in KVM environments
Module 5 – Storage in KVM
- Storage types: file-based, block devices, LVM, iSCSI, NFS
- Creating and managing storage pools and volumes with
virsh
- Attaching and detaching storage devices to VMs
- Using Ceph and GlusterFS with KVM
- Performance tuning for storage
Module 6 – Advanced Features
- Live migration between hosts
- Cold migration and storage migration
- VM scaling (CPU, memory hot-plugging)
- PCI and GPU passthrough (VFIO)
- NUMA configuration for performance optimization
Module 7 – High Availability and Clustering
- Configuring KVM in a cluster environment
- Using Pacemaker and Corosync for HA
- Shared storage configurations for HA
- Failover and recovery scenarios
Module 8 – Performance Tuning and Security
- Performance monitoring with
virt-top
, virt-stat
, and other tools
- Optimizing CPU, memory, and I/O performance
- KVM security best practices
- SELinux and AppArmor integration
- Protecting virtual networks and storage
Module 9 – Automation and Scripting
- Using
virsh
for automation
- Managing KVM with Ansible playbooks
- Bulk VM creation scripts
- Integrating KVM with cloud management tools (oVirt, OpenStack)
Module 10 – Troubleshooting and Maintenance
- Common issues in KVM environments and how to fix them
- Log analysis and debugging with
journalctl
and libvirt
logs
- Backup and restore strategies for VMs
- Upgrading KVM and libvirt safely