Windows 7 Qcow2 (2026)
qemu-img create -f qcow2 -b windows7_base.qcow2 -F qcow2 lab_clone_1.qcow2 qemu-img create -f qcow2 -b windows7_base.qcow2 -F qcow2 lab_clone_2.qcow2 All clones will read from the base image (shared) and write differences to their own small files. You can run 20 Windows 7 VMs using only 90GB of disk space. Problem 1: Windows 7 Activation Loops on Qcow2 Windows 7 detects hardware changes when switching between KVM hosts. The network card MAC changes, the CPU topology differs, and Windows demands re-activation. Fix: Use a static, stable UUID in your libvirt XML:
After Windows 7 boots, install the full VirtIO guest tools (Balloon driver, guest agent, network driver). Shut down the VM and compact the Qcow2: Windows 7 Qcow2
qemu-img create -f qcow2 windows7.qcow2 80G Why 80GB? Windows 7 updates (especially Convenience Rollup) can consume 30-40GB over time. Thin provisioning ensures you don’t waste physical space. qemu-img create -f qcow2 -b windows7_base