Ask Your Question
0

Auto assign IP to VM

asked 2013-06-05 07:50:01 -0500

rajeshg gravatar image

updated 2013-06-05 23:18:58 -0500

smaffulli gravatar image

We have installed openstack grizzly and able to create instance and from horizon under the instances menu we can see an ip is assigned to the new linux vm, but when we login into the vm we found that the ip is not assigned to eth0.

I wanted to know whether the ip displayed in horzion UI will be physically assigned to the network card of the the vm? or its like horizon will just display the ip to be assigned and i have to manually edit linux interfaces file?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-06-05 11:50:22 -0500

jay-janardhan gravatar image

updated 2013-06-05 11:50:38 -0500

It's unclear from your question whether you are talking about floating IP or the internal IP. If its floating IP you are correct. its a NAT so when you login you see a different IP assigned to your interface.

edit flag offensive delete link more

Comments

With my assumption Floating ip as public ip and Internal ip as private,the ip i was talking about is the private ip. Ip to be assigned to network card of the vm i am creating.Will this be taken care by openstack or its like horizon will just display the ip to be assigned and i have to manually add

rajeshg gravatar imagerajeshg ( 2013-06-06 04:53:09 -0500 )edit
0

answered 2013-07-03 03:31:23 -0500

chen-li gravatar image

The ip displayed in horzion UI can be automate assigned to your vm.

If you're working under quantum, you should start the DHCP agent and create the network with DHCP enable. Then, you will find new "dnsmasq" process start at the node you're running DHCP agent.

Then, make sure after the vm start, it will try to get IP from DHCP.

edit flag offensive delete link more
0

answered 2013-07-03 09:58:10 -0500

Ashokb gravatar image

In quantum when a port gets created IP is also allotted right away(there are blueprints targeted for havana to make the ip allocation configurable). The IP which you are seeing in the horizon is the IP which gets allotted for the Vnic associated. If your quantum DHCP(dnsmasq) configuration is proper and also while creating the subnet if the DHCP is enabled then your instance should get the allotted IP from DHCP without issues.If you dont enable the DHCP while creating subnet then you will need to manually configure the interfaces of your instance.

Just because the IP is displayed in the horizon doesnt necessarily mean that your instance received the IP. You may need to debug further to isolate the problem :-).Hope it clarifies

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

Stats

Asked: 2013-06-05 07:50:01 -0500

Seen: 571 times

Last updated: Jul 03 '13