VMware Cloud Community
vMarkusK1985
Expert
Expert

Chage "VirtualMachine.Admin.UUID" Property

Hi,

We need to map the vSphere Item back after a Restore Process and the new vCenter UUID.

Has anybody done this bevor?

The only thin i found regarding this:


VirtualMachine.Admin.UUID – A “Read Only” custom property that represents the UUID if the virtual machine.

Read-Only Properties – Read only custom properties represent values such as the UUID of a virtual machine that cannot be changed or altered on the virtual machine or within vCAC.

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
5 Replies
stvkpln
Virtuoso
Virtuoso

You're probably going to have to go into the database and update the row in the VirtualMachine table, however.... I'd seriously recommend opening an SR and letting GSS confirm what the appropriate way to do it is.

-Steve
vMarkusK1985
Expert
Expert

Thanks for your Relpy.

I opened a case for that…

But anyway, I think it is the easiest way to change the “bios.uuid” in the vmx.

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
vMarkusK1985
Expert
Expert

OK,

support told me there is no supported way to change this value.

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos
yrouillard
Contributor
Contributor

Hi @vMarkusK1985,

We are currently working on a similar subject, map back vSphere Item with its vCAC counterpart after a restoration process, and we are facing the same kind of issue.

I would like to know if you were eventually able to find a solution or a workaround.

Thanks for your answer.

Best regards,

Yann Rouillard

0 Kudos
vMarkusK1985
Expert
Expert

Hi yrouillard‌.

My solution was aligning the vCAC UUID to the vCenter UUID via vCO.

But it is not possible to modify the vCAC property, so I modify the vCenter UUID

System.log("****************************");

System.log("UUID to set: " + UUIDnew);

System.log("****************************");

var spec = new VcVirtualMachineConfigSpec(); 

spec.uuid =  UUIDnew; 

vcVM.reconfigVM_Task(spec); 

You can get the Correct UUID from the vCAC Property "VirtualMachine.Admin.UUID".

Best Regards,

Markus

https://mycloudrevolution.com | https://twitter.com/vMarkus_K | https://github.com/vMarkusK
0 Kudos