이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 6. Preparing installation assets for iSCSI booting
You can boot an OpenShift Container Platform cluster through Internet Small Computer System Interface (iSCSI) by using an ISO image generated by the Agent-based Installer. The following procedures describe how to prepare the necessary installation resources to boot from an iSCSI target.
The assets you create in these procedures deploy a single-node OpenShift Container Platform installation. You can use these procedures as a basis and modify configurations according to your requirements.
6.1. Requirements for iSCSI booting 링크 복사링크가 클립보드에 복사되었습니다!
The following configurations are necessary to enable iSCSI booting when using the Agent-based Installer:
- Dynamic Host Configuration Protocol (DHCP) must be configured. Static networking is not supported.
- You must create an additional network for iSCSI that is separate from the machine network of the cluster. The machine network is rebooted during cluster installation and cannot be used for the iSCSI session.
-
If the host on which you are booting the agent ISO image also has an installed disk, it might be necessary to specify the iSCSI disk name in the
rootDeviceHintsparameter to ensure that it is chosen as the boot disk for the final Red Hat Enterprise Linux CoreOS (RHCOS) image. You can also use a diskless environment for iSCSI booting, in which case you do not need to set therootDeviceHintsparameter.
6.2. Prerequisites 링크 복사링크가 클립보드에 복사되었습니다!
- You reviewed details about the OpenShift Container Platform installation and update processes.
- You read the documentation on selecting a cluster installation method and preparing it for users.
- If you use a firewall or proxy, you configured it to allow the sites that your cluster requires access to.
6.3. Downloading the Agent-based Installer 링크 복사링크가 클립보드에 복사되었습니다!
Use this procedure to download the Agent-based Installer and the CLI needed for your installation.
Procedure
- Log in to the Red Hat Hybrid Cloud Console using your login credentials.
- Navigate to Datacenter.
- Click Run Agent-based Installer locally.
- Select the operating system and architecture for the OpenShift Installer and Command line interface.
- Click Download Installer to download and extract the install program.
- Download or copy the pull secret by clicking on Download pull secret or Copy pull secret.
-
Click Download command-line tools and place the
openshift-installbinary in a directory that is on yourPATH.
6.4. Creating the preferred configuration inputs 링크 복사링크가 클립보드에 복사되었습니다!
Use this procedure to create the preferred configuration inputs used to create the agent image.
Configuring the install-config.yaml and agent-config.yaml files is the preferred method for using the Agent-based Installer. Using GitOps ZTP manifests is optional.
Procedure
Install the
nmstatedependency by running the following command:sudo dnf install /usr/bin/nmstatectl -y
$ sudo dnf install /usr/bin/nmstatectl -yCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Place the
openshift-installbinary in a directory that is on your PATH. Create a directory to store the install configuration by running the following command:
mkdir ~/<directory_name>
$ mkdir ~/<directory_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the
install-config.yamlfile by running the following command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Specify the system architecture. Valid values are
amd64,arm64,ppc64le, ands390x.If you are using the release image with the
multipayload, you can install the cluster on different architectures such asarm64,amd64,s390x, andppc64le. Otherwise, you can install the cluster only on therelease architecturedisplayed in the output of theopenshift-install versioncommand. For more information, see "Verifying the supported architecture for installing an Agent-based Installer cluster". - 2
- Required. Specify your cluster name.
- 3
- The cluster network plugin to install. The default value
OVNKubernetesis the only supported value. - 4
- Specify your platform.Note
For bare-metal platforms, host settings made in the platform section of the
install-config.yamlfile are used by default, unless they are overridden by configurations made in theagent-config.yamlfile. - 5
- Specify your pull secret.
- 6
- Specify your SSH public key.
NoteIf you set the platform to
vSphere,baremetal, ornone, you can configure IP address endpoints for cluster nodes in three ways:- IPv4
- IPv6
- IPv4 and IPv6 in parallel (dual-stack)
Example of dual-stack networking
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteWhen you use a disconnected mirror registry, you must add the certificate file that you created previously for your mirror registry to the
additionalTrustBundlefield of theinstall-config.yamlfile.Create the
agent-config.yamlfile by running the following command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- This IP address is used to determine which node performs the bootstrapping process as well as running the
assisted-servicecomponent. You must provide the rendezvous IP address when you do not specify at least one host’s IP address in thenetworkConfigparameter. If this address is not provided, one IP address is selected from the provided hosts'networkConfig. - 2
- Optional: Host configuration. The number of hosts defined must not exceed the total number of hosts defined in the
install-config.yamlfile, which is the sum of the values of thecompute.replicasandcontrolPlane.replicasparameters. - 3
- Optional: Overrides the hostname obtained from either the Dynamic Host Configuration Protocol (DHCP) or a reverse DNS lookup. Each host must have a unique hostname supplied by one of these methods.
- 4
- Enables provisioning of the Red Hat Enterprise Linux CoreOS (RHCOS) image to a particular device. The installation program examines the devices in the order it discovers them, and compares the discovered values with the hint values. It uses the first discovered device that matches the hint value.
- 5
- Optional: Configures the network interface of a host in NMState format.
- 6
- Generates an ISO image without the rootfs image file, and instead provides details about where to pull the rootfs file from. You must set this parameter to
trueto enable iSCSI booting.
6.5. Creating the installation files 링크 복사링크가 클립보드에 복사되었습니다!
Use the following procedure to generate the ISO image and create an iPXE script to upload to your iSCSI target.
Procedure
Create the agent image by running the following command:
openshift-install --dir <install_directory> agent create image
$ openshift-install --dir <install_directory> agent create imageCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create an iPXE script by running the following command:
cat << EOF > agent.ipxe !ipxe set initiator-iqn <iscsi_initiator_base>:\${hostname} sanboot --keep iscsi:<iscsi_network_subnet>.1::::<iscsi_target_base>:\${hostname} EOF$ cat << EOF > agent.ipxe !ipxe set initiator-iqn <iscsi_initiator_base>:\${hostname} sanboot --keep iscsi:<iscsi_network_subnet>.1::::<iscsi_target_base>:\${hostname} EOFCopy to Clipboard Copied! Toggle word wrap Toggle overflow where:
- <iscsi_initiator_base>
- Specifies the iSCSI initiator name on the host that is booting the ISO. This name can also be used by the iSCSI target.
- <iscsi_network_subnet>
- Specifies the IP address of the iSCSI target.
- <iscsi_target_base>
- Specifies the iSCSI target name. This name can be the same as the initiator name.
Example Command
cat << EOF > agent.ipxe !ipxe set initiator-iqn iqn.2023-01.com.example:\${hostname} sanboot --keep iscsi:192.168.45.1::::iqn.2023-01.com.example:\${hostname} EOF$ cat << EOF > agent.ipxe !ipxe set initiator-iqn iqn.2023-01.com.example:\${hostname} sanboot --keep iscsi:192.168.45.1::::iqn.2023-01.com.example:\${hostname} EOFCopy to Clipboard Copied! Toggle word wrap Toggle overflow