Prepare vMX Installation on Contrail
If you are running vRouter in DPDK mode, keep the following points in mind when preparing the OpenStack environment:
For Contrail 3.0, make sure you configure the testbed.py file for provisioning a Contrail node to use DPDK. See Preparing the testbed.py File for Provisioning a Contrail Cluster Node with DPDK.
For Contrail 4.0, make sure you provision a Contrail node with DPDK. See Preparing the server.json File for Provisioning a Contrail 4.0 Cluster Node with DPDK.
Enable
iommu=pt
in /etc/default/grub on the compute node.If using the contrail-3.0.3.0-69 release, upgrade the compute nodes to the libvirt 1.2.16 packages manually with the following commands and restart the nova-compute and libvirt-bin services.
dpkg -i /opt/contrail/contrail_install_repo/libvirt-bin_1.2.16-2ubuntu11.15.10.4~cloud0_amd64.deb dpkg -i /opt/contrail/contrail_install_repo/libvirt0_1.2.16-2ubuntu11.15.10.4~cloud0_amd64.deb
Enable Huge Pages for all VMs to allow them to transmit traffic.
Verify if DPDK is enabled on the compute nodes with the
contrail-status
command. The status ofcontrail-vrouter-dpdk
is active.Make sure the NIC cards used for the contrail-vhost network (that connects compute and controller nodes) and the SR-IOV network (that is provided to VFD process) are different network cards. Use the
ethtool -i
command to verify that bus-info field is from different cards.
To prepare the OpenStack environment to install vMX, perform these tasks:
Preparing the Controller Node for vMX
To prepare the controller node:
Preparing the Compute Nodes
- Preparing the Compute Node for vMX
- Configuring the Compute Node for SR-IOV Interfaces for Contrail 4.0
- Configuring the Compute Node for SR-IOV Interfaces for Contrail 3.0
Preparing the Compute Node for vMX
To prepare the compute node:
Configuring the Compute Node for SR-IOV Interfaces for Contrail 4.0
Starting in Junos OS Release 17.4R1, the following procedure is only for Contrail 4.0
(For Contrail 4.0) To configure the SR-IOV interfaces:
Configuring the Compute Node for SR-IOV Interfaces for Contrail 3.0
The following procedure is only for Contrail 3.0 and VFD agent.
(For Contrail 3.0 only) To configure the SR-IOV interfaces: