Create Content



image image image image image image



On This Page

Created on Dec 16, 2021

Updated on Mar 16, 2022

Introduction

This post describes how to configure a VMware vSphere Distributed Switch (VDS) with NVIDIA ConnectX-6 card and NATIVE VMware ESXi Driver on VMware vSphere Cluster version 7.0.3c, and perform basic initial configuration steps to enable the driver by using ESXi CLI interface.

VMware ESXi, vSphere Cluster and vCenter install and configuration is out of the scope of this post.

Abbreviations and Acronyms

TermDefinitionTermDefinition
VDS NSX-managed Virtual Distributed SwitchVMVirtual Machine

References

VMware vSphere Distributed Switch

VMware vSphere Distributed Switch (VDS) provides a centralized interface from which you can configure, monitor and administer virtual machine access switching for the entire data center. The VDS provides simplified Virtual Machine network configuration, enhanced network monitoring and troubleshooting capabilities.

NVIDIA® Mellanox® ConnectX®-6 Dx

NVIDIA® Mellanox® ConnectX®-6 Dx is a member of the world-class, award-winning ConnectX series of network adapters. ConnectX-6 Dx delivers two ports of 10/25/40/50/100Gb/s or a single-port of 200Gb/s Ethernet connectivity paired with best-in-class hardware capabilities that accelerate and secure cloud and data center workloads.

Hardware and Software Requirements

Procedure

Configure a VDS

To configure a new VDS, use the following steps.

Create a VDS in a vCenter

To create a new VDS:

  1. Launch the vSphere Web Client and connect to a vCenter Server instance.
  1. On the vSphere Web Client home screen, select the vCenter object from the list on the left.
    Hover over the Distributed Switches from the Inventory Lists area, then click New Distributed Switch (see image below) to launch the New VDS creation wizard.


  2. Provide a name for the new distributed switch and select the location within the vCenter inventory where you would like to store the new VDS (a data center object or a folder).
    Click 
    NEXT.


  3. Select the version of the VDS to create. 
    Click NEXT.


  4. Specify the number of uplink ports as 2, uncheck the Create a default port group box and specify a name for that group.
    Click NEXT.


  5. Click Finish.


  6. Set the MTU for the newly created distributed switch.
    Right-click the new distributed switch in the list of objects and select Settings → Edit Settings... from the Actions menu.

  7. In the SL_W01-DS01 Distributed Switch - Edit Settings dialog box, in the Advanced tab, set:
    MTU to 9000
    Discovery protocol to Link Layer Discovery Protocol
    Operation to Both.
    Click OK.

Adding Hosts to VDS

To add an ESXi host to an existing VDS:

  1. Launch the vSphere Web Client, and connect to the vCenter Server instance.

  2. Navigate to the list of Hosts in the SL-WL01-cluster and select ESXi host.

  3. Select Configure → Networking → Physical adapters.

  4. Check the network ports that you are going to use. In this case, vmnic4 and vmnic5 are used.

              
  5. Navigate to the list of distributed switches.

  6. Right-click the new distributed switch in the list of objects and select Add and Manage Hosts from the Actions menu.

  7. Select the Add hosts button and click NEXT.


  8. From the list of the new hosts, check the boxes with the names of each ESXi host you would like to add to the VDS.
    Click NEXT.


  9. In the next Manage physical adapters menu click on Adapters on all hosts and configure vmnic4 and vmnic5 (Sample) in an ESXi host as Uplink 1 and Uplink 2 for the VDS.



  10. In the next Manage VMkernel adapters and Migrate VM networking menus, click NEXT to continue.


  11. Click FINISH.

Creating Distributed Port Groups for Storage Traffic

This section lists the steps required to create two Distributed Port Groups with one Active and one Standby uplinks.

  1. Add VMkernel Adapters for Distributed Port Groups by right-clicking on Distributed switch, and select Distributed Port Group>New Distributed Port Group.


  2. On the New Distributed Port Group dialog box, enter Name as <NSX-VLAN1624-DPGand click NEXT.


  3. Set the VLAN type as VLAN trunking, check the Customize default policies configuration checkbox, and click NEXT.


  4. On the Security dialog box, click NEXT.


  5. On the Traffic shaping dialog box, click NEXT.


  6. NIC Teaming

    In the Teaming and failover dialog box, set Uplink 1 as the active uplink and Uplink 2 to standby uplink. Click NEXT.



  7. In the Monitoring dialog box, set NetFlow to Disabled, and click NEXT.


  8. In the Miscellaneous dialog box, set Block All Ports to No, and click NEXT.


  9. In the Ready to complete dialog box, review all the changes before you click FINSIH.


Adding a VMkernel Network for vSAN Port Group 

To add VMkernel adapters for distributed port groups, follow the steps below.

  1. Right click the distributed port group and select Add VMkernel Adapters.

  2. Click Attached Hosts...

  3. Select the hosts and click OK.

  4. Click NEXT in the Select hosts dialog box.
  5. Select vSAN(sample) in Available services, and click NEXT.

  6. Enter the Network Settings and Gateway details, and click NEXT.

  7. Click FINISH.


Done !

Authors


Boris Kovalev

Boris Kovalev has worked for the past several years as a Solutions Architect, focusing on NVIDIA Networking/Mellanox technology, and is responsible for complex machine learning, Big Data and advanced VMware-based cloud research and design. Boris previously spent more than 20 years as a senior consultant and solutions architect at multiple companies, most recently at VMware. He has written multiple reference designs covering VMware, machine learning, Kubernetes, and container solutions which are available at the Mellanox Documents website.



Notice

This document is provided for information purposes only and shall not be regarded as a warranty of a certain functionality, condition, or quality of a product. Neither NVIDIA Corporation nor any of its direct or indirect subsidiaries and affiliates (collectively: “NVIDIA”) make any representations or warranties, expressed or implied, as to the accuracy or completeness of the information contained in this document and assumes no responsibility for any errors contained herein. NVIDIA shall have no liability for the consequences or use of such information or for any infringement of patents or other rights of third parties that may result from its use. This document is not a commitment to develop, release, or deliver any Material (defined below), code, or functionality.
NVIDIA reserves the right to make corrections, modifications, enhancements, improvements, and any other changes to this document, at any time without notice.
Customer should obtain the latest relevant information before placing orders and should verify that such information is current and complete.
NVIDIA products are sold subject to the NVIDIA standard terms and conditions of sale supplied at the time of order acknowledgement, unless otherwise agreed in an individual sales agreement signed by authorized representatives of NVIDIA and customer (“Terms of Sale”). NVIDIA hereby expressly objects to applying any customer general terms and conditions with regards to the purchase of the NVIDIA product referenced in this document. No contractual obligations are formed either directly or indirectly by this document.
NVIDIA products are not designed, authorized, or warranted to be suitable for use in medical, military, aircraft, space, or life support equipment, nor in applications where failure or malfunction of the NVIDIA product can reasonably be expected to result in personal injury, death, or property or environmental damage. NVIDIA accepts no liability for inclusion and/or use of NVIDIA products in such equipment or applications and therefore such inclusion and/or use is at customer’s own risk.
NVIDIA makes no representation or warranty that products based on this document will be suitable for any specified use. Testing of all parameters of each product is not necessarily performed by NVIDIA. It is customer’s sole responsibility to evaluate and determine the applicability of any information contained in this document, ensure the product is suitable and fit for the application planned by customer, and perform the necessary testing for the application in order to avoid a default of the application or the product. Weaknesses in customer’s product designs may affect the quality and reliability of the NVIDIA product and may result in additional or different conditions and/or requirements beyond those contained in this document. NVIDIA accepts no liability related to any default, damage, costs, or problem which may be based on or attributable to: (i) the use of the NVIDIA product in any manner that is contrary to this document or (ii) customer product designs.
No license, either expressed or implied, is granted under any NVIDIA patent right, copyright, or other NVIDIA intellectual property right under this document. Information published by NVIDIA regarding third-party products or services does not constitute a license from NVIDIA to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property rights of the third party, or a license from NVIDIA under the patents or other intellectual property rights of NVIDIA.
Reproduction of information in this document is permissible only if approved in advance by NVIDIA in writing, reproduced without alteration and in full compliance with all applicable export laws and regulations, and accompanied by all associated conditions, limitations, and notices.
THIS DOCUMENT AND ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS, DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS (TOGETHER AND SEPARATELY, “MATERIALS”) ARE BEING PROVIDED “AS IS.” NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL NVIDIA BE LIABLE FOR ANY DAMAGES, INCLUDING WITHOUT LIMITATION ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF ANY USE OF THIS DOCUMENT, EVEN IF NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Notwithstanding any damages that customer might incur for any reason whatsoever, NVIDIA’s aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms of Sale for the product.

Trademarks
NVIDIA, the NVIDIA logo, and Mellanox are trademarks and/or registered trademarks of NVIDIA Corporation and/or Mellanox Technologies Ltd. in the U.S. and in other countries. Other company and product names may be trademarks of the respective companies with which they are associated.

Copyright
© 2022 NVIDIA Corporation & affiliates. All Rights Reserved.