Create Local Repo#
Use the cw-clusterctl repos command to download ISO images of the
installation DVDs for RHEL-family systems from their respective websites and
import them into the ClusterWareAI ™ software as repos. See Supported Distributions and Features for a
list of supported RHEL systems.
For example, the following command creates a repo that references the
Rocky-8.7-x86_64-dvd1 ISO. The --wait option ensures the ISO is fully
mounted:
cw-clusterctl repos --wait create name=Rocky8repo iso=@Rocky-8.7-x86_64-dvd1.iso
Tip
You can also create a repo when creating a boot configuration by referencing an ISO. See Create Boot Configuration for details.
Once the upload completes, the ISO is automatically forwarded to all head nodes and is locally mounted on each. Use the list subcommand to view repository details:
[cwadmin@virthead]$ cw-clusterctl repos -i Rocky8repo ls -l
Repos
Rocky8repo
iso
chksum: e47d5ca236a3152d63814b32081a1a3261dd1cf4
filename: 4aceb9db1aef4670be82bf49855b514a
mtime: 2023-01-31 23:07:36 UTC (0:08:31 ago)
size: 11.3 GiB (12129927168 bytes)
isolabel: Rocky-8-7-x86_64-dvd
keys: []
name: Rocky8repo
urls
<BASE_URL>/isomount/Rocky8repo/BaseOS/
<BASE_URL>/isomount/Rocky8repo/AppStream/
The ClusterWareAI platform displays URLs for the repositories identified on the
ISO. For example, there is a repository in the root of the uploaded Rocky-8 ISO,
accessible at <BASE_URL>/isomount/Rocky8repo/BaseOS/. The <BASE_URL>
tag is used as a placeholder to signify that any head node can provide access.
When using such a URL, replace the <BASE_URL> with the actual head node's
base URL. For example,
http://10.20.30.30/api/v1/isomount/Rocky8repo/BaseOS/<target-file>.
The ISO can also be downloaded using the cw-clusterctl command:
cw-clusterctl repos -i Rocky8repo download iso
Just like URL defined repos, repos created using ISOs can be referenced in distros. See Creating Images and Using ISO Releases for details about using repos and distros to create compute node images.