[Openstack] Shrink Image's Flavor Requirements

Georgios Dimitrakakis giorgis at acmac.uoc.gr
Sun Mar 26 02:37:47 UTC 2017


 Hi Chris!

 Thanks for pointing out the "--min-disk" parameter. I haven't used that 
 one before.

 I 'll try it out and post back.

 Regards,

 G.

 On Sat, 25 Mar 2017 18:39:09 -0700, Chris Suttles wrote:
> You might be able to change it via openstack command, probably
> something like 'openstack show image <Id>'  / 'openstack image set ??
> <id>'
>
> You can definitely download the image to a file and then upload a new
> image, specifying --min-disk. Something like 'openstack image save
> --file <file> <id>' and then just 'openstack image create --file
> <file> --min-disk <disk size in gb> <image name>'
>
> HTH,
>
> -Chris
>
>> On Mar 25, 2017, at 5:31 PM, Georgios Dimitrakakis 
>> <giorgis at acmac.uoc.gr> wrote:
>>
>>
>> Hello!
>>
>> Let's assume that I have a VM's image that has been taken when the 
>> VM was launched with a flavor of 50GB for the root disk.
>> Now when I try to spawn a new VM out of that image I cannot do it 
>> with a flavor that has disk less than 50GB even if the VM itself 
>> inside uses only 5GB.
>>
>> Is there a way to shrink the image's flavor requirements?
>>
>> Best,
>>
>> G.
>>
>>
>>
>> _______________________________________________
>> Mailing list: 
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe : 
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack





More information about the Openstack mailing list