第 1 章 更新 Red Hat Enterprise Linux AI
Red Hat Enterprise Linux AI 允许您更新您的实例,以便可以使用最新版本的 RHEL AI 和 InstructLab。
1.1. 更新 RHEL AI 实例
您可以更新您的实例以使用最新版本的 RHEL AI 和 InstructLab
先决条件
- 您在其中一个支持的平台中安装并部署了 Red Hat Enterprise Linux AI 实例。
- 您创建了红帽 registry 帐户。
- 在机器上具有 root 用户访问权限。
流程
使用
podman
命令登录到您的红帽 registry 帐户:sudo podman login registry.redhat.io --username <user-name> --password <user-password> --authfile /etc/ostree/auth.json
$ sudo podman login registry.redhat.io --username <user-name> --password <user-password> --authfile /etc/ostree/auth.json
Copy to Clipboard Copied! 或者您可以使用
skopeo
命令登录:sudo skopeo login registry.redhat.io --username <user-name> --password <user-password> --authfile /etc/ostree/auth.json
$ sudo skopeo login registry.redhat.io --username <user-name> --password <user-password> --authfile /etc/ostree/auth.json
Copy to Clipboard Copied! 升级到 Red Hat Enterprise Linux AI 的次版本
您可以使用机器硬件的
bootc
镜像升级实例以使用 Red Hat Enterprise Linux AI 的最新版本。sudo bootc switch registry.redhat.io/rhelai1/bootc-<hardware-vendor>-rhel9:<rhel-ai-version>
$ sudo bootc switch registry.redhat.io/rhelai1/bootc-<hardware-vendor>-rhel9:<rhel-ai-version>
Copy to Clipboard Copied! 其中
- <hardware-vendor>
-
为您的加速器指定硬性供应商。有效值包括:
nvidia
、aum
d 和intel
。 - <rhel-ai-version>
指定要升级到的 RHEL AI 版本。
带有 NVIDIA 加速器的机器命令示例
sudo bootc switch registry.redhat.io/rhelai1/bootc-nvidia-rhel9:1.5
$ sudo bootc switch registry.redhat.io/rhelai1/bootc-nvidia-rhel9:1.5
Copy to Clipboard Copied!
运行以下命令重启您的系统:
sudo reboot -n
$ sudo reboot -n
Copy to Clipboard Copied! 重要当升级到 RHEL AI 版本 1.5 时,在重新初始化前,
/etc/skel/.config/containers/storage.conf
存储配置需要复制到<user-home>/.config/containers/storage.conf
主目录。例如:
cp /etc/skel/.config/containers/storage.conf <user-home>/.config/containers/storage.con
$ cp /etc/skel/.config/containers/storage.conf <user-home>/.config/containers/storage.con
Copy to Clipboard Copied!
升级到 Red Hat Enterprise Linux AI 的 z-stream 版本
如果存在 z-stream,您可以通过运行 folllowing 命令将系统升级到 RHEL AI 的 z-stream 版本:
sudo bootc upgrade --apply
$ sudo bootc upgrade --apply
Copy to Clipboard Copied!
建议您在升级到最新的 RHEL AI 版本后重新初始化您的环境和配置。
警告ilab config init
命令覆盖现有的config.yaml
文件,并将其设置为每个系统硬件的默认配置。如果自定义config.yaml
文件,请确保在重新初始化前熟悉自定义配置。ilab config init
$ ilab config init
Copy to Clipboard Copied!