An error occurred while communicating with the remote host./var/log/vmware/vpxd/vpxd.log:
[YYYY-MM-DDTHH:MM:SS] error vpxd[36889] [Originator@6876 sub=VmProv opID=########-#######-####-#####-##:########-##-##] Failed to track task vim.Task:task-## on host vim.HostSystem:host-#######: Fault cause: vmodl.fault.HostCommunication[YYYY-MM-DDTHH:MM:SS] error vpxd[36889] [Originator@6876 sub=VmProv opID=########-#######-####-#####-##:########-##-##] [VMOTION_RECOVER] Failed to prepare VMotion on source: . Aborting vMotion xaction
In the ESXi /var/run/log/hostd.log:[YYYY-MM-DDTHH:MM:SS] info hostd[2100876] [Originator@6876 sub=Vcsvc.VMotionSrc.<vMotion_migID>] ResolveCb: Failed with fault: (vim.fault.GenericVmConfigFault) {--> faultMessage = (vmodl.LocalizableMessage) [--> (vmodl.LocalizableMessage) {--> key = "msg.vigor.operationCancelled",--> message = "The operation was cancelled by the user.",--> }--> ],--> reason = "The operation was cancelled by the user.",--> msg = "The operation was cancelled by the user.--> "--> }
/var/run/log/hostd.log at other times:[YYYY-MM-DDTHH:MM:SS] info hostd[2100933] [Originator@6876 sub=Solo.Vmomi opID=########-#### user=vpxuser] Result:--> (vim.fault.PlatformConfigFault) {--> faultMessage = (vmodl.LocalizableMessage) [--> (vmodl.LocalizableMessage) {--> key = "com.vmware.esx.hostctl.default",--> arg = (vmodl.KeyAnyValue) [--> (vmodl.KeyAnyValue) {--> key = "reason",--> value = "Unable to delete DVPort "" that is in use, use list: <VM_name>.eth0"--> }--> ],--> }--> ],--> text = "",--> msg = ""--> }VMware vSphere ESXi 8.x
VMware vCenter Server 8.x
When the ESXi host was added to a vSphere Distributed Switch (vDS) and VM networking migration was performed, the VMs on this host did not register correctly with their assigned dvPorts.The affected VMs continued to use the old dvPort IDs instead of receiving new assignments. As a result, network metadata inconsistencies occurred, preventing the host from serving as a valid migration source.
Either of the following methods can be used to resolve the issue.
Log in to the vCenter web client.
Power off the virtual machine.
Right-click the VM and select Remove from Inventory.
In the datastore, browse to the VM directory and locate the .vmx file.
Select the .vmx file and click Register VM.
Power on the VM.
Log in to the vCenter web client.
Navigate to the network inventory.
Right-click the vDS and select Add and Manage Hosts > Manage Host Networking.
Select the problematic ESXi host.
Proceed to Migrate VM Networking and check Migrate virtual machine networking to view all VMs on the host.
Select Configure per virtual machine.
Choose Assign Port Group.
Select the same port group that the VM is already using.
This operation updates and corrects the VM’s dvPort ID assignment.
Click Next, then Finish.