[Openstack] How to download image to volume

ZHOU TAO A tao.a.zhou at alcatel-lucent.com
Fri Aug 22 01:37:58 UTC 2014


That will create a new volume.
I need to download a image to an existing volume.

I have achieved that by copying the image to cinder host and use 
qemu-img to write it to the volume.

Thanks
On 08/22/2014 02:42 AM, Ryan Lucio wrote:
> Hi -
>
>  From the command line, you can supply an image id along with the cinder create command to create a volume from a image storage in glance.
>
> eg, cinder create --image-id 25d00ddb-203a-4d50-93e3-103ab05bfbcd ......
>
> Just be sure that your volume is big enough to hold the image!
>
> For more options, just type 'cinder help create'.
>
> --ryan
> ________________________________________
> From: ZHOU TAO A <tao.a.zhou at alcatel-lucent.com>
> Sent: Thursday, August 21, 2014 12:13 AM
> To: openstack at lists.openstack.org
> Subject: [Openstack] How to download image to volume
>
> Hi All,
>
> I know cinder has a subcommand upload-to-image, which can upload volume
> to image service, while I want to do the opposite--download image to
> volume without recreating the volume. anyone knows how to do that?
>
>
> Thanks
>
> _______________________________________________
> 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