To install or upgrade the operating system for a Dell switch, you require a media object.
To create a 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/media.
- Create a media YAML file for the uploaded image file by copying one of the sample files: os10.yaml or sonic.yaml. For example:
cp <nosmedia>.yaml <new-media>.yaml
- Edit the <new-media>.yaml file in Vim or a similar editor. For example:
vi os10.yaml
- Customize the <new-media>.yaml with the required configurations:
- Update the name of the media object. For more information, see Metadata.
- Update the value for the media attributes. For more information, see Media field definitions.
The following is an example snapshot of a SONiC media.yaml file for a switch:
apiVersion: mw.dell.com/v4
kind: Media
metadata:
name: sonic-media
spec:
# Required: type can be either "server" or "switch" based on the hardware resource server or switch.
type: "switch"
# Optional: vendor refers to whether a Dell EMC customized image or generic vendor image.
# Ex: If ESXi ISO image is generic then vendor is "vmware", if it is a Dell customized image then vendor is "dell".
vendor: "dell"
# Required: osname can be either "dellos10", "sonic ", "esxi", "rhel", "wr" or "suse".
osname: "sonic"
# Optional: osversion refers to version of the OS type.
# Normal version must take the form X.Y.Z where X is major version, Y is minor version and Z is the patch version.
osversion: "4.0.3"
# Required: osfilename is the os image.
osfilename: "Enterprise_SONiC_OS_4.0.3_Enterprise_Standard.bin"
# Optional: externalIPAddr is the Secondary IP of BMO fileserver that is required if BMC can't directly reach to the BMO through management IP.
externalIPAddr: "" - Save the file and quit the editor.
- Create the media object with the following command:
bmo create media -f <new-media>.yaml
For example:bmo create media -f os10.yaml
- View the created media object with the following command:
bmo get media