Create a Kickstart file for a MicroShift RPM installation

You can use the Kickstart file provided with MicroShift to provision an RPM-based virtual machine.

Prerequisites
  • You set up the MicroShift Kickstart file.

  • You know the Activation Keys and organization ID to activate your Red Hat subscription.

  • You have the information needed to set the BOOTC_IMAGE_URL, AUTH_CONFIG, and REGISTRY_CONFIG required variables.

Important

The subscription must include access to the rhocp-4.x-for-rhel-9-$(uname -m)-rpms and fast-datapath-for-rhel-9-$(uname -m)-rpms RPM repositories.

Procedure
  1. Add the following variables to create an RPM Kickstart file:

    • The RHSM_ORG variable contains a Red Hat Subscription Manager organization ID for the subscription registration command in the Kickstart file.

      $ export RHSM_ORG="$(cat ~/.rhsm-activation-org)"
    • The RHSM_KEY variable contains a Red Hat Subscription Manager activation key for the subscription registration command in the Kickstart file.

      $ export RHSM_KEY="$(cat ~/.rhsm-activation-key)"
    • The MICROSHIFT_VER variable references the MicroShift version to install using the 4.y format. The latest available .z version of the 4.y version set in this variable is automatically installed.

      $ export MICROSHIFT_VER={product-version}

      In this example, the latest .z of the minor version that you set is installed.

  2. Run the following command to create the kickstart.ks file to be used during the virtual machine installation:

    envsubst < \
        /usr/share/microshift/kickstart/kickstart-rpm.ks.template > \
        "${HOME}/kickstart.ks"