Ask Your Question
1

How can I come up with a VM with 2 nics automatically configured by dhcp?

asked 2014-07-21 02:40:44 -0500

arturo.mayoral gravatar image

Hello devs,

I have an openstack cloud deployment with 1 controller node, 1 hybrid network/compute node with neutron-* services (l3, dhcp-agent, neutron-plugin-openvswitch-agent) and 2 more compute nodes with neutron-ovs-plugin and dhcp-agent in each of them.

I have configured three different networks in neutron: - Public - Private1 - Private2

I have been working with VMs in one of the private ones and everything have been working properly for a long time, but now I am trying to create VMs attached to the two Private networks at the same time with 2 nics. I can create them and no-errors occur but, when I open the console I discover that there is only one NIC configured by dhcp. The other one is created but is not "up-and-running" and the IP is not configured.

Furthermore, I detected that the VM only sends DHCP-Discover msgs of one of the Nics and I dont know why.

I am using Openstack Havanna distribution and the VMs are created with a Cirros-Image.

I would very appreciate if anyone could have any idea of which could be the problem.

Thanks you, Arturo Mayoral.

edit retag flag offensive close merge delete

Comments

1

That's right Beny,

I modified the Cirros image by adding another line in /etc/network/interfaces file:

auto eth1 iface eth1 inet dhcp

,and now I can boot an instance with two Nics which automatically are configured by DHCP agent.

Thanks you very much, Regards,

Arturo.

arturo.mayoral gravatar imagearturo.mayoral ( 2014-07-21 07:59:50 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-07-21 06:59:59 -0500

Beny gravatar image

Hi Arturo,

I guess by default only one nic card is enabled in the cirros image.

So you could try bundle a new image with two nic cards enabled (eth0 and eth1) and launching an instance will get the dhcp address.

Thanks, Beny

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

Stats

Asked: 2014-07-21 02:40:44 -0500

Seen: 1,089 times

Last updated: Jul 21 '14