Skip to content
Hands-on IT IT Drills
Cover: KVM hands-on

Training material

KVM hands-on

Linux virtualization from QEMU to live migration

Two Linux hosts, one goal. You start a VM with a single QEMU command, understand disks and overlays with qemu-img and then let libvirt take over. virt-install with cloud-init, storage pools on LVM and NFS, NAT, isolated and bridged networks, notes-api with Postgres as a two-VM appliance. Snapshots and incremental backups, guest agent and virtiofs, performance with IOThreads, pinning and hugepages, remote management with Cockpit, live migration, VMs as code with OpenTofu and troubleshooting in operations. Every failure in the book really happened during testing.

  • KVM
  • QEMU
  • libvirt
  • Virtualisierung
  • OpenTofu

Training plan

  1. Foreword
  2. Day 0: The Training Ground
  3. Day 1: QEMU by Hand
  4. Day 2: Understanding Disks
  5. Day 3: libvirt Takes Over
  6. Day 4: virt-install and cloud-init
  7. Day 5: Storage Pools and Volumes
  8. Day 6: Networks
  9. Day 7: notes-api as a VM Appliance
  10. Day 8: Lifecycle, Snapshots and Backups
  11. Day 9: Guest System Integration
  12. Day 10: Performance
  13. Day 11: Remote Control
  14. Day 12: Live Migration
  15. Day 13: VMs as Code with OpenTofu
  16. Day 14: Operations and Troubleshooting
  17. Day 15: Competition
  18. Appendix A: Cheat Sheet
  19. Appendix B: Final Exam