Ask Your Question

how to shrink the image requirements for disk

asked 2013-12-03 15:02:02 -0500

B.Callanan gravatar image

Hi All,

I'm trying to figure out how to shrink the image requirements for disk on a QCOW2 image. The issue is that if an image is first snapshot'ed with a 20 GB disk I am forever lock into that flavor requirement for the instances I spawn for that image.

Is there a way to shrink the size requirement on a QCOW2?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-12-03 21:12:23 -0500

imtiaz.chowdhury gravatar image

You can compress a qcow2 image using qemu-img utility. For example, qemu-img convert -c <input image="" location=""/> -O qcow2 <compressed image="">. This significantly reduces the image size. What I'm not sure is whether compressing the image helps reducing the snapshot size. </compressed>

edit flag offensive delete link more


You can use this API: The following command will change minimum ram to 2000MB and minimum disk to 1GB glance image-update <<uuid or="" name="" of="" image="">> --min-ram 2000 --min-disk 1

Kaitao gravatar imageKaitao ( 2016-04-11 20:02:24 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-12-03 15:02:02 -0500

Seen: 1,342 times

Last updated: Dec 03 '13