Skip to content

Commit 7e67ce9

Browse files
authored
Merge pull request #94753 from ShaunaDiaz/OSDOCS-14929
OSDOCS-14929: backports bootc updates to 4.18 MicroShift
2 parents 2246b51 + a2b90fb commit 7e67ce9

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

_topic_maps/_topic_map_ms.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ Distros: microshift
7878
Topics:
7979
- Name: Understanding image mode for RHEL
8080
File: microshift-about-rhel-image-mode
81-
- Name: Installing a bootc image
81+
- Name: Installing a bootc image and publishing to a registry
8282
File: microshift-install-bootc-image
83-
- Name: Running the bootc image
83+
- Name: Running the bootc image in a virtual machine
8484
File: microshift-install-running-bootc-image-vm
8585
---
8686
Name: Using RHEL Kickstarts

microshift_install_bootc/microshift-install-bootc-image.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:_mod-docs-content-type: ASSEMBLY
22
[id="microshift-install-publish-bootc-image"]
33
include::_attributes/attributes-microshift.adoc[]
4-
= Installing and publishing a bootc image to a registry
4+
= Installing a bootc image and publishing to a registry
55
:context: microshift-install-rhel-bootc-image
66

77
toc::[]

modules/microshift-install-bootc-build-image.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ Image mode for {op-system-base} is Technology Preview. Using a bootc image in pr
2525
. Create a Containerfile that includes the following instructions:
2626
+
2727
.Example Containerfile for {op-system-base} image mode
28-
[source,text]
28+
[source,text,subs="attributes+"]
2929
----
30-
FROM registry.redhat.io/rhel9/rhel-bootc:9.4
30+
FROM registry.redhat.io/rhel{op-system-version-major}/rhel-bootc:{op-system-version}
3131

32-
ARG USHIFT_VER=4.17
32+
ARG USHIFT_VER={product-version}
3333
RUN dnf config-manager \
34-
--set-enabled rhocp-${USHIFT_VER}-for-rhel-9-$(uname -m)-rpms \
35-
--set-enabled fast-datapath-for-rhel-9-$(uname -m)-rpms
34+
--set-enabled rhocp-${USHIFT_VER}-for-{op-system-version-major}-$(uname -m)-rpms \
35+
--set-enabled fast-datapath-for-{op-system-version-major}-$(uname -m)-rpms
3636
RUN dnf install -y firewalld microshift && \
3737
systemctl enable microshift && \
3838
dnf clean all
@@ -76,22 +76,22 @@ Podman uses the host subscription information and repositories inside the contai
7676
+
7777
[source,terminal]
7878
----
79-
PULL_SECRET=~/.pull-secret.json
79+
$ PULL_SECRET=~/.pull-secret.json
8080
----
8181

8282
. Configure the `USER_PASSWD` environment variable:
8383
+
8484
[source,terminal,subs="+quotes"]
8585
----
86-
USER_PASSWD=_<redhat_user_password>_ <1>
86+
$ USER_PASSWD=_<redhat_user_password>_ <1>
8787
----
8888
<1> Replace _<redhat_user_password>_ with your password.
8989

9090
. Configure the `IMAGE_NAME` environment variable:
9191
+
9292
[source,terminal,subs="attributes+"]
9393
----
94-
IMAGE_NAME=microshift-{product-version}-bootc
94+
$ IMAGE_NAME=microshift-{product-version}-bootc
9595
----
9696

9797
. Create a local bootc image by running the following image build command:
@@ -103,7 +103,7 @@ $ sudo podman build --authfile "${PULL_SECRET}" -t "${IMAGE_NAME}" \
103103
-f Containerfile
104104
----
105105
+
106-
[NOTE]
106+
[IMPORTANT]
107107
====
108108
How secrets are used during the image build:
109109

modules/microshift-install-bootc-creating-vm.adoc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ You can create a virtual machine by using the {op-system-base-full} boot ISO ima
2222

2323
. Copy the downloaded file to the `/var/lib/libvirt/images` directory.
2424

25-
. Use your values to configure the following environment variables:
25+
. Configure the VMNAME environment variable with your value by running the following command:
2626
+
2727
[source,terminal,subs="attributes+"]
2828
----
29-
VMNAME=microshift-{product-version}-bootc
30-
NETNAME=default
29+
$ VMNAME=microshift-{product-version}-bootc
30+
----
31+
32+
. Configure the NETNAME environment variable with your value by running the following command:
33+
+
34+
[source,terminal,subs="attributes+"]
35+
----
36+
$ NETNAME=default
3137
----
3238

3339
. Create a {op-system-base-full} virtual machine with 2 cores, 2GB of RAM and 20GB of storage by running the following command:
@@ -49,14 +55,14 @@ $ sudo virt-install \
4955
+
5056
[NOTE]
5157
====
52-
The `sudo virt-install` command uses the Kickstart file to pull a bootc image from the remote registry and install the {op-system-base-full} operating system.
58+
The `sudo virt-install` command uses the Kickstart file to pull a bootc image from the remote registry and install the {op-system-base} operating system.
5359
====
5460

5561
. Log in to the virtual machine by using your `redhat` credentials.
5662

5763
.Verification
5864

59-
. Verify that all the {microshift-short} pods are running without error, by running the following command:
65+
. Verify that all of the {microshift-short} pods are running without error by entering the following command:
6066
+
6167
[source,terminal]
6268
----
@@ -69,7 +75,6 @@ $ watch sudo oc get pods -A \
6975
----
7076
NAMESPACE NAME READY STATUS RESTARTS AGE
7177
kube-system csi-snapshot-controller-7cfb9df49c-kc9dx 1/1 Running 0 31s
72-
kube-system csi-snapshot-webhook-5c6b978878-jzk5r 1/1 Running 0 28s
7378
openshift-dns dns-default-rpnlt 2/2 Running 0 14s
7479
openshift-dns node-resolver-rxvdk 1/1 Running 0 31s
7580
openshift-ingress router-default-69cd7b5545-7zcw7 1/1 Running 0 29s

modules/microshift-install-bootc-get-published-image.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="microshift-install-bootc-get-published-image_{context}"]
77
= Getting the published bootc image for {microshift-short}
88

9-
You can find and use the {microshift-short} container images to install {op-system-base-full}.
9+
You can use the {microshift-short} container images to install {op-system-image}.
1010

1111
.Prerequisites
1212

0 commit comments

Comments
 (0)