<div dir="ltr">Thanks Don,<div> it works, i was thinking that image should be large enough to fit in all flavor sizes ;-)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 10, 2014 at 8:39 PM, Don Waterloo <span dir="ltr"><<a href="mailto:don.waterloo@gmail.com" target="_blank">don.waterloo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 10 August 2014 09:55, mad Engineer <<a href="mailto:themadengin33r@gmail.com">themadengin33r@gmail.com</a>> wrote:<br>
><br>
</div><div><div class="h5">> Hi,<br>
> i am using Centos6.5 with Icehouse release,on KVM Hypervisor,<br>
><br>
> Trying to launch Centos instance from a newly uploaded qcow2 image.<br>
><br>
> Created centos6.5 image in qcow2 format with 60G virtual size and actual size of 1.7G<br>
><br>
> image: Centos6.5_x64.qcow2<br>
> file format: qcow2<br>
> virtual size: 60G (64424509440 bytes)<br>
> disk size: 1.7G<br>
> cluster_size: 65536<br>
><br>
> after uploading to glance<br>
><br>
> glance image-list<br>
><br>
> glance image-list<br>
> +--------------------------------------+---------------------+-------------+------------------+------------+--------+<br>
> | ID | Name | Disk Format | Container Format | Size | Status |<br>
> +--------------------------------------+---------------------+-------------+------------------+------------+--------+<br>
> | 34b7dc50-51b2-4c01-9605-444f4f01f02d | centos6.5 | qcow2 | bare | 1851195392 | active |<br>
><br>
><br>
> When an instance is created from above image with flavor m1.small ie with 20.0GB Disk<br>
><br>
> compute.log shows<br>
> FlavorDiskTooSmall: Flavor's disk is too small for requested image.<br>
> any idea why is it so,even with disk size 60Gb > 20G<br>
><br>
> Can this be a Bug<br>
><br>
> "Cirros works fine"<br>
> Thanks,<br>
<br>
</div></div>It must allocate the 60GB that it might grow to.<br>
Instead, make the disk be 2GB (qemu-img create centos6.5.qcow 2G),<br>
install in it, and install the growfs info.<br>
When you launch from glance to nova, it will auto-size to whatever<br>
disk you give it. Use a flavor with min-disk 2G.<br>
<br>
Now someone can launch it @ 2G, have ~300MB free, or launch it as 20G<br>
and have ~18GB free, their call.<br>
<br>
But the way you have it, you must use a flavor of min-disk >= 60.<br>
<br>
Not a bug.<br>
</blockquote></div><br></div>