Add a note to dev-quickstart

Devstack create multiple networks, a Network ID has to be specific
when boot a instance with admin account.

Change-Id: I2cc0835950a57560493ee11089d89cd3a471125c
This commit is contained in:
Lin Tan 2015-02-21 21:45:16 +08:00
parent 389f201892
commit b4c919abde

View File

@ -364,6 +364,14 @@ Source credentials, create a key, and spawn an instance::
# spawn instance
nova boot --flavor baremetal --image $image --key-name default testing
.. note::
Because devstack create multiple networks, we need to pass an additional parameter
`--nic net-id` to the nova boot command when using the admin account, for example:
net_id=$(neutron net-list | egrep "$PRIVATE_NETWORK_NAME"'[^-]' | awk '{ print $2 }')
nova boot --flavor baremetal --nic net-id=$net_id --image $image --key-name default testing
As the demo tenant, you should now see a Nova instance building::
nova list