How to register a system to Red Hat Satellite 6 during a kickstart installation?
Environment
- Red Hat Satellite 6
- Red Hat Satellite Capsule 6
- Red Hat Enterprise Linux 6.10
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Issue
- How to register a system to Red Hat Satellite 6 server during a kickstart of a new RHEL Server?
Resolution
To register a system to a Red Hat Satellite\Capsule 6 as a part of the system build process, the following steps can be taken into consideration:
-
Have an activation key created in the Satellite server and properly configured with the correct Content-View\Lifecycle Environment\Repository set selected\enabled and correct This content is not included.system-purpose settings configured.
- This key will help to:
- Register to Satellite without needing any password or username
- Associated with the specific content-view and Lifecycle
- Enable the required repositories on the system after the registration.
- This key will help to:
-
Get to know the Global Registration method which is the recommended way to register or re-register any RHEL systems with Red Hat Satellite\Capsule servers.
-
This would not only make use of the activation_key to register the system but also have capabilities to set up the host for remote execution and register it to insights.
-
Generate the global registration command from the WebUI or the hammer_cli of the Red Hat Satellite server and note down the command.
-
Ensure that
%packagessection of the kickstart file hascurlmentioned and in the%postsection mention thegenerated commandnoted down earlier to register a system to the Red Hat Satellite server after the initial build has been completed: -
If it's required to do the registration of the system at the very beginning of the system build and outside the
%poststep then, just before thebootloaderoption mentioned in the kickstart file, mention the following i.e.rhsm --organization=<name of the organization in satellite> --activation-key=<name of activation key> --server-hostname=<FQDN of Satellite\Capsule server> --connect-to-insightsNOTE: This rhsm method of pre-registration is only expected to work for RHEL 9.x and later versions.
-
RHEL Systems Registration Guide
-
This document is part of a collection covering RHEL System Registration.
-
If this is not the right solution for the registration needs or If the system needs to be registered with a different registration technology then please visit RHEL Systems Registration Guide.
Red Hat Labs Registration Assistant
- Red Hat Labs Registration Assistant is an online tool to assist with the most appropriate registration technology for the system. Please visit This content is not included.This content is not included.https://access.redhat.com/labs/registrationassistant/ to use the tool.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.