Ask Your Question

How to get the NIC information when launching instance from commandline

asked 2015-12-14 22:52:30 -0500

anonymous user


updated 2015-12-14 22:57:41 -0500

Every time I Launch an image other than cirros from Horizon, i get an error "No valid hosts". This time I thought id try doing it from the command line.


What are the minimum arguments required to launch an error free instance?

I used : nova boot --flavor m1.tiny --image cirros-uec command_line_VM but this launched into an error state.

How do I assign it an ip address when (I assume) I do not have neutron installed (how are the other VMs in horizon assigned IP addresses?).

neutron net-list: PublicUR endpoint for network service in RegionOne region not found

edit retag flag offensive close merge delete


What says keystone endpoint-list ?

dbaxps gravatar imagedbaxps ( 2015-12-15 00:13:55 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-12-15 01:22:34 -0500

Prateek K gravatar image

updated 2015-12-15 02:45:36 -0500

Bipin gravatar image

If you are not having neutron then it would be nova-network coming in picture so i guess the command "nova network-list" will come in handy.. Now when it comes to booting a VM you need the following things:-

  1. Flavor
  2. Network
  3. Name of VM
  4. image which VM will use

The command which I use is :-

nova boot  --image <Image-id> --flavor <Flavor_id> --image <IMAGE_ID> --nic net-id=<Network-id> <VM_NAME>

To get details you have to use the following commands:-

nova flavor list
neutron net-list
glance image-list
edit flag offensive delete link more


This is the most helpful answer for beginners I have ever seen.

Thank you so much!

hdg88 gravatar imagehdg88 ( 2015-12-15 23:13:29 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-12-14 22:52:30 -0500

Seen: 1,429 times

Last updated: Dec 15 '15