Ask Your Question

raw image going from 1.2Gb to 60Gb when transferring

asked 2014-07-02 06:56:58 -0500

Deeptanshu gravatar image

updated 2014-07-02 17:20:34 -0500

smaffulli gravatar image

I have downloaded one qemu image of ubantu listed below. I have converted this image to RAW with the option given below. Actual size of the RAW image is 1.2 GB but when i am trying to upload it through glance it is showing 60 GB as actual image is created with 60 GB. When i am copying this image to other location it is transferring 60 GB image file. Please suggest any solution so it will occupy only actual size i.e 1.2 GB.

 qemu-img convert -f qcow2 -O raw ubuntu-precise_x86_64_60G.qcow2 Ubantu.img

 407M    ubuntu-precise_x86_64_60G.qcow2

 Raw image size  1.2G    Ubantu.img

Size while copying the image to other location 61G Ubantu.img

edit retag flag offensive close merge delete


something went wrong somewhere... have you looked at logs? tried converting it again? update the question as you find out more details.

smaffulli gravatar imagesmaffulli ( 2014-07-02 17:21:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-07-05 07:28:36 -0500

dachary gravatar image

ubuntu-precise_x86_64_60G.qcow2 is a compressed 60GB disk that is expanded into 60GB of actual space when converted to raw. If this is not what you want, you can get a smaller image from the Ubuntu repositories and upload it with

 glance add name="ubuntu-precise-12.04" disk_format=raw container_format=bare < precise-server-cloudimg-amd64-disk1.img
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-07-02 06:56:58 -0500

Seen: 205 times

Last updated: Jul 05 '14