vCenter HA: Add and Configure Distributed Switches

This post is part of a series on deploying Highly Available vCenter and Platform Services Controllers.

Part 1: vCenter HA: Deploy External Platform Services Controller

Part 2: vCenter HA: Configure NetScaler for External Platform Services Controllers

Part 3: vCenter HA: Replace Certificates for Platform Services Controllers

Part 4: vCenter HA: Connect Platform Services Controllers to Active Directory

Part 5: vCenter HA: Deploy vCenter

Part 6: vCenter HA: Replace Certificates for vCenter

Part 7: vCenter HA: License vCenter

Part 8: vCenter HA: Add and Configure Hosts and Clusters

Part 9: vCenter HA: Add and Configure Datastores and Datastore Clusters

Part 10: vCenter HA: Add and Configure Distributed Switches

Part 11: vCenter HA: Configure vCenter HA

Part 12+: Advanced Tasks (Coming soon)

 

Our next task will be creating new virtual distributed switches and migrating our hosts and virtual machines to them.

Open up your web browser to the Web Client (Flash).

Click Networking.

Right click on the Datacenter and Select Distributed Switch and click New Distributed Switch.

Enter a name for the distributed switch.

Click Next.

Using the radio button, select the version of the distributed switch appropriated for your environment.

Click Next.

Enter the number of uplinks that you use on your hosts.

Rename the default port group to be applicable for Host Management.

Click Next.

Click Finish.

Now your distributed switch has been created.

Right click on the distributed switch, Select Distributed Port Group and click New Distributed Port Group.

Enter a new name for the port group to describe vMotion.

Click Next.

I always set the ports to the number of ports available in the subnet. Its just a me thing. Elastic ports will increase or decrease as needed.

Use the VLAN type drop down to select the appropriate type for your environment.

Enter the VLAN ID that corresponds to this network.

Click Next.

Click Finish.

Now you have set up distributed port groups for Host Management and vMotion.

Go ahead and create another port group for your initial set of virtual machines as I have done.

 

So at this point we want to add our hosts to the vDS. This can be an irritating process if you have never done it before. You can’t add all of the uplinks for a host to the distributed switch at the same time or the host will lose network connectivity. This is the process that always works for me.

  1. Add one uplink from each host to the switch.
  2. Migrate the migrate the vmk0 management adapter and virtual machine networks to the vDS.
  3. Add the second uplink from each host to the switch.

You will not lose a ping or you will lose one ping. That is the most that I have ever seen. So high latency sensitive applications may see an interruption during this process, but most applications should be fine. New to 6.5, you can add your vmk1 for vMotion during this process and we will do that.

Right click on the Distributed Switch and click Add and Manage Hosts.

Use the radio button to select Add hosts.

Click Next.

Click the + New hosts.

Select all of the hosts you added by checking the boxes.

Click OK.

Validate your hosts show up and say Connected.

Click Next.

(Ignore the new feature of templating network settings.)

Make sure only Manage physical adapters is checked.

Click Next.

Select one of your uplinks at a time and click Assign Uplink.

Select the appropriate Uplink. I always do Uplink 2 first.

Click OK.

Repeat these steps for each one of your hosts.

Click Next.

Make sure all of the statuses say No Impact.

Click Next.

Click Finish.

Right click on the Distributed Switch and click Add and Manage Hosts.

Select the radio button for Manage host networking.

Click Next.

Click the + Attach hosts.

Select the hosts and click OK.

Click Next.

Uncheck Manage physical adapters.

Check both Manage VMkernel and Migrate virtual machine.

Click Next.

You can control click to select all of the vmk0s at the same time and click Assign Port Group.

Click Next when you are complete.

Click Next.

Expand each virtual machine and control click each network adapter.

Click Assign Port Group.

Select the Port Group.

Click OK.

Click Next.

Click Finish.

Right click on the Distributed Switch and click Add and Manage Hosts.

Select the radio button for Manage host networking.

Click the + Attach hosts.

Select the hosts by checking the box.

Click OK.

Click Next.

Check the boxes for Manage physical adapters and VMkernel adapters.

Click Next.

Select the second uplinks and click Assign Uplink.

Select Uplink 1 and click OK.

Do this for the rest of the hosts.

Click Next when complete.

Select one of your hosts and click + New adapter.

Select the radio button for Select an existing network.

Click Browse.

Select your vMotion port group.

Click OK.

Click Next.

Check the box for vMotion.

Click Next.

Select the radio button for Use static IPv4.

Enter the IP information for your vMotion adapter.

Click Next.

Review the information and click Finish.

Repeat this for all of your hosts.

Click Next when complete.

Click Next.

Click Finish.

After your hosts finish configuring you can check the configuration.

Click the Ports tab.

Select the Host Management port group.

You can see the port ID, connectee, MAC, state, and VLAN.

Same for vMotion.

Same for virtual machines.

Now your virtual Distributed Switch is ready to go.

 

Next Post:  vCenter HA: Configure vCenter HA

Leave a Reply