NSX

Create VMware vSphere Distributed Switch VDS for NSX Data Center

A look at how to Create VMware vSphere Distributed Switch VDS for NSX Data Center including provisioning the VDS and adding to your ESXi hosts

In deploying a VMware NSX environment, one of the first things that you will want to do is create vSphere Distributed Switches for the hosts in the environment to use with NSX. In fact, the NSX vSwitch is based on the vSphere Diestributed Switch or VDS and provides the uplinks for host connectivity to the TOR physical switches in the environment. It is considered best practice to go ahead and install and configure the VDSs in the environment before installing NSX Data Center for vSphere environments. In this post, we will take a look at the best practices associated with using VDSs with VMware NSX as well as the process to Create VMware vSphere Distributed Switch VDS for NSX Data Center and apply it to the hosts in the future NSX environment.

Why Use vSphere Distributed Switch with NSX?

Well for one, vSphere Distributed Switches are required for being in a supported condition with NSX for vSphere. NSX services are not supported on a vSphere Standard Switch. For each host cluster that will participate in NSX, all hosts within the cluster must be attached to a common VDS.

In fact, if you have multiple hosts in the cluster and want to prepare the hosts for NSX, you can only associate NSX with a common vSphere Distributed Switch on the hosts. VMware states that often to simplify a deployment, each cluster of hosts is associated with only one VDS, even if some of the VDSs span multiple clusters.

When VDS switches are created a DVUplinks port group is created by default that is the defacto trunk port. It can send and receive tagged frames. By default, it carries all VLAN IDs. This means any VLAN ID can be carried through the vmnic network adapters associated with teh DVUplink slot and filtered by the hypervisor hosts.

Create VMware vSphere Distributed Switch VDS for NSX Data Center

Using the new HTML 5 fully-featured vSphere client in vSphere 6.7 Update 1, let’s see how to create a new vSphere Distributed Switch or VDS and then assign the switch to our hosts in a vSphere cluster. Navigate to the Network node in vSphere client and right-click the Datacenter name and choose Distributed Switch > New Distributed Switch.

Create-VMware-vSphere-Distributed-Switch-VDS-for-NSX-Data-Center

Create VMware vSphere Distributed Switch VDS for NSX Data Center

Choose a name for the new vSphere Distributed Switch.

Set-the-name-and-location-of-the-VDS-vSphere-Distributed-Switch
Set the name and location of the VDS vSphere Distributed Switch

Choose the Distributed switch version. You can see the features per version by clicking the information bubble.

Select-the-version-of-the-vSphere-Distributed-Switch-VDS
Select the version of the vSphere Distributed Switch VDS

Choose the number of uplinks per Distributed Switch as well as Network I/O Control, Default port group, and Port group name.

Configure-uplinks-network-io-control-and-port-groups-of-new-vSphere-Distributed-Switch-VDS
Configure uplinks network io control and port groups of new vSphere Distributed Switch VDS

Click Finish to complete the New Distributed Switch wizard.

Ready-to-complete-the-creation-of-the-new-vSphere-Distributed-Switch-VDS
Ready to complete the creation of the new vSphere Distributed Switch VDS

The next step is to add the newly created vSphere Distributed Switch(es) to our ESXi hosts. Keep in mind the major difference architecturally between the Distributed Switch and the Standard Switch is the Distributed Switch lives at the vCenter Server level. This means you are creating it at the vCenter level and then adding it to the vSphere ESXi servers. Click the Distributed Switch you want to add to the ESXi hosts > Add and Manage Hosts.

Add-the-vSphere-Distributed-Switches-to-the-VMware-vSphere-ESXi-hosts
Add the vSphere Distributed Switches to the VMware vSphere ESXi hosts

Click the Add hosts option in the wizard.

Choose-to-add-hosts-to-the-new-vSphere-Distributed-Switch
Choose to add hosts to the new vSphere Distributed Switch

Choose the +New Hosts option.

Choose-the-New-Hosts-button-to-add-ESXi-hosts-to-the-VDS
Choose the New Hosts button to add ESXi hosts to the VDS

This will bring up the hosts that are compatible with adding to the new vSphere Distributed Switch. You can choose the select all checkbox to add all the hosts at once.

Select-the-new-hosts-from-the-list-available-for-the-vSphere-Distributed-Switch
Select the new hosts from the list available for the vSphere Distributed Switch

The hosts are now selected and ready to configure in the rest of the wizard.

Confirm-the-list-of-new-hosts-added-and-click-Next
Confirm the list of new hosts added and click Next

The first thing you need to do is actually tell the ESXi host which physical adapters to use for the vSphere Distributed Switch. If you already have these assigned to Standard Switches, you will be migrating them in the process. Keep in mind you will need at least two network adapters to do this. You will essentially be assigning one to the Distributed Switch and leaving one assigned to the Standard switch for the purposes of adding the Distributed switch. click the Assign uplink to assign a chosen physical adapter to the DVS.

Manage-the-physical-adapters-connected-to-the-new-vSphere-Distributed-Switch
Manage the physical adapters connected to the new vSphere Distributed Switch

Here you can manually choose the uplink or choose the Auto-assign option to have it assigned automatically. Also, a great setting here that can save a lot of work that is duplicated is the Apply this uplink assignment to the rest of the hosts. This will duplicate the choices made here to the rest of the hosts you are adding to the Distributed Switch.

Assign-the-uplink-slot-to-the-physical-adapter-chosen-and-choose-to-perform-same-configuration-on-all-ESXi-hosts
Assign the uplink slot to the physical adapter chosen and choose to perform same configuration on all ESXi hosts

As you can see, by doing this once, the same configuration is made across all the hosts.

Uplink-assigned-across-all-hosts-for-the-new-vSphere-Distributed-Switch-VDS
Uplink assigned across all hosts for the new vSphere Distributed Switch VDS

Next, you can manage the VMkernel adapters and migrate these to the new distributed switch added if you want. Keep in mind you do not have to at this point as long as you have another physical adapter servicing the VMkernel port on the other switch.

Migrate-vmkernel-adapters-as-part-of-the-assigning-of-vSphere-Distributed-Switches-to-hosts
Migrate vmkernel adapters as part of the assigning of vSphere Distributed Switches to hosts

The same thing goes here for choosing the network and port group to migrate the VMkernel adapter to. You can select the checkbox Apply this port group assignment to the rest of the hosts.

Select-the-VDS-port-group-to-assign-to-the-vmkernel-adapter
Select the VDS port group to assign to the vmkernel adapter

After reassigning the VMkernel adapters.

Port-group-assigned-to-VMkernel-adapter
Select the VDS port group to assign to the vmkernel adapter

You can also choose to migrate the VM networking during this process if you desire as well.

Choose-whether-or-not-to-migrate-VM-networking-during-the-wizard
Choose whether or not to migrate VM networking during the wizard

We are now ready to make the changes and add the vSphere Distributed Switch to the hosts.

Ready-to-complete-the-addition-of-the-new-vSphere-Distributed-Switch-to-the-ESXi-host
Ready to complete the addition of the new vSphere Distributed Switch to the ESXi host

The processes kick off and complete in vCenter tasks.

The-network-configuration-is-updated-across-all-hosts-in-the-cluster
The network configuration is updated across all hosts in the cluster

Takeaways

The process to Create VMware vSphere Distributed Switch VDS for NSX Data Center is easily accomplished through the new vSphere client HTML 5 interface. The vSphere Distributed Switch is a requirement for all of the advanced functionality that NSX provides and is the only supported virtual switch for the NSX platform. If you are coming from the vSphere Standard Switch, you will note the centralized creation and management of the VDS as opposed to the VSS. This allows creating the switch once and then adding the switch to the ESXi hosts in the environment. Stay tuned for more NSX configuration and VDS topics.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.