Revision history [back]

click to hide/show revision 1
initial version

How do I boot from image and create a volume

I want to create a new instance from an image using nova boot and create a new volume

In the help of nova boot I found the following:

--block-device-mapping <dev-name=mapping>
                                Block device mapping in the format <dev-
                                name>=<id>:<type>:<size(GB)>:<delete-on-
                                terminate>.

How do I know what ID to specify, the volume does not exist yet?

The command I have until now is:

nova boot cmdtest2 --flavor cirros64 --image cirros-0.3.4-x86_64-uec --block-device-mapping /deb/vda=<ID>:disk:10:False

What do I have to specify insted of <ID> ?