BIOS configuration via OS tools

Intro

It’s possible to configure BIOS options from the OS on SuperMicro, Dell, and HP platforms. This removes the need for IPMI access and for entering the BIOS setup screen. The host still reboots once before the new values apply.

All options that are needed by StorPool are described in the relevant installation guides. Some examples are given below, but those are not exhaustive.

SuperMicro

The changes are done via the SuperMicro Update Manager (SUM) tool, available at Supermicro Update Manager.

Warning

The BIOS reconfiguration is currently known not to work on SuperMicro EPYC2 nodes. Configure those nodes from the BIOS setup screen, using the SuperMicro heading in BIOS and OS tuning for AMD EPYC processors.

Note

The tool requires a license from SuperMicro to work. Having the license is highly recommended for all StorPool installations on SuperMicro servers from 2019-01 onward.

./sum expects the binary in the current directory and reads the local BMC. The license note above is what allows that session.

Read the current BIOS into cbios.cfg:

./sum --file cbios.cfg -c GetCurrentBiosCfg

Edit every intended setting in that file before loading it. The comments in cbios.cfg list the legal values for each key.

Load the file once:

./sum --file cbios.cfg -c ChangeBiosCfg

Loading the file stages the change. Reboot the host once to apply it.

SR-IOV

The key is called “SR-IOV Support”. Set it to the enabled value shown in that key’s comment in cbios.cfg.

NUMA nodes per socket

On generations where SUM works, the key to search for in cbios.cfg is “NUMA Nodes Per Socket”. The BIOS setup screen calls the same option “NUMA Layout”. Set it to NPS1 on single-socket and dual-socket hosts. Determinism, cTDP, and the preferred I/O bus are set from the SuperMicro heading in BIOS and OS tuning for AMD EPYC processors.

DELL

The changes are done via the racadm tool, available at Dell’s web site.

SR-IOV on the NICs

Global SR-IOV is already set in the block above. The following enables SR-IOV on the first two NICs. Change 1 2 when the server has more NICs. Each NIC gets its own configuration job. Create these jobs before rebooting, so the same reboot applies them together with BIOS.Setup.1-1.

for i in 1 2 ; do racadm set NIC.DeviceLevelConfig.${i}.VirtualizationMode SRIOV ; sleep 2 ; done
for i in 1 2 ; do racadm get NIC.DeviceLevelConfig.${i}.VirtualizationMode ; sleep 2 ; done
for i in 1 2 ; do racadm jobqueue create NIC.Integrated.1-${i}-1 ; sleep 2 ; done

Confirm that the BIOS job and the NIC jobs are queued, then reboot the host:

racadm jobqueue view

Browsing options

racadm uses a hierarchy of objects. The session below shows how to find NIC.DeviceLevelConfig, and that a set stays pending until jobqueue create.

root@node9 ~ # racadm get
iDRAC
System
LifeCycleController
BIOS
NIC
STORAGE
FC

root@node9 ~ # racadm get NIC
DeviceLevelConfig
FCoEConfiguration
FCoEGenParams
FrmwImgMenu
IscsiFirstTgtParams
IscsiGenParams
IscsiInitiatorParams
IscsiSecondTgtParams
IscsiSecondaryDeviceParams
NICConfig
NICPartitioningConfig
VndrConfigPage

root@node9 ~ # racadm get NIC.DeviceLevelConfig
NIC.DeviceLevelConfig.1 [Key=NIC.Integrated.1-1-1#DeviceLevelConfig]
NIC.DeviceLevelConfig.2 [Key=NIC.Integrated.1-2-1#DeviceLevelConfig]
NIC.DeviceLevelConfig.3 [Key=NIC.Integrated.1-3-1#DeviceLevelConfig]
NIC.DeviceLevelConfig.4 [Key=NIC.Integrated.1-4-1#DeviceLevelConfig]

root@node9 ~ # racadm get NIC.DeviceLevelConfig.1
[Key=NIC.Integrated.1-1-1#DeviceLevelConfig]
#SRIOVSupport=Available
VirtualizationMode=SRIOV

root@node9 ~ # racadm set NIC.DeviceLevelConfig.1.VirtualizationMode SRIOV
[Key=NIC.Integrated.1-1-1#VirtualizationMode]
RAC1017: Successfully modified the object value and the change is in
       pending state.
       To apply modified value, create a configuration job and reboot
       the system. To create the commit and reboot jobs, use "jobqueue"
       command. For more information about the "jobqueue" command, see RACADM
       help.

To apply the pending change for that NIC, create a job for it:

racadm jobqueue create NIC.Integrated.1-1-1

That job commits the pending settings for NIC.Integrated.1-1-1 on the next reboot. BIOS attributes use BIOS.Setup.1-1, as in the recipe above. Reboot once after every job you intend to apply is queued.

HP

BIOS changes from the OS use ilorest, the HPE RESTful Interface Tool. Each set stays pending until commit, and the new values apply on the next reboot. This section covers iLO 5 and later (Gen10 and later). Install and the full command set are in the HPE iLOrest user guide.

hponcfg writes iLO configuration. ssacli configures Smart Array controllers. BIOS attributes go through ilorest.

Log in from the host

ilorest login opens a session to the local iLO. On iLO 5 and iLO 6 that session uses the channel-interface driver:

ilorest login

On iLO 7, create an application account once. -u and -p are an iLO user that is allowed to create it. Later logins from this host take no password on the command line:

ilorest appaccount create -u ilo-user -p password --self
ilorest login

Logging in with an iLO address, a user, and a password reaches iLO over the network. The commands below use the in-band login.

Find the attribute name

Copy the Redfish attribute name from this server. Those names differ from the labels in the BIOS setup screen. The HPE menu steps for EPYC servers are under the HPE heading in BIOS and OS tuning for AMD EPYC processors.

ilorest get --select Bios --json

For each option in that HPE section, find the same option in the get output from this server. Use the name printed there in ilorest set.

Set and commit

Put every set for this batch before one commit. ilorest pending shows what is staged. AdminName below only shows the shape of a set. Substitute the name and value from the get output.

ilorest select Bios
ilorest set AdminName=Value
ilorest commit
ilorest pending
ilorest logout

Reboot the host once after pending lists the changes you intend. That reboot applies them.

File dump

When many values change, save the BIOS settings, edit the file, and load it back. This is the current form of the older CONREP conrep.dat files. Read-only values in the file are ignored.

ilorest login
ilorest save --selector=Bios --json -f bios.json
ilorest load -f bios.json

Edit bios.json between save and load. Reboot the host once after load.

SR-IOV

SR-IOV is a global BIOS option. Find its name with ilorest get on this server, then set and commit it. Also check the NICs on this server for their own SR-IOV setting. When one is present, set and commit it too, then reboot once.