Why generate a unique RHEL dmi.system.uuid System ID?
This procedure is useful in scenarios when cloning virtual machines where duplicate UUIDs can cause issues with Red Hat software through SubscriptionManager.
Generate a new UUID.
- Create a new unique UUID
$>sudo uuidgen
This command will output a new UUID.
Example:
eae7fe44-8256-4072-813f-0e1d691f093c
- Create a custom fact file for RHEL subscription manager
Create a JSON file containing the new UUID and save it in the /etc/rhsm/facts/ directory.
This tells a subscription manager to report this custom UUID instead of the one detected from the DMI.
$>echo '{"dmi.system.uuid": < YOUR_NEW_UUID >}' > /etc/rhsm/facts/uuid_override.factsWhere < YOUR_NEW_UUID > is the UUID generated in the previous step.
Example:
echo '{"dmi.system.uuid": "eae7fe44-8256-4072-813f-0e1d691f093c"}' > /etc/rhsm/facts/uuid_override.factsVerify that Subscription Manager is now reporting < YOUR_NEW_UUID > .
subscription-manager facts | grep dmi.system.uuidThe output will show < YOUR_NEW_UUID > in the uuid_override.facts file.
- Re-register the client system :
If the system was previously registered with a duplicate UUID, it may be necessary to unregister and re-register it with Red Hat Subscription Manager or a Satellite server to ensure that the new UUID is properly reported.
$>sudo subscription-manager unregister --force
$>sudo subscription-manager register --auto-attachAdjust the registration command based on your environment ( e.g. , if using a Satellite server, use an activation key ) .
Related to
Comments
0 comments
Please sign in to leave a comment.