Ask Your Question
0

How to get the NIC information when launching instance from commandline

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

anonymous user

Anonymous

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

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.

Questions.

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

Comments

What says keystone endpoint-list ?

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

1 answer

Sort by ยป oldest newest most voted
1

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

Prateek K gravatar image

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

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

Comments

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 -0600 )edit

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

Stats

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

Seen: 958 times

Last updated: Dec 15 '15