New to orchestrator and having some issues.
Been trying to get a workflow that will change a VM's setting to boot to BIOS on the next reboot.
Tried using the following script and putting it into a action and then place it in the workflow but it doesnt do anything:
var myVcVirtualMachineBootOptions = new VcVirtualMachineBootOptions();
enterBIOSSetup = true;
any help would be greatly appreciated.
thanks
I have tested the script posted by Kyle. It works fine.
In your workflow add an input of type vc:virtual machine
Add this as input in your scriptable box.
Paste this code:
var spec = new VcVirtualMachineConfigSpec();
spec.bootOptions = new VcVirtualMachineBootOptions();
spec.bootOptions.enterBIOSSetup = true;
vm.reconfigVM_Task(spec);
"vm" should be highlighted since you have vm as input.
Validate the workflow.
Run it.
If you have never done workflows previously I recommend going through the tutorials on vcoteam.info. You will find all the basics about input parameters, linking inputs and so on.
Christophe.
I haven't used Orchestrator recently and I don't have it installed atm, but hopefully this will work for you.
~~~~~~~~~~~~~~~~~~~
var spec = new VcVirtualMachineConfigSpec();
spec.bootOptions = new VcVirtualMachineBootOptions();
spec.bootOptions.enterBIOSSetup = true;
<your virtual machine object>.reconfigVM_Task(spec);
~~~~~~~~~~~~~~~~~~~
that didnt work out.
it stated that the managed object was not defined. and when i defined the object in a line before the last one, it states that it cannot find function reconfigVM_task(spec)
Could you just get create a new virtualmachine object, called something like myVM, then select a random VM. Then select this object to be input for your script. That way you know you have a valid virtualmachine object.
Then you can just do something like this at the end.
myVM.reconfigVM_Task(spec);
honestly, i do not know how to create a new object within orchestrator to define the object.
i did define the managed object anyways but it errored off saying the reconfigVM_Task(spec); cannot be found
Hi,
please check out my blog article: http://mighty-virtualization.blogspot.com/2011/08/vco-whats-up-with-vcoptionvalue.html
This article describes how to use the "VMX" parameters to change BIOS options.
here are the .vmx parameters: http://sanbarrow.com/vmx/vmx-advanced.html#bios
best regards
Christian
I have tested the script posted by Kyle. It works fine.
In your workflow add an input of type vc:virtual machine
Add this as input in your scriptable box.
Paste this code:
var spec = new VcVirtualMachineConfigSpec();
spec.bootOptions = new VcVirtualMachineBootOptions();
spec.bootOptions.enterBIOSSetup = true;
vm.reconfigVM_Task(spec);
"vm" should be highlighted since you have vm as input.
Validate the workflow.
Run it.
If you have never done workflows previously I recommend going through the tutorials on vcoteam.info. You will find all the basics about input parameters, linking inputs and so on.
Christophe.
that worked! than you!
one other question....how would i make it possible to change multiple vms at once? Just add more inputs?
I wrote a tutorial about this: http://www.vcoteam.info/learn-vco/creating-workflow-loops.html
At the bottom is attached the workflow created in the tutorial.
Christophe.