VMware Aria Automation Orchestrator

 View Only
  • 1.  Change uuid (bios.uuid) of a VM

    Posted Jan 07, 2015 04:21 PM

    Hi,

    I tried to change the UUID this way:

    var UUIDlog = vcVM.config.uuid;

    System.log("UUID at the moment: " + UUIDlog);

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

    vcVM.config.uuid = UUIDnew;

    var UUIDcontrol = vcVM.config.uuid;

    System.log("UUID after change: " + UUIDcontrol);

    vCO shows the mo correct value but the VMX File isn’t updated.


    [2015-01-07 17:05:48.923] [I] UUID at the moment: 564dc846-3c30-b95f-84fc-4d9e168ecd07

    [2015-01-07 17:05:48.923] [I] UUID to set : 42286f25-0cfe-4a18-ffd4-79a682663297

    [2015-01-07 17:05:48.923] [I] UUID after change: 42286f25-0cfe-4a18-ffd4-79a682663297


    Does anybody know what’s wrong?



  • 2.  RE: Change uuid (bios.uuid) of a VM
    Best Answer

    Broadcom Employee
    Posted Jan 07, 2015 05:26 PM

    Use reconfigVM_Task() scripting method. Something like the following code:

    var spec = new VcVirtualMachineConfigSpec();

    spec.uuid = "..."; // place your new UUID value here

    vm.reconfigVM_Task(spec);