Closed digirave closed 7 months ago
If you're trying to migrate from RHEL to OL you should follow steps public available at https://linux.oracle.com/switch/ . Let us know if it works or not. Thanks
@scoter-oracle
If you're trying to migrate from RHEL to OL you should follow steps public available at https://linux.oracle.com/switch/ . Let us know if it works or not. Thanks
It does not, because it requires an UNL subscription and account. It seems even a paid Oracle Cloud account can't use that step and can't even create a new UNL account.
So, the solution proposed here is to migrate CentOS (7 or 8) to the correspondent Oracle Linux release. That said, there's the solution to switch from RHN to ULN. It seems that your use-case is not covered by those two options; what I can do is to just suggest those steps (to see if those work):
# dnf config-manager --disable
# wget https://yum.oracle.com/mirror/ol9/x86_64/oracle-linux-ol9-x86_64.repo -O /etc/yum.repos.d/oracle-linux-ol9-x86_64.repo
# wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol9 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle # gpg --quiet --keyid-format 0xlong --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
On (2) you usually need to enable repositories like "ol9_baseos_latest" and "ol9_appstream". Please note that this is not an official process but just a suggestion on how you could get your system leveraging OL updates from yum.oracle.com website.
@scoter-oracle Just to be clear, can you give guidance on what commands should be used for or whether it is on by default: you usually need to enable repositories like "ol9_baseos_latest" and "ol9_appstream".
Thank you.
You can edit the /etc/yum.repos.d/oracle-linux-ol9-x86_64.repo file and enable the channels you need/want for OL9.
@scoter-oracle Thank you. Of note, I asked because in https://yum.oracle.com/mirror/ol9/x86_64/oracle-linux-ol9-x86_64.repo "ol9_baseos_latest" and "ol9_appstream" are enabled by default.
I do hope that Oracle officially supports migration from RHEL to Oracle Linux without a ULN subscripton in the future, because basicially even testing migration will require buying Oracle Linux subscription at this time, which will definitely hinder people from even testing. I do think the above works somewhat, but is only a partial conversion. For example it doesn't remove the RHEL subscription checks that run each time dnf is run which seems very bad.
Just a note to anyone looking for information:
Thanks for your feedback @digirave
Error when trying to convert latest RHEL 9.3 updated server to Oracle Linux
Error: An error occurred while attempting to switch this system to Oracle Linux and it may be in an unstable/unbootable state. To avoid further issues, the script has terminated.
Standard run:
Debug output: