/bootstrap-fedora-coreos-with-redfish-bmc

Bootstrap Fedora CoreOS on a bare-metal server using a Redfish BMC

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Bootstrap Fedora CoreOS on a bare-metal server using a Redfish BMC

This brief guide will install Fedora CoreOS on a bare-metal server, optionally using a Redfish-compatible BMC (baseboard management controller).

NOTE: The bootstrap process will wipe all data from the bare-metal server!!! ⚠️

Install jq, curl and Docker or Podman. Open Butane file config.bu and customize your username and SSH public key in the passwd.users list. Open a shell at your local host and enter:

sudo -s

# Define the BMC's hostname and its https port (optional)
BMC_HOSTNAME_PORT="redfish-bmc.local"

# Define a hostname or ip address which your BMC can resolve and connect to (optional)
ENDPOINT=$(ip -j route get 1.1.1.1 | jq -r '.[0].prefsrc')

# Define the install destination device
INSTALL_DEVICE=/dev/sda

export BMC_HOSTNAME_PORT ENDPOINT INSTALL_DEVICE

# Launch bootstrapping script and follow instructions on how to mount the CoreOS ISO as virtual media at your BMC
# ATTENTION: All data of your bare-metal server will be wiped, so ensure $BMC_HOSTNAME_PORT is set correctly!
./bootstrap.sh