AW: [uyuni-users] VMware cloned VM's are treated as one system in Uyuni
Von: Tim Shaw [mailto:Tim.Shaw@medsci.ox.ac.uk]
I have a VMware CentOS7 VM which was cloned from another. When I import the first as a Salt client everything is fine. When I go to register the second, a new salt key is generated for the second hostname but when the key is accepted, some attributes of the original registered machine are replaced by the second. In other words, a second registered system is not created, the first system is converted into the identity of the second.
I had a similar replacement effect with cloned VMs. Somewhere I found an advise that worked fine: rm /etc/machine-id rm /var/lib/dbus/machine-id dbus-uuidgen --ensure systemd-machine-id-setup cat /etc/salt/minion_id ( vi /etc/salt/minion_id service salt-minion restart ) The last lines are optional for checking that the system is using its own minion_id. Hope it helps! Regards, Tobias.
Hi All, it's indeed in the doc: https://www.uyuni-project.org/uyuni-docs/uyuni/administration/tshoot-registe... It happened the same to me a while ago on KVM. Regards Nicola On 31/03/2020 12:21, Crefeld, Tobias LKV Bayern e.V. wrote:
Von: Tim Shaw [mailto:Tim.Shaw@medsci.ox.ac.uk]
I have a VMware CentOS7 VM which was cloned from another. When I import the first as a Salt client everything is fine. When I go to register the second, a new salt key is generated for the second hostname but when the key is accepted, some attributes of the original registered machine are replaced by the second. In other words, a second registered system is not created, the first system is converted into the identity of the second.
I had a similar replacement effect with cloned VMs. Somewhere I found an advise that worked fine:
rm /etc/machine-id rm /var/lib/dbus/machine-id dbus-uuidgen --ensure systemd-machine-id-setup
cat /etc/salt/minion_id ( vi /etc/salt/minion_id service salt-minion restart )
The last lines are optional for checking that the system is using its own minion_id.
Hope it helps!
Regards, Tobias.
Kind Regards, -- Nicola Di Marzo SUSE Premium Engineer nicola.dimarzo@suse.com +44 7973 975049 -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
participants (2)
-
Crefeld, Tobias LKV Bayern e.V.
-
Nicola Di Marzo