Create a Kickstart file for a MicroShift RHEL for Edge installation

You can use the Kickstart file provided with MicroShift to provision a RHEL for Edge-based virtual machine.

Prerequisites
  • You set up the MicroShift Kickstart file.

  • You have the information needed to set required and optional variables.

Procedure
  1. Add the following required variables to create an RHEL for Edge Kickstart file:

    • The OSTREE_SERVER_URL variable contains an rpm-ostree server URL that is passed to the ostreesetup Kickstart command.

      $ export OSTREE_SERVER_URL="<http://my_ostree_server_url>"

      Replace http://my_ostree_server_url with your server URL.

    • The OSTREE_COMMIT_REF variable contains an rpm-ostree commit reference that is installed from the server.

      $ export OSTREE_COMMIT_REF="<myostree_commit_reference>"

      Replace <myostree_commit_reference> with the rpm-ostree commit reference.

  2. Optional. Add the following variable for server authentication:

    • The AUTH_CONFIG contents are copied to /etc/ostree/auth.json at the pre-install stage to authenticate access to the OSTREE_SERVER_URL server. If no server authentication is required, skip this setting.

      $ export AUTH_CONFIG="$(cat ~/.ostree-auth.json)"
  3. Run the following command to create the kickstart.ks file to be used during the installation:

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

    The MicroShift version specified in the rpm-ostree commit is installed. To change the version of MicroShift, you must create a new commit.