# Revision history [back]

Detailed intro to block device mapping: https://docs.openstack.org/nova/latest/block_device_mapping.html. 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.

So:

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.

Detailed intro to block device mapping: https://docs.openstack.org/nova/latest/block_device_mapping.html. 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.

So:

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.