You need the filename of the operating system ISO file that is to be deployed on the server.
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 new media .yaml file for the uploaded ISO by copying the sample file.
cp <sample-media-file> <new-media>.yaml
- Edit the <new-media>.yaml file in Vim or a similar editor. For example:
vi esxi.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.
This is an example snapshot of an updated esxi.yaml file, where<Secondary_BMO_IP>
is the external IP address of the VM that is running Bare Metal Orchestrator.
apiVersion: mw.dell.com/v4
kind: Media
metadata:
name: esxi6.7u3
spec:
# Required: type can be either "server" or "network" based on the hardware resource server or switch.
type: "server"
# 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: "vmware"
# Required: osname can be either "dellos10", "sonic ", "esxi", "rhel", "wr" or "suse".
osname: "esxi"
# Required: 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: "6.7u3"
# Required: osfilename is the ISO Name.
osfilename: "VMware-VMvisor-Installer-6.7.0.update03-14320388.iso"
# 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: ""
Note: The comments in the YAML file start with a hash character (#) and is followed by text or the name of the attribute. You can remove # to un-comment and edit the attribute value.
This is an example snapshot of an updated rhel.yaml file.
apiVersion: mw.dell.com/v4
kind: Media
metadata:
name: rhel8.4
spec:
# Required: type can be either "server" or "network" based on the hardware resource server or switch.
type: "server"
# 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: "redhat"
# Required: osname can be either "dellos10", "sonic ", "esxi", "rhel", "wr" or "suse".
osname: "rhel"
# Required: 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: "8.4"
# Required: osfilename is the ISO Name.
osfilename: "rhel-8.4-x86-64-dvd.iso"
# 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: ""
This is an example snapshot of an esxipxe.yaml media file for the web server. Use this media file when creating an ISO image file for ESXi.
Note: The<Secondary_BMO_IP>
is optional.
Note: Theosfilename
value should begin with the name of the webserver folder, if known. For example, if the webserver folder name is isos, the filename value should read as: isos/VMware-VMvisor-Installer-7.0U2a-17867351.x86_64.iso.
apiVersion: mw.dell.com/v4
kind: Media
metadata:
name: esxi-7
spec:
# media file must be available in https nginx web server .
osfilename: "VMware-VMvisor-Installer-7.0U2a-17867351.x86-64.iso"
type: "server"
vendor: "vmware"
osname: "esxi"
osversion: "7u2"This is an example snapshot of a rhelpxe.yaml media file for the web server. Use this media file when creating an ISO image for RHEL.
Note: The<Secondary_BMO_IP>
is optional.
Note: Theosfilename
value should begin with the name of the webserver folder, if known. For example, if the webserver folder name is isos, the filename value should read as: isos/VMware-VMvisor-Installer-7.0U2a-17867351.x86_64.iso.
apiVersion: mw.dell.com/v4
kind: Media
metadata:
name: rhel8.4
spec:
# osfilename is the ISO file path in https nginx web server, media file must be available in web server
osfilename: "rhel-8.4-x86-64-dvd.iso"
type: "server"
vendor: "redhat"
osname: "rhel"
osversion: "8.4" - Save the file and quit the editor.
- Create the media object.
bmo create media -f <new-media>.yaml
For example:bmo create media -f esxi.yaml
- View the created media object.
bmo get media