Create a firmware media object for a firmware update.
To create a firmware media object:
- Establish a CLI session on the Bare Metal Orchestrator VM and log in. For high availability configurations, establish a CLI session using the virtual IP (VIP) of the Load Balancers for the Bare Metal Orchestrator cluster.
- Change the directory to ~/samples/firmwaremedia.
- Create a firmware media YAML file for the uploaded firmware image by copying the sample file, firmware_onie.yaml.
cp <firmware_onie.yaml> <new-fw-media>.yaml
- Edit the <new-fw-media>.yaml file in Vim or a similar editor.
For example:
vi fw_media.yaml
- Customize the <new-fw-media>.yaml file with the required configurations:
- Update the name of the firmware media object. For more information, see Metadata.
- Update the value for the firmware media attributes. For more information, see Firmware media field definitions.
This is an example snapshot of the updated fw_media.yaml file:# This is a sample firmware media spec
apiVersion: mw.dell.com/v3
kind: FirmwareMedia
metadata:
name: firmwareDellSwitch
spec:
type: "switch"
vendor: "dell"
model: "S5212F-ON"
firmwareName: "ONIE-Update"
category: "DeviceFirmware"
version: "v0.3.40"
imagefilename: "onie-firmware-x86_64-dellemc_s5200_c3538-r0.3.40.5.1-20.bin"
# This field is optional. If the worker node for the site has an IP address that is not directly accessible from the BMC, enter the external IP address of the VM here as a secondary IP address.
#SecondaryIPAddress: "<ip address>" - Save the file and quit the editor.
- Create the firmware media object with the following command:
bmo create firmwaremedia -f <new-fw-media>.yaml
For example:bmo create firmwaremedia -f fw_media.yaml
- View the created firmware media object with the following command:
bmo get firmwaremedia
- Verify the firmware version with the following command:
bmo describe firmwaremedia