Error The specified key, name, or identifier 'xxxxxx' already exists. when attempting to cross vCenter vMotion VM's
book
Article ID: 373532
calendar_today
Updated On:
Products
VMware
Issue/Introduction
When attempting to migrate a VM from a source vCenter to a destination vCenter it fails with The specified key, name, or identifier 'xxxxxx' already exists.
Environment
VMware vCenter Server 8.0.x
VMware vCenter Server 7.0.x
VMware Cloud Director 10.x
Cause
This issue is caused due to a duplicate vc.uuid that is present in both vCenter sites.
Resolution
To resolve this issue we need to remove the duplicate vc.uuid from the source VM:
Power off the affected VM.
Please navigate to the VM folder on an ssh to the source ESXi host
Please take a backup of the VM's vmx file
cp VM01.vmx VM01.vmx.bak
Edit the VM's vmx file and remove the vc.uuid line from the vmx file.
Refresh the vmx file by running the following commands to gather the vmid and then using the vmid to reload the vmx: