Migrating from CentOS to Ubuntu: a guide for system administrators and DevOps | Ubuntu (2024)

CentOS 7 is on track to reach its end-of-life (EoL) on June 30, 2024. Post this date, the CentOS Project will cease to provide updates or support, including vital security patches. Moving away from the RHEL-based ecosystem might appear daunting, but if you’re considering Ubuntu the switch can be both straightforward and economically viable.

Pentera, a frontrunner in automated security validation, provides a compelling case study to the ease of this transition. They detail how their container-based setup was migrated to Ubuntu with minimal adjustments, leading to enhanced security measures. The move was also positively received by their clients, who appreciated Ubuntu’s reliable history of issuing Long Term Support releases every two years for the past two decades, complemented by extensive community support.

Nitzan Dana, the DevOps Lead at Pentera, noted: “In spite of Ubuntu and CentOS being based on different distribution families, vast sections of our deployment scripts ran smoothly on Ubuntu without requiring any modifications”.

For a deeper dive into Pentera’s migration journey and insights on planning your own switch to Ubuntu, you can explore the full case study or read on for further migration considerations.

Delivering certainty in a shifting ecosystem

The shift of CentOS from a free rebuild closely aligned with Red Hat Enterprise Linux (RHEL) to an upstream project previewing future RHEL updates led to the emergence of competitors such as Rocky Linux and AlmaLinux. These distributions aimed to fill the gap left by CentOS 7, positioning themselves as its natural successors.

However, Red Hat’s decision to make CentOS Stream the exclusive public repository for RHEL-related source code and limiting direct source code access to its customers has complicated the ability of these new distributions to maintain exact compatibility with RHEL.

Canonical, as the publisher of Ubuntu, offers the same version of the operating system to both home and commercial users without distinction between paid or free versions. As an open source project, Ubuntu’s source code is readily accessible for anyone to view at any time for any purpose.

Ubuntu has adhered to its stable release cycle model for two decades, introducing interim updates every six months as a lead-up to the next Long Term Support (LTS) version, which is released every two years in April. Ubuntu 24.04 LTS marks the tenth in this series.

Each LTS release of Ubuntu is supported with five years of maintenance and security updates at no cost to all users. For those seeking expanded coverage, Ubuntu Pro offers a subscription service that includes additional security updates for the broader Ubuntu Universe repository, encompassing various tools, applications, and libraries. This coverage can be extended to 12 years.

Of course, every environment is different so careful consideration is key when deciding to migrate.

Engineering considerations

When moving between a RHEL-based distribution and Ubuntu, it’s essential to consider the release cadence and licensing model, package management, service configuration, security postures and other system-level differences. Public clouds add another layer of complexity, with integrations, tooling, and cloud-specific features playing a critical role in the migration process.

A full exploration of the technical nuances between the two distributions can be found in our recent strategy guide for administrators.

For most organisations, the migration follows a structured approach encompassing several key stages:

  1. Inventory and assessment: Documenting existing services, applications, and packages, along with their dependencies and configurations, to understand the scope of the migration.
  2. Selection of Ubuntu version: Deciding on the appropriate Ubuntu version, often balancing the need for up-to-date packages with the stability and extended support offered by LTS releases.
  3. Backup and data migration: Ensuring all critical data and configurations are backed up and ready for migration, minimising the risk of data loss.
  4. Software availability: Conducting an audit of software availability to find Ubuntu equivalents for existing RHEL packages, and identifying alternatives or solutions for software not directly available.
  5. Configuration file transition: Adapting system and service configuration files to Ubuntu’s structure and conventions, which may involve changes to file paths and syntax.
  6. Integration with cloud services: Confirming that all cloud-related integrations, agents, and SDKs are compatible with Ubuntu, leveraging optimised cloud images where available.
  7. Testing: Rigorously testing the new environment to ensure all applications and services function correctly, ideally in a staging environment that mirrors production.
  8. Documentation and training: Updating internal documentation and providing training to ensure that operational teams are prepared for the new environment.
  9. Monitoring and optimisation: Continuously monitoring the new setup to identify and implement further optimizations and adjustments as needed.

Each of these steps is designed to mitigate risks and ensure a smooth transition to Ubuntu, leveraging its robust community support and comprehensive documentation to address challenges as they arise.

Support considerations

In addition to the wealth of community resources available when it comes to administering an Ubuntu estate, you can also rely on Canonical’s support teams as part of an Ubuntu Pro subscription.

Ubuntu Pro is designed to extend the standard security and maintenance updates provided with Ubuntu’s Long Term Support (LTS) releases, covering not just the main repository but also the universe repository, which includes thousands of additional open-source tools and applications. This extended coverage is crucial for enterprises that rely on a wide range of open source software for their operations.

Ubuntu Pro also includes features designed to ensure security and compliance throughout your estate with minimal downtime. This includes live kernel patching, which allows for critical kernel updates to be applied without rebooting the system, as well as fleet-wide administration with Landscape. CIS and FIPS 140-2 certified components are also available for organisations that need to meet strict regulatory requirements and security standards.

Ubuntu Pro uses a simple, per-node pricing model with the option for additional weekday or 24/7 phone and ticket support. This transparency translates to cost savings for organisations – one life insurance company was able to realise a cost benefit of over 60% as a result of their migration.

All the resources you need to make the switch

If you’re planning on making the move to Ubuntu, whether migrating existing workloads on a public or private cloud, or if you plan to leverage it as the foundational OS for your next company initiative, get in touch.

Don’t forget to check out our full migration guide for a deeper dive into the technical differences between Ubuntu and RHEL-based distributions.

See what our users and customers are saying in the latest case studies from Pentera, Tech Mahindra and New Mexico State University.

Migrating from CentOS to Ubuntu: a guide for system administrators and DevOps | Ubuntu (2024)

FAQs

How to migrate from CentOS to Ubuntu? ›

How to Migrate CentOS to Ubuntu
  1. Step 1: Backup Data. Since the installation is not on the same machine, creating a backup is optional. ...
  2. Step 2: Download, Configure, and Install Ubuntu. ...
  3. Step 3: Compare and Install Packages. ...
  4. Step 4: Transfer Configuration Files and Data. ...
  5. Step 5: Test, Verify and Clean Up.
Mar 5, 2024

Which is better, CentOS or Ubuntu? ›

Ubuntu is known for its user-friendliness and is often recommended for beginners. CentOS had a longer release cycle, providing a more stable platform. It was ideal for servers. Ubuntu has a faster release cycle, providing newer software and features.

How to upgrade CentOS to CentOS Stream? ›

How to Migrate CentOS to CentOS Stream
  1. Step 1: Prepare for Migration.
  2. Step 2: Update System.
  3. Step 3: Install CentOS Stream Package and Swap Repositories.
  4. Step 4: Sync Distributions.
  5. Step 5: Reboot into CentOS Stream.
Feb 8, 2024

What is server migration in Linux? ›

Migrating your data from one Linux server to another is simple only if you've been running a simple server. If you have many interdependent services or a highly customized setup, then re-creating the environment from scratch is an involved process.

How do I completely switch to Ubuntu? ›

How to Switch to Ubuntu
  1. Make sure your software will work with Ubuntu.
  2. Back-up your data.
  3. Download Ubuntu.
  4. Boot your PC from the Ubuntu CD.
  5. Run the installation.
  6. Bring over some of your data from your Windows partition.
  7. Confirm your installer's settings and choose "Install."

How to migrate from CentOS 7 to 8? ›

Step-by-Step Upgrade Process
  1. Creating a Full Backup. Use tools like rsync or tar to create a full backup of your system, including all files and configurations.
  2. Installing the CentOS 8 Installer. ...
  3. Booting from CentOS 8 Installer. ...
  4. Performing a Fresh Installation. ...
  5. Post-Installation Setup.
Dec 22, 2023

Is CentOS 8 end of life? ›

The end of support (EOS) dates for CentOS 7 and 8 are as follows: CentOS 8 - December 31, 2021. CentOS 7 - June 30, 2024.

Is CentOS Stream replacing CentOS? ›

CentOS Stream isn't a replacement for CentOS Linux. CentOS Stream is the platform to collaborate and contribute to future versions of Red Hat Enterprise Linux.

How to upgrade CentOS 7 to 9? ›

The sections below outline the details.
  1. Step 1: Install Migration Packages. Install the Leapp and ELevate migration packages for migrating to Rocky Linux 9: ...
  2. Step 2: Run Pre-Upgrade Checks. Run the pre-upgrade check before upgrading the OS. ...
  3. Step 3: Run Upgrade. ...
  4. Step 4: Post-Upgrade Steps.
Dec 20, 2023

How to file server migration step by step? ›

Here is a step-by-step guide on how to use the Storage Migration Service to migrate a file server:
  1. Step 1: Prepare the source server and target server. ...
  2. Step 2: Install the Storage Migration Service. ...
  3. Step 3: Set up the Storage Migration Service. ...
  4. Step 4: Create a migration project. ...
  5. Step 5: Start the migration job.
Mar 25, 2024

What is the process of server migration? ›

What is Server Migration? Server migration is the technique of transferring data from one server to another. Server migrations can occur for a variety of reasons including security concerns, equipment failures, outdated servers, and other factors.

What are the steps to migrate to Linux? ›

An ideal IT migration plan for switching to Linux should include an assessment and planning phase, an infrastructure design phase, a distribution selection phase, an application migration phase, a data migration phase, a testing and validation phase, a deployment phase, and a training and support phase.

How to install Ubuntu on CentOS 7? ›

How to install Ubuntu on a computer that has Linux CentOS 7 - Quora. Make room for an extra partition by shrinking the CentOS partition - you can use GParted for this. You should probably aim for 30GB space for the new partition; that should be enough to install and run Ubuntu.

How do I switch to root in CentOS? ›

The recommended approach is to use the sudo command in order to execute commands with root privileges, but we can also log directly into the root user account, either with the sudo -i or su - commands, depending on how our system and user account has been configured.

How to change from root to Ubuntu? ›

Switching from the root user to a standard user in Ubuntu is a common practice to avoid the risks associated with operating as root. Open your terminal as root. Type su – [username], replacing [username] with the name of the user account you wish to switch to. For example, su – john.

How to install migrate in Ubuntu? ›

How to Install Golang Migrate on Ubuntu?
  1. Step 1: Open the terminal for executing the installation commands.
  2. Step 2: Let us setup the repository to install the migrate package.
  3. Step 3: Update the system by executing the following command.
  4. Step 4: Now, it's time to set up golang migrate.
Jun 10, 2022

Top Articles
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 6124

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.