VMware {code} Community
VinothCM
Contributor
Contributor

Cannot Set BIOS efiSecureBootEnabled Option Using VIM25 API

We have tried using the below XML input parameter to set the efiSecureBootEnabled to set it as true which is failing.

<enterBIOSSetup>
<java.lang.Boolean>true</java.lang.Boolean>
</enterBIOSSetup>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<command>
<method>reconfigVM_Task</method>
<params>
<param>
<MOR>
<Type>VirtualMachine</Type>
<Name>Barevc1</Name>
</MOR>
</param>
<param>
<com.vmware.vim25.VirtualMachineConfigSpec>
<bootOptions>
<com.vmware.vim25.VirtualMachineBootOptions>
<efiSecureBootEnabled>
<java.lang.Boolean>true</java.lang.Boolean>
</efiSecureBootEnabled>
</com.vmware.vim25.VirtualMachineBootOptions>
</bootOptions>
</com.vmware.vim25.VirtualMachineConfigSpec>
</param>
</params>
</command>

 

Please check above XML is correct to set the efisecureboot. Coz same XML works fine (i.e.: help to change the biossetup to true like below XML attributes.

E.g.:

<enterBIOSSetup>
<java.lang.Boolean>true</java.lang.Boolean>
</enterBIOSSetup>

0 Kudos
0 Replies