When attempting to migrate a VM to any of the hosts in the environment the compatibility fails with the follow error:
Validate compatibility from the below KB:
vMotion fails during validation stage of migration with error: Compatibility Check Failure
VMware vSphere 7.x
VMware vSphere 8.x
The virtual machine has a CPU affinity configuration defined. This setting restricts the VM to run on specific physical CPU cores, preventing it from being migrated to another host that may not meet the exact CPU mapping.
You can validate for powered on VMs from the vmx file searching for sched.cpu.affinity :
To allow vMotion, the CPU affinity settings must be removed or modified:
Power off the virtual machine.
Remove CPU affinity configuration:
Via vSphere UI:
Edit the VM settings > VM Options > Advanced > Configuration Parameters.
Remove any parameters such as sched.cpu.affinity.
Or via direct .vmx file edit :
Remove or comment out any sched.cpu.affinity entries.
Power on the VM and retry the vMotion.
Reference KB to edit the .vmx file of the VM using vi editor:
https://knowledge.broadcom.com/external/article/345284/editing-files-on-an-esxi-host-using-vi.html
Refer details for CPU affinity: