OSBN/Ubuntuusers Planet SUSE XING / LinkedIn

Short tip: Manage cloned systems with SUSE Manager

It is a common procedure to use templates (“golden images“) when deploying virtual machines. Recently I had an issue when deploying SLES machines – newly registered systems within SUSE Manager replaced older one. The management agent was installed within the template.

For classic systems (registered via RHNSD and OSAD) it is sufficient to remove the following files:

# rm /etc/sysconfig/rhn/{osad-auth.conf,systemid}

On Salt systems, the following file needs to be removed:

# rm /etc/salt/minion_id

In my case, this step was not sufficient as an unique installation number is generated during the installation. This number is used when the system is registered within SUSE Manage – so ensure to re-create this identifier:

# cat /etc/machine-id ; rm /etc/machine-id
# systemd-machine-id-setup
# cat /etc/machine-id

On SLES 11 systems, this file does not exist. Use the following two commands:

# rm /var/lib/dbus/machine-id
# dbus-uuidgen --ensure

Afterwards, registering new machines worked like a charm again.

Sharing is caring

Leave a Reply

Your email address will not be published.