Thanks for the reply the question is how can I distinguish the image in 'real' qcow2 format ? I mean, considering cinder copy from image to volume case, I need first download that image from glance, then copy contents to volume ,'real' qcow2 will keep the image while I expect the qcow2 to be converted into raw format within the given command, without a explicit format, how to decide whether the convent will be made or not?
Thanks Best Regards! Kevin (Chen) Ji 纪 晨 Engineer, zVM Development, CSTL Notes: Chen CH Ji/China/IBM@IBMCN Internet: jiche...@cn.ibm.com Phone: +86-10-82454158 Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC From: Eric Harney <ehar...@redhat.com> To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org> Date: 10/05/2016 06:19 PM Subject: Re: [openstack-dev] [glance][cinder][nova] zip for raw Disk Format On 10/05/2016 05:46 AM, Chen CH Ji wrote: > > From [1] we support a few common and vendor specific disk format, as use > raw image sometimes will be very big and do we have existing any method to > consider zip the raw disk so the disk space might be saved as an option to > offer to end user and admin ? so something like [2] could be enhanced to > support zipped format? > Thanks > The qcow2 format supports compression and is one of the most widely supported image formats that can be used with OpenStack. You can convert a raw image to qcow2 with: $ qemu-img convert -f raw -O qcow2 -c image.raw image.qcow2 And then upload image.qcow2 to Glance. > [1] http://docs.openstack.org/developer/glance/formats.html > [2] > https://github.com/openstack/cinder/blob/master/cinder/image/image_utils.py#L182 > > Best Regards! > > Kevin (Chen) Ji 纪 晨 > > Engineer, zVM Development, CSTL > Notes: Chen CH Ji/China/IBM@IBMCN Internet: jiche...@cn.ibm.com > Phone: +86-10-82454158 > Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, > Beijing 100193, PRC > __________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev