[Openstack] [Cinder/Heat]: How do you define in a template an instance that boots from volume?

Simon Pasquier simon.pasquier at bull.net
Mon Dec 9 11:24:20 UTC 2013


Hi,

On 09/12/2013 11:56, Juha Tynninen wrote:
> Hi,
>
> I'm using stable/havana version of Openstack.
>
> I can boot instance from the pre-existing bootable Cinder volume with
> nova command:
> nova boot --flavor 2 --block_device_mapping vda=<volume id>:::0 <name
> for instance>
>
> ...but how can this be done with a Heat template? Or can it be done?
>
> AWS::EC2::Instance resource doesn't seem to have a property for this.

You should be able to use the Volumes property [1].

Cheers,

Simon

[1] 
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-volumes

>
> Thanks,
> -Juha
>
>
> _______________________________________________
> 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