No free port is available in DVportgroup VMware ESXi with Nexus 1000v
When you are creating new virtual machine and trying to add network adapter to the network VLAN and getting error no ports are available . it is because on your nexus switch vlan port profile has max-ports: 32 is configured.
- 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
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:
- Open a console session to the Cisco Nexus 1000v VSM using the physical console or an SSH client.
- Run this command to access the configuration commands in the CLI Global Configuration mode:
configure terminal
- Run this command to enter the port-profile configuration mode for the desired dvPortGroup:
port-profile type vethernet <DV-port-group-name>
- 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
- Run the end command to exit the port-profile configuration mode and return to Privileged EXEC mode.
- Run this command to save the running configuration to the startup configuration:
copy running-config startup-config
- Exit the CLI using the command:
exit
8. Try connecting the virtual machine to the dvPortGroup again. - Source link
Thanks for any other great article. Where else may anyone get that type of info in such a perfect way of writing?
I’ve a presentation subsequent week, and I’m at the look for such information.