Environment
- Red Hat Enterprise Linux v 6.3
- RHN Classsic (Red Hat Network Classic)
- Certificate Based Registration (Red Hat Subscription Management)
Issue
- How to re-register cloned System on Red Hat Network Portal?
Resolution
If cloned system is registered using RHN classic, then following steps should apply:
- Remove existing systemid file by running following command:
# rm -fr /etc/sysconfig/rhn/systemid
- Register system by running following command:
# rhn_register
or
# rhnreg_ks --username=<RHN username> --password=<RHN password>
If Cloned system registered using Subscription Management method, then following steps should apply:
- Change hostname and other network information on cloned VM.
- Run following commands in order to remove all of the subscription and identity data from the local system:
# subscription-manager clean
- Register system by running following command:
# subscription-manager register --username=<RHN username> --password=<RHN password> --autosubscribe
Root Cause
- Cloned system contains old registration information due to cloning and causing issues with updates.