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.
-
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, andREGISTRY_CONFIGrequired variables.
|
|
The subscription must include access to the |
-
Add the following variables to create an RPM Kickstart file:
-
The
RHSM_ORGvariable 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_KEYvariable 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_VERvariable references the MicroShift version to install using the4.yformat. The latest available.zversion of the4.yversion set in this variable is automatically installed.$ export MICROSHIFT_VER={product-version}In this example, the latest
.zof the minor version that you set is installed.
-
-
Run the following command to create the
kickstart.ksfile to be used during the virtual machine installation:envsubst < \ /usr/share/microshift/kickstart/kickstart-rpm.ks.template > \ "${HOME}/kickstart.ks"