[openstack-dev] [glance][cinder][nova] zip for raw Disk Format
Eric Harney
eharney at redhat.com
Wed Oct 5 14:15:56 UTC 2016
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 at IBMCN Internet: jichenjc at cn.ibm.com
> Phone: +86-10-82454158
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District,
> Beijing 100193, PRC
>
More information about the OpenStack-dev
mailing list