|
Aug 05
2009
|
Cloning SuSE Linux Enterprise Server - Online Registration ProblemsPosted by: Steve Stringer in Infrastructure on Aug 5, 2009 |
|
Whenever you clone an operating system you always end up with a few items that you didn't necessarily want. Things like persistent hardware address can be a pain and cloning encryption keys is never a good idea. When cloning SLES (SuSE Linux Enterprise Server) you may have issues when you come to register your systems online with Novell. The problem is all cloned systems have an identical Zenworks device ID, so only the first system works.
Follow these steps to create a new Zenworks device ID.
Shutdown ZMD
rczmd stop
Please note this does not always work, you may need to resort to
kill -s SIGTERM `pidof zmd`
If you still see zmd in the list of running process then you'll have to use the big kill.
kill -s SIGKILL `pidof zmd`
With ZMD shutdown you can now remove the necessary files.
rm /etc/zmd/deviceid
rm -r /var/cache/zmd
rm -f /var/lib/zmd/zmd.db
Restart ZMD
rczmd start
Restarting ZMD will generate new device ID file which will not be rejected when you try to register online.
To prevent the need to do the above steps on each cloned system you can simply complete these steps before you clone (except restarting ZMD). Then ZMD will generate a new device ID on the first boot of the cloned system.
Always remember to back up any system files before deleting or editing them :o)









