assigning IP address to a VM interface

asked 2013-04-10 00:54:31 -0500

prashanth-prahal gravatar image

Hi Folks,

Probably a deep-dive question into quantum internals - I'm trying to understand how the IP address'es are assigned to VM network interfaces and trying to figure out which part of the openstack/quantum code base handles this. This is my understanding :

  • During nova boot, nova provides the network-id to the quantum plugin and creates a new port (CreatePort API)
  • Configured quantum plugin creates the ports and assigns the IP address/MAC address.
  • This port information is then configured in the XML config files as required by the hypervisor, before the instance boots up.

Is this a correct ?

Thanks !

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2013-04-10 10:22:35 -0500

gongysh gravatar image , click the 'Slides on Technical Architecture of Quantum' slide 28: step 2 creates the quantum port and allocates the IP, step 5 creates the ovs port by vif driver in nova. step 9 gets the IP in VM.


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-04-10 00:54:31 -0500

Seen: 28 times

Last updated: Apr 10 '13