Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Increasing the maximum number of vNetwork Distributed Switch (vDS) ports in vSphere (1038193)

Symptoms

  • You cannot configure more than 8192 virtual ports in a vCenter Server vNetwork Distributed Switch (vDS)
  • You see the error:

    The numPorts value : 8256 in spec exceeded maxPorts 8192.

Purpose

This article provides steps to increase the maximum number of vDS ports.

Resolution

Changing the maximum number of vDS ports by using vSphere PowerCLI


The vSphere PowerCLI can be used to automate various virtual machine tasks. It provides an easy-to-use C# and PowerShell interface to VMware vSphere APIs. For more information, see the VMware vSphere PowerCLI Documentation.

To change the maximum number of vDS ports, you can use this PowerCLI snippet:
$dvs = Get-VirtualSwitch -Distributed -Name DVSName | Get-View
$cfg = New-Object -TypeName VMware.Vim.DVSConfigSpec
$cfg.MaxPorts = 20000
$cfg.configVersion = $dvs.config.configVersion
$dvs.ReconfigureDvs_Task( $cfg )

Changing the maximum number of vDS ports by manually editing the configuration


To change the maximum number of vDS ports by manually editing the configuration:

  1. In a web browser, go to http://vCenterServer-ip-address/mob/
  2. When prompted, enter your vCenter Server username and password.
  3. Click the content link.
  4. In the left pane, search for the row with the word rootFolder.
  5. Open the link in the right pane of the row. The link is similar to group-d1 (Datacenters).
  6. In the left pane, search for the row with the word childEntity. In the right pane, you see a list of datacenter links.
  7. Click the datacenter link where the vDS is defined.
  8. 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-n123(network).
  9. 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.
  10. Click the vDS on which you want to change the maxPort value.
  11. In the left pane, search for the row with the word config, and click the link in the right pane.
  12. In the left pane, search for the row with the word configVersion. It is normally the first row.
  13. Note the corresponding value displayed in the right pane. (The value is a number.)
  14. Go back to the vDS page.
  15. Click the ReconfigureDvs_Task link. A new window appears.
  16. In the Spec text field, enter:

    <spec><configVersion>value</configVersion><maxPorts>20000</maxPorts></spec>

    Where value is the value you noted in step 13.

  17. Click the Invoke Method link. The changes appear similar to:

    <spec>
    <configVersion>7</configVersion>
    <maxPorts>20000</maxPorts>
    </spec>


  18. Close the window.
  19. Repeat Steps 9 through 13 to verify the new maxPort value.
  20. Restart the vCenter Server service for the changes to take effect. For more information, see Stopping, starting, or restarting vCenter services (1003895).

Changing the maximum number of vDS ports for the Cisco Nexus 1000V

For more information on configuring the number of ports using the Nexus 1000v Virtual Switch Manager (VSM), see:

Notes:

See Also

This Article Replaces

2009420

Update History

01/05/2012 - Added note on maximum number of ports per distributed switch 09/12/2012 - Added link to the Cisco Nexus 1000V Port Profile Configuration Guide. 02/03/2014 - Added vCenter Server 5.0 and 5.1 to Product Versions. 04/16/2014 - Modified title by removing 4.x beside vSphere

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 10 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 10 Ratings
Actions
KB: