The next steps demonstrate how to add additional space to the raw image we created earlier, extend the root partition, and resize the filesystem. By the end of this recipe, the original raw image filesystem size should have changed from 10G to 20G.
- Obtain the current size of the image:
root@kvm:~# qemu-img info debian.img image: debian.imgfile format: rawvirtual size: 10G (10737418240 bytes)disk size: 848M root@kvm:~#
- Add additional 10 GB to the image:
root@kvm:~# qemu-img resize -f raw debian.img +10GB Image resized. root@kvm:~#
- Check the new size ...