<div>On Thu, Jul 26, 2012 at 8:06 AM, David Kranz <span dir="ltr"><<a href="mailto:david.kranz@qrclab.com" target="_blank">david.kranz@qrclab.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am a bit ignorant about image formats and such. The size of the Ubuntu precise cloud image at <a href="http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img" target="_blank">http://uec-images.ubuntu.com/<u></u>precise/current/precise-<u></u>server-cloudimg-amd64-disk1.<u></u>img</a> is about 221Mb. If I boot that image with flavor m1.tiny and use image-create I get an image that is 2Gb. If I do the same with flavor m1.large the resulting image is 10Gb.  Is there a way to create snapshots that don't result in huge images?<br>

<br>
 -David<br>
<br>
</blockquote></div><br></div><div>David,<div><br></div><div>This has to do with the disk format that you are using (for example raw vs. qcow2).  Unless you are using a sparse disk format the snapshot will always be the total size of the root partition. By default when Nova creates an image it expands the root partition to 10GB so when you create a snapshot of that partition it will also be 10GB.  By switching the disk format you are using to a sparse format you should be able to avoid this behavior.  The m1.tiny flavor is treated as a special case by Nova so that is why the root partition and corresponding snapshot is only 2GB.<br>
<br>-Blake</div></div>