libvirt/tests/storagevolxml2argvdata/qcow2-nocapacity-convert-prealloc.argv
Ján Tomko e3f1d2a820 Allow cloning volumes with no capacity specified
In virStorageVolCreateXML, add VIR_VOL_XML_PARSE_NO_CAPACITY
to the call parsing the XML of the new volume to make the capacity
optional.

If the capacity is omitted, use the capacity of the old volume.
We already do that for values that are less than the original
volume capacity.
2015-03-02 08:07:11 +01:00

5 lines
152 B
Plaintext

qemu-img convert -f raw -O qcow2 \
-o encryption=on,preallocation=metadata \
/var/lib/libvirt/images/sparse.img \
/var/lib/libvirt/images/OtherDemo.img