Ask Your Question

how to configure multiple interfaces to virtual machine instance using compute nova (multinic support) [closed]

asked 2013-12-19 21:13:41 -0500

thota gravatar image

updated 2013-12-19 21:18:30 -0500

I have two node setup - controller and a compute1. The compute1 node has got two NICs and I want to create two flat networks using nova network as described in (multinic support). The other way, I want to configure two interfaces to a virtual machine instance. I could create one flat network using FlatDHCPManager as described in openstack documentation but facing problems while configuring two flat networks for two NICs. Firstly, I'm not sure how to configure nova.conf to configure "flat_network_bridge" and "flat_interface" for two NICs? could someone here help in configuring the same. Thanks in advance.

Best Prashanth

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2013-12-21 05:53:11.727866

2 answers

Sort by ยป oldest newest most voted

answered 2013-12-21 02:11:39 -0500

thota gravatar image

updated 2015-10-19 01:25:56 -0500

sunnyarora gravatar image

I could fix this - as described below.

compute1 Node details: Host OS: RHEL-6.4 Two Physical Network devices for Internal data communication (eth10 and eth11) and one (eth4) to connect to external network, Internet. Network Manager used: FlatDHCPManager

/etc/nova/nova.conf file
firewall_driver                 nova.virt.libvirt.firewall.IptablesFirewallDriver 
 network_size                  254
 allow_same_net_traffic   False
 multi_host                      True
 send_arp_for_ha             True
 share_dhcp_address        True
 force_dhcp_release         True
 flat_interface                 eth11
flat_network_bridge         brfab2
 public_interface              eth4

From "controller" issued below command to create two networks.
# nova network-create vmnet_fab1 --fixed-range-v4=  --bridge=brfab1 --bridge-interface=eth10 --multi-host=T
# nova network-create vmnet_fab2 --fixed-range-v4=  --bridge=brfab2 --bridge-interface=eth11 --multi-host=T 

list the networks. Below command lists the above created network id's, say net_id_1 and net_id_2.
# nova network-list

Now, boot the Virtual Machine -
# nova boot --flavor <flavor_id> --key_name <ssh_key> --image <image_id> --security_group default --nic net-id=<net_id_1> --nic net-id=<net_id_2>

A virtual machine is launched with two network interfaces, one connected to vnet_fab1 and other connected to vnet_fab2.

That's all !

edit flag offensive delete link more

answered 2013-12-20 09:16:54 -0500

jtopjian gravatar image

I remember a similar discussion earlier this year on the openstack-operators mailing list:

Maybe that'll help or point you in the right direction.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-12-19 21:13:41 -0500

Seen: 4,834 times

Last updated: Oct 19 '15