Description of problem: (Reporter: Evaggelos Balaskas) > # virt-sparsify -v --compress winxp.img winxp.img.spars > > qemu-img convert -f qcow2 -O 'raw' -c '/VM/sparsify10f031.qcow2' > 'winxp.img.spars' > > qemu-img: Compression not supported for this file format > virt-sparsify: error: external command failed: qemu-img convert -f > qcow2 -O 'raw' -c '/VM/sparsify10f031.qcow2' > 'winxp.img.spars' If the output format is a format which doesn't support compression (eg. raw), then virt-sparsify should give a clearer error message.
Commit 43369e1bd4d98acf1cce6eb0216dcdb43d43bf1b changes the error to say: virt-sparsify: error: --compress cannot be used for raw output. Remove this option or use --convert qcow2.