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

Reply via email to