Resize and view metadata on qcow2 images:


To see metadata (including the max size for the file):
qemu-img info disk.qcow2


To resize the disk image:
qemu-img resize disk.qcow2 30G
*This is to grow to a 30G file.
*Does not resize the partitions in the file, must mount the qcow2 image and resize with a disk utility when mounted for the file systems.


Source | Date: June 9th 2024




Back

© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.