Adding a virtual machine to a DVPortGroup in the vSphere Client fails with the error: No free port is available in DVportgroup PortGroupName
search cancel

Adding a virtual machine to a DVPortGroup in the vSphere Client fails with the error: No free port is available in DVportgroup PortGroupName

book

Article ID: 310587

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

This article provides steps for increasing the number of vEthernet ports allocated in the Cisco Nexus 1000V Distributed Virtual Switch (DVS).


Symptoms:
  • Cannot add a virtual machine to the DVPortGroup in the vSphere Client
  • Adding a virtual machine to the DVPortGroup in the vSphere Client fails
  • You see the error:

    The resource vim.dvs.DistributedVirtualPort is not available in vim.dvs.DistributedVirtualPortgroup PortGroupName
    No free port is available in DVportgroup PortGroupName


Environment

VMware ESXi 4.1.x Installable
VMware vSphere ESXi 5.5
VMware vSphere ESXi 5.0
VMware vCenter Server 4.0.x
VMware vCenter Server 5.5.x
VMware ESXi 4.0.x Installable
VMware vCenter Server 5.0.x
VMware ESX 4.1.x
VMware ESXi 4.1.x Embedded
VMware vSphere ESXi 5.1
VMware ESX 4.0.x
VMware vCenter Server 4.1.x
VMware ESXi 4.0.x Embedded
VMware vCenter Server 5.1.x

Resolution

This issue occurs if the number of vEthernet ports allocated in the Cisco Nexus 1000v VDS is exhausted.
To verify this, use one of these options:
  • Click the Summary tab for the dvPortGroup in vCenter Server
  • Run this Cisco Nexus 1000v VSM command:

    show port-profile vm-network usage
You can increase the number of ports in the VSM using the Nexus 1000 Virtual Switch Manager (VSM).

To configure the maximum number of ports in VSM:

  1. Open a console session to the Cisco Nexus 1000v VSM using the physical console or an SSH client.
  2. Run this command to access the configuration commands in the CLI Global Configuration mode:

    configure terminal

  3. Run this command to enter the port-profile configuration mode for the desired dvPortGroup:

    port-profile type vethernet <DV-port-group-name>

  4. Run this command to configure the maximum number of ports between 1 and 1024:

    vmware max-ports <number>

    For example:

    vmware max-ports 64

    Note: To revert to the default 32 ports, run the command:

    no vmware max-ports 64

  5. Run the end command to exit the port-profile configuration mode and return to Privileged EXEC mode.
  6. Run this command to save the running configuration to the startup configuration:

    copy running-config startup-config

  7. Exit the CLI using the command:

    exit

  8. Try connecting the virtual machine to the dvPortGroup again.


Additional Information

For more information, see the vmware max-ports section of Cisco Nexus 1000V Command Reference, Release 4.0(4)SV1(1).

Note:
The max-ports command replaced the vmware max-ports command in Nexus 1000v version 4.2(1)SV1(4) and up. For more information, see the max-ports section of the Cisco Nexus 1000v Command Reference, Release 4.2(1)SV1(4).

The preceding link was correct as of February 11,2015. If you find the link is broken, provide feedback and a VMware employee will update the link.

Cisco Nexus 1000V FAQs and documentation
仮想マシンを vSphere Client の DVPortGroup に追加すると次のエラーで失敗する: No free port is available in DVportgroup PortGroupName