Windows 10.qcow2
qemu-img snapshot -c snap1 windows10.qcow2
qemu-img snapshot -l windows10.qcow2
qemu-img snapshot -a snap1 windows10.qcow2
Over time, your Windows 10.qcow2 file grows. Even if you delete files inside Windows, the image file on your Linux host stays large. To reclaim space:
Inside Windows: Run Defragment and Optimize Drives -> Optimize (This allows the guest to mark free space).
On Linux Host: Shut down the VM and run: Windows 10.qcow2
qemu-img convert -O qcow2 -c Windows 10.qcow2 Windows 10_compacted.qcow2
Flag -c enables compression.
Summary
Assumptions
Appendix — Quick commands
If you want, I can:
Creating a full guide on how to work with a Windows 10.qcow2 image involves several steps, including creating the image, installing Windows 10 onto it, and then using it in a virtual machine (VM). This guide assumes you are using a Linux system as your host and have QEMU installed. QEMU (Quick Emulator) is a generic and open-source machine emulator and virtualizer. qemu-img snapshot -c snap1 windows10