This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.10.2.9. Fast-track 安装:创建 Red Hat Enterprise Linux CoreOS(RHCOS)机器
在您置备的 IBM Z 基础架构上安装集群前,您必须将 RHCOS 安装为 Red Hat Enterprise Linux(RHEL)虚拟机,供集群使用。完成以下步骤,在 Red Hat Enterprise Linux CoreOS(RHCOS)快速安装中创建机器,导入预先打包的 Red Hat Enterprise Linux CoreOS(RHCOS)QEMU copy-on-write(QCOW2)磁盘镜像。
先决条件
- 至少有一个 LPAR 使用 KVM 运行 RHEL 8.4,在此过程中称为 RHEL KVM 主机。
- KVM/QEMU 管理程序安装在 RHEL KVM 主机上。
- 可执行主机名并对节点进行逆向查询的域名服务器(DNS)。
- 提供 IP 地址的 DHCP 服务器。
流程
从红帽客户门户网站上的产品下载页面或RHCOS 镜像页面,获取 RHEL QEMU copy-on-write(QCOW2)磁盘镜像文件。
重要RHCOS 镜像可能不会随着 OpenShift Container Platform 的每一发行版本都有改变。您必须下载最高版本的镜像,其版本号应小于或等于您安装的 OpenShift Container Platform 版本。仅使用以下流程中描述的适当 RHCOS QCOW2 镜像。
将 QCOW2 磁盘镜像和 Ignition 文件下载到 RHEL KVM 主机上的通用目录中。
例如:
/var/lib/libvirt/images注意Ignition 文件由 OpenShift Container Platform 安装程序生成。
为每个 KVM 客户机节点使用 QCOW2 磁盘镜像文件创建新磁盘镜像。
qemu-img create -f qcow2 -F qcow2 -b /var/lib/libvirt/images/{source_rhcos_qemu} /var/lib/libvirt/images/{vmname}.qcow2 {size}$ qemu-img create -f qcow2 -F qcow2 -b /var/lib/libvirt/images/{source_rhcos_qemu} /var/lib/libvirt/images/{vmname}.qcow2 {size}Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用 Ignition 文件和新磁盘镜像创建新 KVM 客户机节点。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow