KVM / oVirt
CC-P05 intermediate
Practical 5: Install and configure KVM, provision a VM and manage its lifecycle
Verify hardware virtualization on a Linux host, install KVM/QEMU/libvirt, create a VM with defined CPU, RAM and disk, run it through start/stop/snapshot, and document the NAT networking mode it uses.
What you'll do
- Check Intel VT-x / AMD-V support
- Install qemu-kvm, libvirt and virtinst
- Create a VM with virt-install
- Start, stop and snapshot the VM with virsh
- Identify the VM network mode (NAT on virbr0)
Lab tasks
- 1 Verify hardware virtualization support
- 2 Install KVM, QEMU and libvirt
- 3 Start and enable libvirtd
- 4 Allow your user to manage VMs
-
5
Create VM
cc-vm1(2 vCPU, 2048 MiB RAM, 20 GiB disk) - 6 Inspect the VM and its IP address
- 7 Stop the VM gracefully
-
8
Snapshot the VM as
base-install - 9 Start the VM again
- 10 Document the networking mode