In the following post, we are going to talk about how to locally cash the RHCOS images for Openshift 4.
Prerequisites
Linux Operating System ( in the further steps example of this post, we are going to use Fedora Linux 36 (Workstation Edition) ).
The host should have internet connectivity
openshift-baremetal-install-cli:
RHCOS cache images
Step 1. Install podman
Step 2. Open firewall
Step 3. Creating the RHCOS cache images directory
Step 4. Get the URI for the RHCOS image that the installation program will deploy on the bootstrap VM
Step 5. Get the name of the image that the installation program will deploy on the bootstrap VM
Step 6. Create the pod:
Step 7. Systemd manage of rhcos_image_cache
The above command creates a caching webserver with the name rhcos_image_cache, which serves the images for deployment. The first image ${RHCOS_PATH}${RHCOS_QEMU_URI}?sha256=${RHCOS_QEMU_SHA_UNCOMPRESSED} is the bootstrapOSImage and the second image ${RHCOS_PATH}${RHCOS_OPENSTACK_URI}?sha256=${RHCOS_OPENSTACK_SHA_COMPRESSED} is the clusterOSImage in the install-config.yaml file.
Step 8. Generate the bootstrapOSImage and clusterOSImage configuration
This step will be detail on the next post, for which we will overview the creation of install-config.yaml file.
For more details you can check the official Openshift Documentation