- 3,708,780 Users
- 2,241,126 Discussions
- 7,840,613 Comments
Forum Stats
Discussions
Categories
- 22 Industry Applications
- 3.2K Intelligent Advisor
- 4 Insurance
- 746 On-Premises Infrastructure
- 251 Analytics Software
- 21 Application Development Software
- 1.7K Cloud Platform
- 700.4K Database Software
- 17.4K Enterprise Manager
- 4 Hardware
- 107 Infrastructure Software
- 70 Integration
- 45 Security Software
how to convert centos 8 to oracle linux 8

in Oracle Linux
any one can help
tks a lot
0
Answers
Hi.
You should reinstall it.
Both of these OSes are very similar, but they remain different OSes.
They use different kernels, different repository etc.
You can edit and change files /etc/release for masquerade real os name, but it is not change OS.
Regards,
Nik
If you google "Oracle Linux: How to Switch Centos 8 to Oracle Linux 8 (Doc ID 2698144.1)" there is a document on Oracle's website at https //linux.oracle.com/switch/centos/ but until I buy a subscription contract I can't see it. It might help with migration decisions if Oracle could make that document public.
For 6 & 7, there was a public page on the OL website at https //linux.oracle.com/switch/centos/ offering a script that changed the /etc/yum.repos.d entries and installed OL's kernel. That script does not support CentOS8 to OL8 migration (but you could manually do something similar). I did wonder how safe it was for a production server, because after a few "yum update" and "yum install" operations, you'd then have a mixture of CentOS8 and OL8 modules on the box. They are supposedly binary compatible but is it safe to rely on that?
Hi.
You are right, it's surprise for me that Oracle support this switching.
Oracle not allow make public docs from support portal....
You can see migration procedure from RHEL 8. https://linux.oracle.com/switch.html . Switching procedure from CentOS should be same.
But it's not clear what win from migration from CentOS to OL without support.
I would not be happy to maintain such a system after migration. This procedure can work fine on a new system, but may have hidden problems due to additional software installed.
Regards,
Nik
See these instructions: https://github.com/oracle/centos2ol
As I am new, I cannot post the link directly. You may search "Linux Trick Tips Migrating/Upgrading CentOS 8 to Oracle Linux 8" on Youtube.com It's mime.
For English spoken, you may just follow the screen at middle of the clip. I managed to convert it on the cloud.
How about: https://oracle-base.com/blog/2020/12/17/switching-from-centos-8-to-oracle-linux-8-ol8/
Tim's blog post is great, as usual. His is a demonstration of the instructions we have on github: https://github.com/oracle/centos2ol
Okay I am in the process of deciding which way to go - oracle linux or pay for rhel.
The blog post https://blogs.oracle.com/scoter/switch-from-centos-to-oracle-linux-example does state you don't need to re install and still get support !
as i have over 150 vm's i would like to migrate over that would be good.
I was planning on doing the repo switch, do a yum upgrade and then over time I re install / re apply all the packages.
right now a reinstall the who os means it would be cheaper to go rhel in time and effort
EDIT
have to admin i am trying it on a rasberry pi. seems like the script needs some tweeking as there is no
[ol8_UEKR6]
name=Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux $releasever ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/UEKR6/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
for aarch64 yet !
On aarch64, you don't need a separate repository, as the kernel-uek-package is already in the BaseOS-repository. So it is a redundant step as the package is already available by default.
I am Running IPA Server on Centos 8.3 and the convert script fails, because the Oracle Linux uses 4.8.7-12 and CentOS 4.8.7-13.
When can we expect the new version of IPA in Oracle?
Thanks
Sören
Thanks for letting us know! We are in the process of releasing the 4.8.7-13 version now and have fixed the automation so that we don't miss any ipa related errata in future too.
Can I try to migrate again, or do I have to wait for the new IPA release?
Not yet. You can check http://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/index.html and search for ipa-server and see if it's available. 4.8.7-12.0.1 is the latest available.
The packages are in QA at the moment. I'm hoping it'll be publicly available in the next day or two.
hi all, there's this script https://github.com/oracle/centos2ol that converts your CentOS Linux to Oracle Linux. I've tested this script on one of our test db servers with MariaDB, used the -r option to make it reinstall all packages, it took maybe 5 minutes to run.
It claims compatibility with CentOS 6/7/8 the test server was 8 base.
FYI, ipa-server-0:4.8.7-13.0.1 has been released to ol8_appstream.
Great, I will check if the migration from CentOS works now.
Now it still fails:
Upgrading IPA services
Upgrading the configuration of the IPA services
Disabled p11-kit-proxy
[Verifying that root certificate is published]
[Migrate CRL publish directory]
CRL tree already moved
failed to discover tomcat version, default to pre-9.0.31.0, error: CalledProcessError(Command ['/usr/sbin/tomcat', 'version'] returned non-zero exit status 1: '/usr/sbin/tomcat: JAVA_HOME is not set and default java installation was not found. JAVA_HOME for system applications can be set in java.conf in /etc/java\n')
IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually.
Unexpected error - see /var/log/ipaupgrade.log for details:
CalledProcessError: CalledProcessError(Command ['/bin/systemctl', 'start', '[email protected]'] returned non-zero exit status 1: 'Job for [email protected] failed because the control process exited with error code.\nSee "systemctl status [email protected]" and "journalctl -xe" for details.\n')
The ipa-server-upgrade command failed. See /var/log/ipaupgrade.log for more information
Any chance you can fling me that ipaupgrade.log file? My email is avi dot miller at oracle dot com. If you're comfortable with providing the output of "rpm -qa" on that box (to get a list of installed packages), that would also be useful.
Aside: I'm not that surprised that IPA has issues being migrated and upgraded. It uses a lot of crypto and there are likely to be different salt values from CentOS' build to ours, etc. It may require backup/removal/switch/restore, though I'd do a backup and test restore first. :)