2020-09-17 12:13:29 +01:00
|
|
|
# virt-sparsify
|
|
|
|
|
|
|
|
> Make virtual machine drive images thin-provisioned.
|
2024-02-05 07:04:49 +00:00
|
|
|
> Note: Use only for offline machines to avoid data corruption.
|
2022-07-27 12:38:46 +01:00
|
|
|
> More information: <https://libguestfs.org>.
|
2020-09-17 12:13:29 +01:00
|
|
|
|
|
|
|
- Create a sparsified compressed image without snapshots from an unsparsified one:
|
|
|
|
|
|
|
|
`virt-sparsify --compress {{path/to/image.qcow2}} {{path/to/image_new.qcow2}}`
|
|
|
|
|
|
|
|
- Sparsify an image in-place:
|
|
|
|
|
|
|
|
`virt-sparsify --in-place {{path/to/image.img}}`
|