Hi all,
I'm currently building an workflow for adding additional several disks and additional 3 SCSI controller to a given virtual machine. After that the system isn't booting anymore, because the boot order in the Bios is nearly randomly.
I was trying to define the new boot order over the following code snippet. Unfortunalley this seems to brake the bios configuration. I can enter the bios, but I can not select or change anything in the boot order screen. No error message there is just nothing selectable anymore in the boot order screen. Anyone had this issue before ?
var bootOrder = new Array;
var bootDisk = new VcVirtualMachineBootOptionsBootableDiskDevice();
bootDisk.deviceKey = 2000; // 2000 = Scsi0:0
bootOrder.push(bootDisk);
.
.
<done for several disks>
.
.
var spec = new VcVirtualMachineConfigSpec();
spec.bootOptions = new VcVirtualMachineBootOptions();
spec.bootOptions.bootOrder = bootOrder;
Task = VM.reconfigVM_Task(spec);