Open OpenNebulaProject opened 6 years ago
Original Redmine Comment Author Name: Carlo Daffara (Carlo Daffara) Original Date: 2014-08-06T13:54:44Z
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.
Original Redmine Comment Author Name: Ruben S. Montero (@rsmontero) Original Date: 2014-08-06T17:30:27Z
Hi
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.
Cheers
Ruben
Original Redmine Comment Author Name: Christian Hüning (Christian Hüning) Original Date: 2014-08-06T18:36:29Z
Hi,
thanks! Will try the cp script tomorrow.
Cheers, Christian
Original Redmine Comment Author Name: Christian Hüning (Christian Hüning) Original Date: 2014-08-10T12:26:57Z
Well, i figured that it would be a too static behaviour if every image type would get converted into qcow2. I'd really like to select and control this from Sunstone. So i guess I'll wait for an upcoming release.
Ideally, this would be implemented on an image basis like oneimage create -d 1 --name raw_to_qcow2 --convert qcow2 --path http://service.ci/images/alpine-testing.raw
basically extending the one.image.allocate call. It would also require Sunstone/Fireedge support.
Also consider having the option to convert after the image has been uploaded.
Author Name: Christian Hüning (Christian Hüning) Original Redmine Issue: 3132, https://dev.opennebula.org/issues/3132 Original Date: 2014-08-06
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!
Cheers, Christian