Ask Your Question

How do I boot from image and create a volume

asked 2017-07-20 11:02:01 -0500

ge0rgi gravatar image

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-

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> ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-07-20 21:06:48 -0500

updated 2017-07-20 21:09:26 -0500

Detailed intro to block device mapping: You want v2, which is done with the --block-device option of the nova boot command. The option you have been using, --block-device-mapping, is v1. I wouldn't recommend it.


nova boot --block-device source=image,id=IMAGE_ID,dest=volume,size=VOLUME_SIZE,bootindex=0 ...

I am not 100% certain about the size; is it required? If yes, I believe it's the size of the volume that you ask Nova to create.

By the way, it would seem that the openstack client doesn't have an equivalent option.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-07-20 11:02:01 -0500

Seen: 787 times

Last updated: Jul 20 '17