You can configure VMkernel port binding for the RDMA adapter using a vSphere distributed switch and one uplink per switch. Configuring the network connection involves creating a virtual VMkernel adapter for each physical network adapter. You use 1:1 mapping between each virtual and physical network adapter.
Procedure
- Create a vSphere distributed switch with a VMkernel adapter and the network component.
- In the vSphere Client, select Datacenter, and click the Networks tab.
- Click Actions , and select .
- Select a name for the switch.
Ensure that the location of the data center is present within your host, and click Next.
- Select the ESXi version as 7.0.0 and later, and click Next.
- Enter the required number of uplinks, and click Finish.
- Add one or more hosts to your distributed virtual switch.
- In the vSphere Client, select Datacenter, and click Distributed Switches..
A list of available DSwitches appear.
- Right-click the DSwitch, and select Add and Manage Hosts from the menu.
- Select Add hosts, and click Next.
- Select your host, and click Next.
- Select Assign uplink.
- Enter the relevant uplink to assign the vmnic.
- Assign a VMkernel adapter, and click Next.
- In the vSphere Client, select the DSwitch, and click the Ports tab.
You can view the uplinks created for your switch here.
- In the vSphere Client, select Datacenter, and click Distributed Switches..
- Create distributed port groups for the NVMe over RDMA storage path.
- In the vSphere Client, select the required DSwitch.
- Click Actions and select .
- Under Configure Settings, enter the general properties of the port group.
If you have configured a specific VLAN, add it in the VLAN ID.Note: Network connectivity issues might occur if you do not configure VLAN properly.
- Configure the VMkernel adapters.
- In the vSphere Client, expand the DSwitch list, and select the distributed port group.
- Click .
- In the Select Member Hosts dialog box, select your host and click OK.
- In the Configure VMkernel Adapter dialog box, ensure that the MTU matches to the Switch MTU.
- Under Available services, select NVMe over RDMA for appropriate tagging.
- Click Finish.
- Repeat step b and step c to add multiple RDMA capable NICs.
- Set NIC teaming policies for the distributed port groups.
- In the Distributed Port Group, click .
- Click Teaming and Failover, and verify the active uplinks.
- Assign one uplink as Active for the port group, and the other uplink as Unused.
Repeat step c for each of the port groups created.