|
Post by ssriniva on Sept 29, 2022 10:28:02 GMT
We have a requirement for providing an option for the user to select the boot source, that is - load source(device to boot from/network interface), alternate load source and console type - on the redfish GUI. The user should able to choos these and system should able to boot from there on. The drop down options for these selections would be bunch of location codes or ethernet interface to the device connected. Is there a standard way of doing this through redfish?
|
|
|
Post by mraineri on Sept 29, 2022 12:27:36 GMT
There are two methods for this in Redfish, both can be found in the "Boot" property within the ComputerSystem resource.
The first method is a one-time boot override, which does not affect the persistent boot order stored in BIOS. In the Boot property, the "BootSourceOverrideTarget", "BootSourceOverrideEnabled", and "UefiTargetBootSourceOverride" control the one-time override request. You can PATCH those properties to specify things like a PXE boot, USB boot, boot to a specified UEFI target, and others.
The second method is to change the persistent boot order of BIOS. Within the Boot property there is a "BootOptions" property. This property contains a link to a collection of available boot options BIOS is aware of. Based on the contents of this collection, you can rearrange the boot order as you need to by PATCHing the "BootOrder" found in the original Boot object in the ComputerSystem resource.
|
|
|
Post by ssriniva on Oct 20, 2022 12:14:46 GMT
Thank you for the reply. In our use case we need to populate for the UefiTargetBootSourceOverride - a list of unique PartLocations for the PCIe slots for the user to choose from. And once the PartLocations are selected that would be the boot source target. Would that comply with the standards?
|
|
|
Post by mraineri on Oct 20, 2022 13:36:06 GMT
Yes, that would be something you can use too if you need to specify an exact device with a UEFI device path. In that case, you'd also set "BootSourceOverrideTarget" to "UefiTarget" to signify that the desired device is described in the "UefiTargetBootSourceOverride".
|
|