How do you create a qcow2 file that is small yet commodious on a Linux server?

To create a qcow2 image for a virtual disk size of 100MB do: qemu-img create -f qcow2 foobar.qcow2 100M The created foobar.qcow2 will be about 200KB. You can easily create a very big virtual disk with this which will take only very small space on the host filesystem, e.g. 100TB virtual disk would take only … Read more