Error: "The specified key, name, or identifier '#####' 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 '#####' already exists."
Environment
VMware vCenter Server 8.0.x
VMware vCenter Server 7.0.x
VMware Cloud Director 10.x
Cause
Due to a duplicate vc.uuid that is present in both vCenter sites.
Resolution
Remove the duplicate vc.uuid from the source VM:
Power off the affected VM.
Navigate to the VM folder on an ssh to the source ESXi host.
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: