Error: "Invalid network parameter: Specified IP address "#.#.#.#" is invalid" and unable to assign IP to VM in VCD Tenant due to missing VLAN configuration (Incorrect CIDR Displayed)
search cancel

Error: "Invalid network parameter: Specified IP address "#.#.#.#" is invalid" and unable to assign IP to VM in VCD Tenant due to missing VLAN configuration (Incorrect CIDR Displayed)

book

Article ID: 411522

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • After importing a VM into VCD fails during deployment with IP assignment errors.
  • The VMware Cloud Director (VCD) Tenant UI shows an error when attempting to assign an IP to a VM of the form: 

    [ ########-####-####-####-############ ] Following errors occurred while updating network connections: Invalid network parameter: Specified IP address "#.#.#.#" is invalid.
  • The issue is isolated to one VM/network combination; other VMs are imported successfully.
  • Logs and network configuration review indicate a missing or incorrect CIDR on the target network.
  • Reconnecting to vCenter does not resolve the issue.
  • At the vCenter level, the VM and network settings appear consistent with successfully imported VMs.
  • The /opt/vmware/vcloud-director/logs/vcloud-container-debug.log on the VCD Cells show errors of the form:

    | DEBUG    | task-service-activity-pool-## | DefaultMultiScopeIPManager     | Invalid network parameter: Specified IP address "#.#.#.#" is invalid. | requestId=########-####-####-####-############,request=PUT https://<vcd_public_address>/api/vApp/vm-########-####-####-####-############/networkConnectionSection/,...

    | DEBUG    | task-service-activity-pool-## | NetworkConnectionSectionOrchestrator | Encountered failure updating NIC with index 0 for VM ########-####-####-####-############ | requestId=########-####-####-####-############,request=PUT https://<vcd_public_address>/api/vApp/vm-########-####-####-####-############/networkConnectionSection/,...
        com.vmware.vcloud.api.presentation.service.BadRequestException: Invalid network parameter: Specified IP address "#.#.#.#" is invalid.

Environment

VMware Cloud Director 10.6.x

Cause

The issue occurred due to an invalid CIDR/subnet configuration on the target network in VMware Cloud Director. This behavior is expected, as VCD requires the VM's IP to fall within the network's defined CIDR.

Resolution

  • Update the target network in VMware Cloud Director to include a valid CIDR range using VMware Cloud Director OpenAPI, Org Vdc Network, Update Network.
  • If networking services such as DHCP, Routing, and Firewall are not provided by VMware Cloud Director, it is possible to reconfigure the VM NIC IP Mode to 'DHCP' or 'None' to avoid the IP verification.