- ensure rhel9 repos are enabled and snapshotted
make repos-import-rhel9
go run cmd/external-repos/main.go process-repos
-
Let those repositories snapshot
-
Note that the current instructions do not work with content_guards enabled. If
custom_repo_content_guardsis set to true in config.yaml, content access will be denied for custom repositories.
You might need to adjust your firewall to allow access. When running on linux, you can set your default firewall zone to "trusted":
sudo firewall-cmd --set-default-zone=trustedTo fully disable the firewall on linux:
sudo systemctl stop firewalldThis is assuming you are running a development environment on a Hypervisor (we'll refer to this as a Laptop to differentiate it from the client Virtual Machine).
- Install a RHEL 9 client as a VM
- Find the IP Address the VM will access the host running the development environment:
ifconfigor
ip listfor example, if a VM has an ip address of 192.168.122.58, the Host's IP address is typically 192.168.122.1
- On the Laptop add this to /etc/hosts:
192.168.122.1 pulp.content
- Configure the client, within the VM:
subscription-manager config --server.hostname=pulp.content --server.port=8444 --server.prefix=/candlepin --server.insecure=1- Register the client within the VM:
subscription-manager registerUsername: admin Password: admin
- Fetch client UUID, within the VM:
$ subscription-manager identity
system identity: 97d9b21f-9b49-4eae-ade7-beb2b050dee1- Add custom repositories if required using UI or API
- Create a content template via UI or API
- Associate system to content template, within the content-sources-backend git repo:
go run cmd/candlepin/main.go add-system $SYSTEM_IDENTITY $TEMPLATE_NAME - refresh subscription-manager, on the VM to fetch new certs:
subscription-manager refresh- Yum repolist on the VM to show
- Configure the client, within the VM:
subscription-manager config --server.hostname=subscription.rhsm.stage.redhat.com --server.port=443 --server.prefix=/subscription --server.insecure=0 --server.proxy_hostname=squid.corp.redhat.com --server.proxy_port=3128 --rhsm.baseurl='https://stagecdn.redhat.com/'- Register the client within the VM:
subscription-manager registerUse the credentials of your stage account.