Linux – Disable Oracle Linux Network registration on a cloned virtual machine

linux

I have a virtual machine running Oracle Linux 6.5 that I have cloned from a production VM. The original machine was registered to the Oracle Linux Network, but I'd like the cloned VM to just pull packages from the public Oracle and EPEL repos. How can I disable the registration on the clone without unregistering from OLN, which would also ungregister the production machine?

Best Answer

I've not used 6.5 but I hope this will be valid for this version as well.

Each server is identified by its UUID. When you clone a system, you need to change its UUID in the config file for ULN.

Start by running uuidgen to get a new UUID:

# /usr/bin/uuidgen -r
1c460880-5a10-4d19-a115-5d5d409ace39

Then edit the file /etc/sysconfig/rhn/up2date-uuid and replace the rhnuuid value with the string you just created:

# vi /etc/sysconfig/rhn/up2date-uuid
uuid[comment]=Universally Unique ID for this server
#rhnuuid=91d0junk-1538-11db-8f59-123bdba2bb0f
rhnuuid=1c460880-5a10-4d19-a115-5d5d409ace39

Then re-run the up2date utility