Increasing the number vNetwork Distributed Switch (vDS) Uplink Ports
“Call “HostNetworkSystem.UpdateNetworkConfig” for object “networkSystem-27” on vCenter Server “vCenter” failed. Network configuration change disconnected the host ‘x.x.x.x’ from vCenter server and has been rolled back. A change in the network configuration disconnected the host ‘x.x.x.x’ from vCenter Server. The change has been rolled back.”
Let me guess, were you adding a host to a vDS and all of sudden you received this cryptic message? If so, you may have ran out of vDS uplink ports. You may be reflecting on why you were so ungenerous to my vDS uplink port allocation in the first place? Unfortunately I can’t answer that but I can tell you how to fix it!
Running out of vDS uplink ports will put the breaks on adding anymore hosts to your vDS. However, it is down right embarrassing when you find out that you can’t increase the number of ports through vCenter. This bad boy parameter is all grayed. WHAT!
When this occurred to me, I made a mad rush to Google and realized I couldn’t locate any steps to increase the number of uplink ports. I was disappointed when I came to realization that I was the only stingy vDS uplink port allocator on the entire World Wide Web. Or maybe I am just inefficient with my Google search engine expressions.
Regardless, I captured below on how you can get out of this sticky situation:
- In a web browser, go to http://vCenterServer-ip-address/mob/
- When prompted, enter your vCenter Server username and password.
- Click the content link.
- In the left pane, search for the row with the word rootFolder.
- Open the link in the right pane of the row. The link is similar to group-d1 (Datacenters).
- In the left pane, search for the row with the word childEntity. In the right pane, you see a list of datacenter links. Click the datacenter link where the vDS is defined.
- In the left pane, search for the row with the word networkFolder, and open the link in the right pane. The link is similar to group-n (network).
- In the left pane, search for the row with the word childEntity. You see a list of vDS and distributed port group links in the right pane. Select the dvportgroup that is for the Uplink.
- In the left pane, search for the row with the word config, and click the link in the right pane.
- In the left pane, search for the row with the word configVersion. It is normally the first row. WRITE THIS NUMBER DOWN!
- Go back one page and select ReconfigureDVPortgroup_Task
- Delete the contents that you see under Value and replace it with the syntax below. Fill in configVersion with what was captured in Step 10. The field for numPorts is what you want to increase the number of uplink ports to.
- Select Invoke Method
- Optionally, if you don’t trust what you just did, scroll up and select the config link and see if your numPorts field increased
- You will notice that if you go back into vCenter, the number of Uplink ports will be reflected. However, don’t get too excited yet. You’re not out of the woods until you have restarted the vCenter Server.