Skip to content

Commit ed0a02d

Browse files
committed
add steps to enable FIPS mode on IBM Z
1 parent 03bfd3f commit ed0a02d

4 files changed

+61
-8
lines changed

modules/adding-ibm-z-lpar-agent.adoc

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,19 @@ rd.neednet=1 cio_ignore=all,!condev \
2323
console=ttysclp0 \
2424
ignition.firstboot ignition.platform.id=metal
2525
coreos.live.rootfs_url=http://<http_server>/rhcos-<version>-live-rootfs.<architecture>.img \// <1>
26-
coreos.inst.persistent-kargs=console=ttysclp0
26+
coreos.inst.persistent-kargs=console=ttysclp0 \
2727
ip=<ip>::<gateway>:<netmask>:<hostname>::none nameserver=<dns> \// <2>
2828
rd.znet=qeth,<network_adaptor_range>,layer2=1
2929
rd.<disk_type>=<adapter> \// <3>
30-
zfcp.allow_lun_scan=0
31-
ai.ip_cfg_override=1 \//
30+
fips=1 \// <4>
31+
zfcp.allow_lun_scan=0 \
32+
ai.ip_cfg_override=1 \
3233
random.trust_cpu=on rd.luks.options=discard
3334
----
3435
<1> For the `coreos.live.rootfs_url` artifact, specify the matching `rootfs` artifact for the `kernel` and `initramfs` that you are starting. Only HTTP and HTTPS protocols are supported.
3536
<2> For the `ip` parameter, manually assign the IP address, as described in _Installing a cluster with z/VM on IBM Z and IBM LinuxONE_.
3637
<3> For installations on DASD-type disks, use `rd.dasd` to specify the DASD where {op-system-first} is to be installed. For installations on FCP-type disks, use `rd.zfcp=<adapter>,<wwpn>,<lun>` to specify the FCP disk where {op-system} is to be installed.
38+
<4> To enable FIPS mode, specify `fips=1`. This entry is required in addition to setting the `fips` parameter to `true` in the `install-config.yaml` file.
3739
+
3840
[NOTE]
3941
====

modules/agent-installer-configuring-fips-compliance.adoc

+10
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
During a cluster deployment, the Federal Information Processing Standards (FIPS) change is applied when the Red Hat Enterprise Linux CoreOS (RHCOS) machines are deployed in your cluster. For Red Hat Enterprise Linux (RHEL) machines, you must enable FIPS mode when you install the operating system on the machines that you plan to use as worker machines.
1212

13+
[IMPORTANT]
14+
====
15+
{product-title} requires the use of a FIPS-capable installation binary to install a cluster in FIPS mode.
16+
====
17+
1318
You can enable FIPS mode through the preferred method of `install-config.yaml` and `agent-config.yaml`:
1419

1520
. You must set value of the `fips` field to `True` in the `install-config.yaml` file:
@@ -24,6 +29,11 @@ metadata:
2429
name: sno-cluster
2530
fips: True
2631
----
32+
+
33+
[IMPORTANT]
34+
====
35+
To enable FIPS mode on {ibm-z-name} clusters, you must also enable FIPS in either the `.parm` file or using `virt-install` as outlined in the procedures for manually adding {ibm-z-name} agents.
36+
====
2737

2838
. Optional: If you are using the {ztp} manifests, you must set the value of `fips` as `True` in the `Agent-install.openshift.io/install-config-overrides` field in the `agent-cluster-install.yaml` file:
2939

modules/installing-ocp-agent-ibm-z-kvm.adoc

+39
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ $ virt-install \
4949
--osinfo detect=on,require=off
5050
----
5151
<1> For the `--location` parameter, specify the location of the kernel/initrd on the HTTP or HTTPS server.
52+
5253
endif::pxe-boot[]
5354

5455
ifndef::pxe-boot[]
5556
+
57+
.ISO boot
5658
[source,terminal]
5759
----
5860
$ virt-install
@@ -72,6 +74,43 @@ $ virt-install
7274
<1> For the `--cdrom` parameter, specify the location of the ISO image on the HTTP or HTTPS server.
7375
endif::pxe-boot[]
7476

77+
. Optional: Enable FIPS mode.
78+
+
79+
To enable FIPS mode on {ibm-z-name} clusters with {op-system-base} KVM you must use PXE boot instead and run the `virt-install` command with the following parameters:
80+
+
81+
.PXE boot
82+
[source,terminal]
83+
----
84+
$ virt-install \
85+
--name <vm_name> \
86+
--autostart \
87+
--ram=16384 \
88+
--cpu host \
89+
--vcpus=8 \
90+
--location <path_to_kernel_initrd_image>,kernel=kernel.img,initrd=initrd.img \// <1>
91+
--disk <qcow_image_path> \
92+
--network network:macvtap ,mac=<mac_address> \
93+
--graphics none \
94+
--noautoconsole \
95+
--wait=-1 \
96+
--extra-args "rd.neednet=1 nameserver=<nameserver>" \
97+
--extra-args "ip=<IP>::<nameserver>::<hostname>:enc1:none" \
98+
--extra-args "coreos.live.rootfs_url=http://<http_server>:8080/agent.s390x-rootfs.img" \
99+
--extra-args "random.trust_cpu=on rd.luks.options=discard" \
100+
--extra-args "ignition.firstboot ignition.platform.id=metal" \
101+
--extra-args "console=tty1 console=ttyS1,115200n8" \
102+
--extra-args "coreos.inst.persistent-kargs=console=tty1 console=ttyS1,115200n8" \
103+
--extra-args "fips=1" \// <2>
104+
--osinfo detect=on,require=off
105+
----
106+
<1> For the `--location` parameter, specify the location of the kernel/initrd on the HTTP or HTTPS server.
107+
<2> To enable FIPS mode, specify `fips=1`. This entry is required in addition to setting the `fips` parameter to `true` in the `install-config.yaml` file.
108+
+
109+
[NOTE]
110+
====
111+
Currently, only PXE boot is supported to enable FIPS mode on {ibm-z-name}.
112+
====
113+
75114
ifeval::["{context}" == "prepare-pxe-assets-agent"]
76115
:!pxe-boot:
77116
endif::[]

modules/installing-ocp-agent-ibm-z-zvm.adoc

+7-5
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ Only use this procedure for {ibm-z-name} clusters with z/VM.
2323
----
2424
rd.neednet=1 \
2525
console=ttysclp0 \
26-
coreos.live.rootfs_url=<rootfs_url> \ <1>
27-
ip=172.18.78.2::172.18.78.1:255.255.255.0:::none nameserver=172.18.78.1 \ <2>
28-
zfcp.allow_lun_scan=0 \ <3>
26+
coreos.live.rootfs_url=<rootfs_url> \// <1>
27+
ip=172.18.78.2::172.18.78.1:255.255.255.0:::none nameserver=172.18.78.1 \// <2>
28+
zfcp.allow_lun_scan=0 \// <3>
2929
ai.ip_cfg_override=1 \
3030
rd.znet=qeth,0.0.bdd0,0.0.bdd1,0.0.bdd2,layer2=1 \
31-
rd.dasd=0.0.4411 \ <4>
32-
rd.zfcp=0.0.8001,0x50050763040051e3,0x4000406300000000 \ <5>
31+
rd.dasd=0.0.4411 \// <4>
32+
rd.zfcp=0.0.8001,0x50050763040051e3,0x4000406300000000 \// <5>
33+
fips=1 \// <6>
3334
random.trust_cpu=on rd.luks.options=discard \
3435
ignition.firstboot ignition.platform.id=metal \
3536
console=tty1 console=ttyS1,115200n8 \
@@ -40,6 +41,7 @@ coreos.inst.persistent-kargs="console=tty1 console=ttyS1,115200n8"
4041
<3> The default is `1`. Omit this entry when using an OSA network adapter.
4142
<4> For installations on DASD-type disks, use `rd.dasd` to specify the DASD where {op-system-first} is to be installed. Omit this entry for FCP-type disks.
4243
<5> For installations on FCP-type disks, use `rd.zfcp=<adapter>,<wwpn>,<lun>` to specify the FCP disk where {op-system} is to be installed. Omit this entry for DASD-type disks.
44+
<6> To enable FIPS mode, specify `fips=1`. This entry is required in addition to setting the `fips` parameter to `true` in the `install-config.yaml` file.
4345
+
4446
Leave all other parameters unchanged.
4547

0 commit comments

Comments
 (0)