To configure the Compute node's networking for the VM images, the overall steps are:
Set the
network_manager
option in nova.conf.Use the
nova network-create label --fixed-range-v4 CIDR [--vlan
command to create the subnet that the VMs reside on, specifying a VLAN if running in VLAN Network Mode.vlan_id
]Integrate the bridge with your network.
By default, Compute uses the VLAN Network Mode. You choose the networking mode for your virtual instances in the nova.conf file. Here are the three possible options:
--network_manager=nova.network.manager.FlatManager
Simple, non-VLAN networking
--network_manager=nova.network.manager.FlatDHCPManager
Flat networking with DHCP, you must set a bridge using the
flat_network_bridge
option--network_manager=nova.network.manager.VlanManager
VLAN networking with DHCP. This is the Default if no network manager is defined in nova.conf.
Use the following command to create a subnet (named private in this example) that your VMs will run on :
nova network-create private --fixed-range-v4 192.168.0.0/24
When using the XenAPI compute driver, the OpenStack services run in a virtual machine. This means networking is significantly different when compared to the networking with the libvirt compute driver. Before reading how to configure networking using the XenAPI compute driver, you may find it useful to read the Citrix article on Understanding XenServer Networking and the section of this document that describes XenAPI and OpenStack.