Image conversion on upload
|Category:||Drivers - Storage|
It would be great if you could select to automatically convert an image when uploading it to the datastore.
We have our users creating images with Virtual Box and tell them to use the qcow format. However we would like to use qcow2 instead. Though it's easily possible to make this conversion, it would be very, very convenient if it could be done automatically in the upload dialog.
We would also contribute some work into this feature to make it happen!
#1 Updated by Carlo Daffara about 6 years ago
I would certainly second that. It can be implemented though qemu-img, currently supports raw, qcow2, vhd, vmdk and several other formats very reliably; as an added requirement it would be quite small as it does not need the entire qemu-kvm hypervisor to work.
#2 Updated by Ruben S. Montero about 6 years ago
- Tracker changed from Request to Feature
- Category changed from Sunstone to Drivers - Storage
- Priority changed from Normal to High
- Target version deleted (
I'm moving this to backlog for possible next release, note that some Datastore drivers are doing this right now, converting from qcow2 to raw for Ceph, to vmfs for VMware and so on... Meanwhile you can easily insert the qemu-img command in the cp script (remotes/datastore/fs). You may take other ds as a reference e.g. ceph/ds does the opposite.