New in libguestfs 1.17.18, virt-sparsify can now find and sparsify even more space in your guests — Linux swap partitions are detected and zeroed (though not if they contain hibernation data).
The --zero
option can be used to remove unwanted partitions.
The new version is also faster and uses less temporary space during the first stage.