"A general system error occurred: Undeclared fault Cause: An error occurred during host configuration: Failed to attach all ports." "An error occurred during host configuration: Failed to attach VIF: bad0006.Failed to attach virtual network interface Unknown to logical switch 5bxxxxxx-9xx1-4xx1-8xxx-6xxxxxxxxxxf, message from NSX: bad0006"
Failed to add DVPort in vmkernel: status(bad=006) Limit exceeded while powering on the VM /relocation to this ESXi host after the reconfiguration."2025-09-22T19:34:34.037Z info vpxa[17607500] [Originator@6876 sub=Default opID=432f752f-01-29] [VpxLRO] -- ERROR task-206115 -- vpxa -- vpxapi.VpxaService.registerVm: vim.fault.PlatformConfigFault: --> Result: --> (vim.fault.PlatformConfigFault) { --> faultCause = (vmodl.MethodFault) null, --> faultMessage = (vmodl.LocalizableMessage) [ --> (vmodl.LocalizableMessage) { --> key = "com.vmware.esx.hostctl.default", --> arg = (vmodl.KeyAnyValue) [ --> (vmodl.KeyAnyValue) { --> key = "reason", --> value = "Failed to add DV Port in vmkernel: Status (bad0006)= Limit exceeded" --> } --> ], --> message = "Operation failed, diagnostics report: Failed to add DV Port in vmkernel: Status (bad0006)= Limit exceeded" --> } --> ], --> text = "" --> msg = "An error occurred during host configuration." --> }
2025-10-06T21:17:49Z In(14) nsxaVim: [44225008]: INFO [resync] resync.py: caught exception: {'fault': 'too many values to unpack (expected 2)'}^@
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
This is a known issue impacting VMware NSX 4.x.
This issue is resolved in VCF 9.0.2, available at Broadcom downloads.
If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.
As the issue is caused by presence of square brackets in the VM's vmx filename, to prevent reoccurrence of this issue, you can redeploy the VMs, and use name that doesn't contain square brackets.
If you aren't able to redeploy the VM(s), you can use the workaround below. It is to be introduced on the affected ESXi host(s) to clean up the stale ports.
Perform these steps on each affected ESXi host:
cp /usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/resync.py /usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/resync_bk.py
vsish -e set /config/VisorFS/intOpts/VisorFSPristineTardisk 0
cp /tmp/resync.py /usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/resync.py
chmod 444 /usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/resync.py
chown root:root /usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/resync.py
python /usr/lib64/vmware/nsx-opsagent/pyvim/nsxa/resync.py 3600 0 2>&1
vsish -e set /config/VisorFS/intOpts/VisorFSPristineTardisk 1