Difference between revisions of "SUSE Manager/Register Clones"

From MicroFocusInternationalWiki
Jump to: navigation, search
(Steps for registering a cloned system to SUSE Manager)
(Steps for registering a cloned system to SUSE Manager)
Line 5: Line 5:
 
1) Clone your system (for instance using the cloning mechanism of your favorite Hypervisor)   
 
1) Clone your system (for instance using the cloning mechanism of your favorite Hypervisor)   
  
Note : Everything below is done on the cloned system, we do not manipulate the original system, and will still be registered to SUSE Manager.
+
**Note**: Everything below is done on the cloned system, we do not manipulate the original system, and will still be registered to SUSE Manager.
 +
**Note**: The cloned machine should get a different UUID from the original, otherwise SUSE Manager will overwrite the original system data with the new one.
 +
 
  
 
2) Change hostname and ip addresses, make sure /etc/hosts has the changes you made and the right host entries.
 
2) Change hostname and ip addresses, make sure /etc/hosts has the changes you made and the right host entries.

Revision as of 12:56, 29 September 2014

SUSE Manager Main Page

Steps for registering a cloned system to SUSE Manager

1) Clone your system (for instance using the cloning mechanism of your favorite Hypervisor)

    • Note**: Everything below is done on the cloned system, we do not manipulate the original system, and will still be registered to SUSE Manager.
    • Note**: The cloned machine should get a different UUID from the original, otherwise SUSE Manager will overwrite the original system data with the new one.


2) Change hostname and ip addresses, make sure /etc/hosts has the changes you made and the right host entries.

3) Stop rhnsd daemon with
# /etc/init.d/rhnsd stop 

or # rcrhnsd stop

4) Stop osad with
# /etc/init.d/osad stop

or # rcosad stop

The step 5) depends on the system OS type :

Next step for SLES 11 :

5)
rm /var/lib/zypp/*
6)
rm /etc/zypp/credentials.d/*
7)
rm -f /etc/sysconfig/rhn/{osad-auth.conf,systemid}

8) re-run the bootstrap script

9) you should now see the cloned system in SUSE Manager without overwriting the system it was cloned from.

Next step for SLES 10 :

5)
rm -rf /etc/{zmd,zypp}
6)
rm -rf /var/lib/zypp/ ¡¡¡¡¡ except /var/lib/zypp/db/products/ !!!!!
7)
rm -rf /var/lib/zmd/
8)
rm -f /etc/sysconfig/rhn/{osad-auth.conf,systemid}

9) re-run the bootstrap script

10) you should now see the cloned system in SUSE Manager without overwriting the system it was cloned from.

Next step for RHEL 5 & 6 :

5)
rm  -f /etc/NCCcredentials 
6)
rm -f /etc/sysconfig/rhn/{osad-auth.conf,systemid}

7) re-run the bootstrap script

8) you should now see the cloned system in SUSE Manager without overwriting the system it was cloned from.