September 23, 2021

Setting a CentOS Migration Strategy

Operating Systems
Open Source

With CentOS 8 end of life fast approaching, many organizations are considering their alternative support and/or CentOS migration options. The good news for those who are ready to migrate? There are a host of viable options available. Unfortunately, having so many choices can make choosing the right path difficult.

In this blog, we discuss CentOS 8 migration considerations, and dive in on the viable paths organizations can follow to migrate their CentOS 8 deployments.

Back to top

Are You Ready to Migrate From CentOS 8?

Migrating to a new operating system can be a challenge, and that challenge only compounds with the complexity of a given system. But even setting aside that complexity, organizations have plenty of factors to consider before making a migration.

Establishing Benefit - The first and most important part of setting a CentOS 8 migration strategy is determining the benefits of that migration. Will it save development time? Will it improve performance? Will it reduce security risk? Those benefits should be weighed against the expected expenditure for making that migration, and compared against the cost of using a third party for extended long term support in end of life.

Developer Time and Resources - Migrations take time. Depending on the complexity of the system, and the unforeseen obstacles experienced in the migration and accompanying integrations, the availability of requisite developer hours needed to migrate to a new OS can quickly become an impediment. Ensuring your development team has the bandwidth for a migration is key. It's also important to note that time spent on the migration is time not spent on developing new features, improving customer experience, or otherwise optimizing your systems. 

Internal Expertise - Establishing the developer time needed is important, but it's also important to keep in mind the expertise of the team performing that migration. Do they have the knowledge needed to solve problems as they arise? Or do you need a third party to help iron out the details?

Planning and Logistics - Another impact area for these migrations is in the planning and logistics. Even the act of planning a migration can take time and resources away from other focus areas. It's also important to consider the potential length of the migration. Will your migration occur before EOL? During EOL? If so, how will your team account for exposure to vulnerabilities while you're still on CentOS 8?

There are plenty of other considerations in planning a migration, but these high-level considerations are a good starting point for most organizations.

Not Ready to Migrate? Get Extended Support

For organizations that have recently migrated to CentOS 8, making another migration so soon may not be in the cards. For those teams, or for those who need more time to plan their migration, extended CentOS 8 support offers a way to keep secure and supported until they're able to migrate.

Schedule a Free Consultation

Back to top

Potential CentOS 8 Migration Paths

For those ready to migrate, there are plenty of viable migration paths. Each path carries its own benefits and unique challenges for migration. In the following sections, we highlight a few of those migration paths — including considerations for those migrations.

CentOS 8 to CentOS 7 Migration

While the idea of rolling back to CentOS 7 to enjoy the longer community support lifecycle is certainly tempting, it isn't really a valid option. There is no path to downgrade, so the next closest option would be to either rebuild the system, or build a new system and migrate data over. Additionally, you would first want to verify that a version of any third party applications existed for CentOS 7, or if they were only available for CentOS 8. If not, migrating data to a CentOS 7 system probably wouldn't be an option anyway.

CentOS 8 to CentOS Stream Migration

Migrating from CentOS 8 to CentOS Stream is a valid migration path if you still want the latest distribution of CentOS. This distribution is upstream of RHEL 8, but downstream of Fedora. The migration itself involves only a couple of commands, and then a distro sync to update the system. At this point you are now on CentOS Stream, and will get regular, rolling updates.

CentOS 8 to Rocky Linux Migration

The Rocky Linux path covers migration from several distributions, such as RHEL 8, Oracle Linux 8, AlmaLinux 8, and CentOS 8. The migration is quick and easy, consisting of a shell script to run. It swaps out a few rpms, changes repos, then upgrades packages to bring the system up to the latest version. After rebooting, choose the Rocky Linux kernel and you're now operating on a Rocky Linux 8 system.

These scripts will generally skip third party packages that aren't part of the original distribution, but if all packages were part of the original system, it should work flawlessly.

CentOS 8 to AlmaLinux Migration

The AlmaLinux migration is nearly identical to the process for converting to Rocky Linux. You download a script, run it, and it switches and updates packages on the system. After rebooting, you choose the AlmaLinux kernel (which should be the default), and you are running AlmaLinux 8.

CentOS 8 to RHEL Migration

CentOS 8 to RHEL 8 Migration is possible, but has more steps. This is because RHEL uses a subscription manager and SSL certs to verify entitlements, and is not strictly a Yum repo. This means you must have a valid entitlement. While there is a conversion script provided by RHEL that you can install, you must provide information to the script to verify and get access to RHEL repo (such as activation ID or username and password).

Other CentOS 8 Migration Paths

There is, of course, the possibility of migrating to other entirely different types of systems, such as SUSE, Ubuntu, or Fedora, but none of those are directly compatible and would require a total rebuild. There are a few other distributions that are more closely aligned with CentOS, like VzLinux, which is used as a hypervisor style system for OpenVZ, which is more similar to containers than virtual machines.

Back to top

Final Thoughts

Migrating from CentOS 8 can be a challenge for any organization. Luckily, there are plenty of viable migration paths available. Whether that's staying in the spirit of CentOS with Rocky Linux or AlmaLinux, moving to a rolling release distribution like CentOS Stream, or something a little different, companies will be able to find an option that matches their needs.

Get Migration Services and Extended LTS for CentOS 8

Ready to migrate? Need a little more time to get things sorted before you do? OpenLogic offers both expert migration services, and extended long term support for CentOS 8. Schedule a free consultation with our team to see how we can help support your (soon-to-be) EOL CentOS 8 deployments.

Schedule a Free Consultation

Additional Resources

Back to top