Chapter 4. Setting up the test environment
To certify your product, you must first set up the environment where you can run the tests. The test environment consists of a host under test (HUT).
4.1. For RHEL hardware certification Copy linkLink copied to clipboard!
Set up the test environment where you can run the tests.
The test environment consists of at least two systems:
- System 1: Acts as a host under test (HUT)
- System 2: Acts as the test server
4.1.1. Setting up the host under test Copy linkLink copied to clipboard!
A system on which the product that needs certification is installed or configured is referred to as the host under test (HUT).
Prerequisites
- The HUT has RHEL version 8, 9, or 10 installed. For convenience, Red Hat provides kickstart files to install the HUT’s operating system. Follow the instructions in the file that is appropriate for your system before launching the installation process.
Procedure
Configure the Red Hat Certification repository:
Use your RHN credentials to register your system using Red Hat Subscription Management:
subscription-manager register
# subscription-manager register
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Display the list of available subscriptions for your system:
subscription-manager list --available*
# subscription-manager list --available*
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Search for the subscription which provides the Red Hat Certification (for RHEL Server) repository and make a note of the subscription and its Pool ID.
Attach the subscription to your system. Replace the pool_ID with the Pool ID of the subscription.
subscription-manager attach --pool=<pool_ID>
# subscription-manager attach --pool=<pool_ID>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteYou don’t have to attach the subscription to your system, if you enable the option Simple content access for Red Hat Subscription Management. For more details, see How do I enable Simple Content Access for Red Hat Subscription Management?
Subscribe to the Red Hat Certification channel:
subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-<HOSTTYPE>-rpms
$ subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-<HOSTTYPE>-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace VERSION with the RHEL version number on the SUT
subscription-manager repos --enable=cert-1-for-rhel-9-<HOSTTYPE>-rpms
subscription-manager repos --enable=cert-1-for-rhel-9-<HOSTTYPE>-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To find out the system architecture, run
uname -m
$ uname -m
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace HOSTTYPE with the system architecture.
subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-x86_64-rpms
$ subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-x86_64-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the hardware test suite package:
NoteThis step is applicable only for RHEL version 9 or later.
dnf install redhat-certification-hardware
$ dnf install redhat-certification-hardware
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.1.2. Setting up the test server Copy linkLink copied to clipboard!
Some of the tests running on the host under test (HUT) require a second system to pass. This second system is known as the test server.
For example, the test that checks bandwidth, transfers data from one system to another, in order to pass.
Prerequisites
- The test server has RHEL version 8, 9, or 10 installed. Red Hat provides kickstart files to install the HUT’s operating system, but you can also use them to install the test server. Follow the instructions in the file that is appropriate for your system before launching the installation process.
Procedure
Configure the Red Hat Certification repository.
Use your RHN credentials to register your system using Red Hat Subscription Management:
subscription-manager register
# subscription-manager register
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Display the list of available subscriptions for your system:
subscription-manager list --available*
# subscription-manager list --available*
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Search for the subscription which provides the Red Hat Certification (for RHEL Server) repository and make a note of the subscription and its Pool ID.
Attach the subscription to your system. Replace the pool_ID with the Pool ID of the subscription.
subscription-manager attach --pool=<pool_ID>
# subscription-manager attach --pool=<pool_ID>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteYou don’t have to attach the subscription to your system, if you enable the option Simple content access for Red Hat Subscription Management. For more details, see How do I enable Simple Content Access for Red Hat Subscription Management?
Subscribe to the Red Hat Certification channel:
subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-<HOSTTYPE>-rpms
$ subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-<HOSTTYPE>-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace VERSION with the RHEL version number on the SUT
subscription-manager repos --enable=cert-1-for-rhel-9-<HOSTTYPE>-rpms
subscription-manager repos --enable=cert-1-for-rhel-9-<HOSTTYPE>-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To find out the system architecture, run
uname -m
$ uname -m
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace HOSTTYPE with the system architecture.
subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-x86_64-rpms
$ subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-x86_64-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the hardware test suite package:
NoteThis step is applicable only for RHEL version 9 or later.
dnf install redhat-certification-hardware
$ dnf install redhat-certification-hardware
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2. For RHEL AI hardware certification Copy linkLink copied to clipboard!
Set up the test environment to run the RHEL AI certification tests.
Prerequisites
- A HUT with supportable hardware requirements or, with a similar configuration.
- A valid Red Hat SSO account.
Procedure
- From your HUT, log in to the Red Hat Hybrid Cloud Console subscriptions page by using your SSO login credentials to confirm you have an active Red Hat Partner Subscription. If not, contact your company’s organization administrator to request for a partner subscription.
- Log in to the Red Hat Insights application and go to the Inventory > System configuration > Activation Keys tab, to generate an activation key for your account. Also, this page displays your Organization ID. Make a note of this ID for future reference.
Register your HUT with the Red Hat Insights application.
sudo rhc connect --organization <org_id> --activation-key <your_activation_key>
sudo rhc connect --organization <org_id> --activation-key <your_activation_key>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable your certification repository for downloading the certification test rpms.
subscription-manager repos --enable=cert-1-for-rhel-9-x86_64-rpms
subscription-manager repos --enable=cert-1-for-rhel-9-x86_64-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the test suite and reboot the HUT.
rpm-ostree install redhat-certification-hardware-ai
rpm-ostree install redhat-certification-hardware-ai
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Login to the Red Hat Registry by using the skopeo tool. This step enables you to download models during the test run.
skopeo login registry.redhat.io
skopeo login registry.redhat.io
Copy to Clipboard Copied! Toggle word wrap Toggle overflow It prompts you to enter your login credentials to access the Red Hat registry.
Running RHEL AI certification tests can be time-consuming. To quickly verify if your HUT is suitable for running these tests, go to /etc/rhcert.xml
file and update the value of <rhelai training>
parameter from full
to short
as shown below:
<rhelai training="short" epoch="2" config-update="true">
<rhelai training="short" epoch="2" config-update="true">
This acts as a sanity test allowing you to quickly identify any issues with the AI accelerators before running the certification tests. This test result is not considered for certification.
Verification
To verify if your test environment is set, execute the following command:
rpm-ostree status
rpm-ostree status
It confirms the successful installation of redhat-certification-hardware-ai
package.