In vCenter Server, multiple virtual machines have the same UUID after being deployed from the same VM template.
vim-cmd vmsvc/getallvms | grep <VM_NAME>Navigate to the datastore directory containing the virtual machine configuration file and create a backup of the .vmx file:
cd /vmfs/volumes/<DATASTORE_NAME>/<VM_NAME>/
mkdir tmp
cp <VM_NAME>.vmx tmp/<VM_NAME>.vmx.bak
Verify the existing UUID values before making any changes:
grep -i uuid <VM_NAME>.vmx
Edit the .vmx file and remove the line with UUID-related entries (for example, uuid.bios, uuid.location, vc.uuid):
vi <VM_NAME>.vmx
Save the file and reload the virtual machine configuration using the following command:
vim-cmd vmsvc/reload <VMID>
Note: (Use the VMID obtained in Step 3.)
Power on the VM from the vCenter UI.
In some cases, the UUID is regenerated identical to the ID we previously removed because the ESXi host caches virtual machine configurations in memory, causing it to overwrite manual configuration changes upon power-up. In these situations, unregister the virtual machine, follow the outlined steps, and then reregister it on a different ESXi host to ensure a new UUID is generated.