Menu Close
6.2.7. Creating Red Hat Enterprise Linux CoreOS (RHCOS) machines
Before you install a cluster on IBM Z infrastructure that you provision, you must install RHCOS on z/VM guest virtual machines for the cluster to use. Complete the following steps to create the machines.
Prerequisites
- An FTP server running on your provisioning machine that is accessible to the machines you create.
Procedure
- Log in to Linux on your provisioning machine.
Download the Red Hat Enterprise Linux CoreOS (RHCOS) installation files from the RHCOS image mirror.
重要The RHCOS images might not change with every release of OpenShift Container Platform. You must download images with the highest version that is less than or equal to the OpenShift Container Platform version that you install. Use the image versions that match your OpenShift Container Platform version if they are available.
Download the following files:
-
The initramfs:
rhcos-<version>-installer-initramfs.img
-
The kernel:
rhcos-<version>-installer-kernel
The operating system image for the disk on which you want to install RHCOS. This type can differ by virtual machine:
rhcos-<version>-s390x-dasd.s390x.raw.gz
for DASDrhcos-<version>-s390x-metal.s390x.raw.gz
for FCP
-
The initramfs:
Create parameter files. The following parameters are specific for a particular virtual machine:
-
For
coreos.inst.install_dev=
, specifydasda
for a DASD installation, orsda
for FCP. Note that FCP requireszfcp.allow_lun_scan=0
. -
For
rd.dasd=
, specifys the DASD where RHCOS is to be installed. -
rd.zfcp=<adapter>,<wwpn>,<lun>
specifies the FCP disk to install RHCOS on. For
ip=
, specify the following seven entries:- The IP address for the machine.
- An empty string.
- The gateway.
- The netmask.
-
The machine host and domain name in the form
hostname.domainname
. Omit this value to let RHCOS decide set it. - The network interface name. Omit this value to let RHCOS decide set it.
- If you use static IP addresses, an empty string.
-
For
coreos.inst.ignition_url=
, specify the Ignition file for the machine role. Usebootstrap.ign
,master.ign
, orworker.ign
. All other parameters can stay as they are.
Example parameter file,
bootstrap-0.parm
, for the bootstrap machine:rd.neednet=1 coreos.inst=yes coreos.inst.install_dev=dasda coreos.inst.image_url=ftp:// cl1.provide.example.com:8080/assets/rhcos-43.80.20200430.0-s390x-dasd.390x.raw.gz coreos.inst.ignition_url=ftp://cl1.provide.example.com:8080/ignition-bootstrap-0 ip=172.18.78.2::172.18.78.1:255.255.255.0:::none nameserver=172.18.78.1 rd.znet=qeth,0.0.bdf0,0.0.bdf1,0.0.bdf2,layer2=1,portno=0 zfcp.allow_lun_scan=0 cio_ignore=all, !condev rd.dasd=0.0.3490
-
For
- Transfer the initramfs, kernel, parameter files, and RHCOS images to z/VM, for example with FTP. For details about how to transfer the files with FTP and boot from the virtual reader, see Installing under Z/VM.
Punch the files to the virtual reader of the z/VM guest virtual machine that is to become your bootstrap node.
See PUNCH in the IBM Knowledge Center.
ヒントYou can use the CP PUNCH command or, if you use Linux, the vmur command to transfer files between two z/VM guest virtual machines.
- Log in to CMS on the bootstrap machine.
IPL the bootstrap machine from the reader:
$ ipl c
See IPL in the IBM Knowledge Center.
- Repeat this procedure for the other machines in the cluster.