how to convert centos 8 to oracle linux 8 — oracle-tech

    Forum Stats

  • 3,708,780 Users
  • 2,241,126 Discussions
  • 7,840,613 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

how to convert centos 8 to oracle linux 8

any one can help

tks a lot

Answers

  • NikNik Posts: 2,700 Bronze Crown

    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

  • User_GCV2MUser_GCV2M Posts: 3 Newbie
    edited December 2020

    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?

  • NikNik Posts: 2,700 Bronze Crown

    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

  • Sergio-OracleSergio-Oracle Posts: 2,611 Employee
    edited December 2020

    See these instructions: https://github.com/oracle/centos2ol

    Nik
  • User_JTHDRUser_JTHDR Posts: 1 Newbie
    edited December 2020

    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.

  • Sergio-OracleSergio-Oracle Posts: 2,611 Employee

    Tim's blog post is great, as usual. His is a demonstration of the instructions we have on github: https://github.com/oracle/centos2ol

  • User_I6CNCUser_I6CNC Posts: 2 Green Ribbon
    edited December 2020

    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 !

  • andreas.dijkmanandreas.dijkman Posts: 40 Blue Ribbon

    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.

  • User_A04A7User_A04A7 Posts: 4 Newbie

    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

  • Avi Miller-OracleAvi Miller-Oracle Senior Manager, Oracle Linux and Virtualization Product Management Melbourne, AustraliaPosts: 4,656 Employee
    edited January 11

    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.

  • User_A04A7User_A04A7 Posts: 4 Newbie

    Can I try to migrate again, or do I have to wait for the new IPA release?

  • andreas.dijkmanandreas.dijkman Posts: 40 Blue Ribbon

    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.

  • Avi Miller-OracleAvi Miller-Oracle Senior Manager, Oracle Linux and Virtualization Product Management Melbourne, AustraliaPosts: 4,656 Employee

    The packages are in QA at the moment. I'm hoping it'll be publicly available in the next day or two.

  • maverickwsmaverickws Posts: 2 Green Ribbon

    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.

  • Avi Miller-OracleAvi Miller-Oracle Senior Manager, Oracle Linux and Virtualization Product Management Melbourne, AustraliaPosts: 4,656 Employee

    FYI, ipa-server-0:4.8.7-13.0.1 has been released to ol8_appstream.

  • User_A04A7User_A04A7 Posts: 4 Newbie
  • User_A04A7User_A04A7 Posts: 4 Newbie

    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

  • Avi Miller-OracleAvi Miller-Oracle Senior Manager, Oracle Linux and Virtualization Product Management Melbourne, AustraliaPosts: 4,656 Employee

    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.

  • Avi Miller-OracleAvi Miller-Oracle Senior Manager, Oracle Linux and Virtualization Product Management Melbourne, AustraliaPosts: 4,656 Employee

    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. :)

Sign In or Register to comment.