virt-sparsify: add example (#20747)

This commit is contained in:
Fazle Arefin
2026-01-16 00:03:17 +11:00
committed by GitHub
parent ad945fc32d
commit 6e56c75e46
+5 -1
View File
@@ -6,8 +6,12 @@
- Create a sparsified compressed image without snapshots from an unsparsified one:
`virt-sparsify --compress {{path/to/image.qcow2}} {{path/to/image_new.qcow2}}`
`virt-sparsify --compress {{path/to/image.qcow2}} {{path/to/new_image.qcow2}}`
- Sparsify an image in-place:
`virt-sparsify --in-place {{path/to/image.img}}`
- Convert from one image format to another:
`virt-sparsify {{path/to/image}} --convert {{qcow2|raw|vdi|...}} {{path/to/new_image}}`