1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/installing-ocp-agent-iscsi-files.adoc
2025-02-17 18:27:01 +00:00

49 lines
1.3 KiB
Plaintext

// Module included in the following assemblies:
//
// * installing/installing_with_agent_based_installer/installing-using-iscsi.adoc
:_mod-docs-content-type: PROCEDURE
[id="installing-ocp-agent-iscsi-files_{context}"]
= 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:
+
[source,terminal]
----
$ openshift-install --dir <install_directory> agent create image
----
. Create an iPXE script by running the following command:
+
[source,terminal]
----
$ cat << EOF > agent.ipxe
!ipxe
set initiator-iqn <iscsi_initiator_base>:\${hostname}
sanboot --keep iscsi:<iscsi_network_subnet>.1::::<iscsi_target_base>:\${hostname}
EOF
----
+
--
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
[source,terminal]
----
$ 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
----