The solution you suggested is technically good, but it introduced a brief potential window where Citrix might detect a second registered VM with the same UUID.
I just want to prevent this possibility before the registration process is triggered, but in a faster way than the download/upload VMX method, if possible.
Original Message:
Sent: Jan 29, 2025 09:25 AM
From: LucD
Subject: Regenerating UUID.BIOS
So setting a new GUID is not a valid solution?
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
------------------------------
Original Message:
Sent: Jan 29, 2025 05:56 AM
From: EPAZIL
Subject: Regenerating UUID.BIOS
The issue with UUID.BIOS is related to systems like Citrix or CommVault that depend on it. Since the UUID.BIOS remains unchanged during the VM registration process, this could impact those systems during registration of a cloned VM.
To ensure resilience in an unknown environment, I am searching for a solution that can be executed before registering a cloned VM.
Downloading/uploading is a very slow solution when dealing with many VMs, so using a parallel process might help speed it up.
If anyone know whether there's an option in PowerShell or the REST API to execute a command similar to "find /StorageVolume -type f -name "*.vmx" -exec sed -i "/^uuid.bios/d" {} +" within ESXi, since this will be easiest and fastest way.
Original Message:
Sent: Jan 28, 2025 01:44 PM
From: LucD
Subject: Regenerating UUID.BIOS
Do you actually need the vCenter to generate a GUID?
In fact you can change the GUID yourself
Something like this for example
$vmName = 'MyVM'$vm = Get-VM -Name $vmName$vm.ExtensionData.Config.Uuid$spec = New-Object VMware.Vim.VirtualMachineConfigSpec$spec.uuid = New-Guid | Select -ExpandProperty Guid$vm.Extensiondata.ReconfigVM_Task($spec)$vm = Get-VM -Name $vmName$vm.ExtensionData.Config.Uuid
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference