Qemu uses its own type of file which is qcow that stands for Qemu Copy On Write. Sometimes after you have setup the image, you suddenly find that you need more space. Below are the proven steps on how you can add more space to your image.
- Convert qemu image to raw
- # qemu-img convert -f qcow imagename -O raw imagename.raw
- # dd bs=1 if=/dev/zero of=/path/to/imagename.raw seek=10G count=1 conv=notrunc
- # qemu-img convert -f raw imagename.raw -O qcow imagename