qemu-img create -f qcow2 disk1.qcow2 8G
This example creates a RAW image with a maximum size of 8GB:
qemu-img create -f raw disk1.img 8G
qemu-img info disk1.qcow2
This example displays attributes of a RAW image:
qemu-img info disk1.img
qemu-img resize disk1.qcow2 16G
This example increases the size of a RAW image
qemu-img resize -f raw disk1.img 16G
Source | Date: June 5th 2021
© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.