KVM — Guide pratique
Install, deploy and manage virtual machines on Ubuntu Server 26.04 LTS
Free hands-on guide to installing KVM on Ubuntu Server 26.04 LTS, then deploying, managing and automating virtual machines with libvirt and Open vSwitch.
Free access, no sign-up required.
About this document
KVM is the hypervisor at the heart of OpenStack, Proxmox VE and Nutanix AHV. This hands-on guide teaches you to master it directly, without an abstraction layer, so you understand what happens under the hood of these platforms.
The guide follows a system administrator's complete journey: preparing the installation media, installing Ubuntu Server 26.04 LTS on a physical server, setting up KVM, libvirt and Open vSwitch, then deploying, managing, backing up and automating virtual machines.
Every concept is put into practice through guided exercises, all performed on a real lab with actual command output. The guide is written in French for system administrators, infrastructure engineers and anyone getting started with Linux virtualization.
What you will learn
- Install Ubuntu Server 26.04 LTS on a physical server and prepare it for virtualization
- Install KVM, libvirt and Open vSwitch
- Configure NAT virtual networks and Open vSwitch bridges, with or without VLANs
- Deploy Ubuntu, CentOS Stream and Rocky Linux virtual machines from cloud images and ISOs
- Manage the virtual machine lifecycle and resize resources while running
- Create snapshots, clone, back up and restore virtual machines
- Monitor virtual machines with virsh and virt-top
- Automate deployment with cloud-init and autoinstall
Table of contents
Show the full table of contents
- Préambule
- Chapitre 1 : Introduction à la virtualisation KVM
- Chapitre 2 : Installer l'hyperviseur
- Préparer le média d'installation
- Installer Ubuntu Server 26.04 LTS sur un serveur physique
- Configuration post-installation du serveur
- Installer l'hyperviseur KVM et Open vSwitch
- Chapitre 3 : Préparer le réseau et le stockage
- Configurer les réseaux virtuels (NAT et bridges OVS)
- Configurer le pool de stockage des machines virtuelles
- Chapitre 4 : Déployer des machines virtuelles
- Déployer une machine virtuelle à partir d'une image cloud
- Configuration post-déploiement de la machine virtuelle
- Déployer une VM à partir d'un ISO via la console série
- Déployer des machines virtuelles CentOS Stream et Rocky Linux
- Chapitre 5 : Gérer les machines virtuelles
- Gérer le cycle de vie des machines virtuelles
- Redimensionner à chaud les ressources d'une machine virtuelle
- Superviser les machines virtuelles avec virsh domstats et virt-top
- Chapitre 6 : Snapshots, clones et sauvegardes
- Créer des snapshots et cloner des machines virtuelles
- Gérer les snapshots externes avec blockcommit
- Sauvegarder et restaurer une machine virtuelle
- Chapitre 7 : Réseau virtuel avancé
- Attacher des interfaces réseau et configurer les VLANs
- Configurer les VLANs sur les ports Open vSwitch
- Chapitre 8 : Stockage virtuel avancé
- Ajouter et gérer du stockage virtuel
- Chapitre 9 : Automatiser le déploiement
- Automatiser le déploiement d'une machine virtuelle avec cloud-init
- Installer une machine virtuelle avec autoinstall depuis l'ISO
- Chapitre 10 : Migrer des machines virtuelles
- Chapitre 11 : GPU passthrough
- Chapitre 12 : Révision complète
A project built on these technologies?
We design, deploy and operate the platforms described in our books, and we train your teams on them.