/common/logs/admin/app.log, to find the entries similar to as shown below[VmotionService_SvcThread-####, Ent: HybridityAdmin, , TxId: ######-####-####-####-###########] ERROR c.v.h.s.v.j.StartSourceSideRelocateVmWorkflow- [migId=######-####-####-####-###########] Source side relocate failed for the virtual machine. error is Currently connected network interface 'Network adapter X' uses network 'DVSwitch: ## ## ## ## ## ## ## ## ## ## ## ## ##', which is not accessible.
com.vmware.vim.binding.vim.fault.CannotAccessNetwork: Currently connected network interface 'Network adapter X' uses network 'DVSwitch: ## ## ## ## ## ## ## ## ## ## ## ## ##', which is not accessible./var/log/vmware/vpxd/vpxd.log and you will see the error belowerror vpxd[####] [Originator@#### sub=Default opID=OpId-######-##-##] [VpxLRO] -- ERROR lro-#####-####-####-######-######) -- vm-## -- vim.VirtualMachine.relocate: :vim.fault.CannotAccessNetwork
--> Result:
--> (vim.fault.CannotAccessNetwork) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>,
--> device = "Network adapter X",
--> backing = "DVSwitch[ce ## ## ## ## ## ## ## ## ## ## ## ## ## ##] NSX port group [dvportgroup-##](nsxa down)",
--> connected = true,
--> network = 'vim.dvs.DistributedVirtualPortgroup:########-####-####-####-###########:dvportgroup-##'
--> msg = ""
VMware HCX
VMware vCenter
This is caused by a stale vCenter DB entry.
Need to ensure that the stale entry of the VM DVport is changed or reset in the vCenter Database.
Follow the article here to know How to manually clean up unused or stale Distributed Virtual Switch (VDS) on an ESXi host