// 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 agent create image ---- . Create an iPXE script by running the following command: + [source,terminal] ---- $ cat << EOF > agent.ipxe !ipxe set initiator-iqn :\${hostname} sanboot --keep iscsi:.1:::::\${hostname} EOF ---- + -- where: :: Specifies the iSCSI initiator name on the host that is booting the ISO. This name can also be used by the iSCSI target. :: Specifies the IP address of the iSCSI target. :: 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 ----