Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration instructions for TuxCare's CentOS ELS to AlmaLinux ESU #588

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ module.exports = {
children: [
'/elevate/ELevate-quickstart-guide',
'/elevate/ELevating-CentOS7-to-AlmaLinux-9',
'/elevate/Elevating-CentOS-ELS-to-AlmaLinux-ESU-by-TuxCare',
'/elevate/ELevating-CentOS6-to-CentOS7',
'/elevate/ELevate-offline-guide',
'/elevate/ELevate-testing-guide',
Expand Down
89 changes: 89 additions & 0 deletions docs/elevate/Elevating-CentOS-ELS-to-AlmaLinux-ESU-by-TuxCare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
title: "Elevating CentOS ELS to AlmaLinux ESU"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so stupid, but maybe this should be changed to ELevating for branding/marketing consistency?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, but it's not going to get merged anyway. :D

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

harsh! 😄

---

<!-- markdownlint-disable MD040 MD051 -->

###### last updated: 2025-02-26

This guide contains steps on how to migrate from TuxCare's CentOS 7 or Stream 8 [Endless Lifecycle Support](https://tuxcare.com/endless-lifecycle-support/centos-stream-8-eol-support/) products, to their AlmaLinux 9.2 [Extended Security Updates](https://tuxcare.com/fips-for-almalinux/) product.

You will require a license key from [https://tuxcare.com/buy/almalinux/](https://tuxcare.com/buy/almalinux/) or talk to your Account Manager about an ELS-to-ESU migration bundle offer.

::: danger
Ensure that you have a non-root user who can SSH and elevate privileges to root using su/sudo as this process will disable root SSH login. FIPS mode will also disable non-RSA SSH keys. Console access is recommended.
:::

Choose **one** of the migrations below based on your CentOS version. Once you have migrated to AlmaLinux 8, the instructions for getting to 9.2 and enabling ESU/FIPS are the same.

## Migrate CentOS 7.9 ELS to AlmaLinux 8.10

```
# update then disable els
yum -y update
dnf config-manager --set-disabled centos7*

# install elevate 7to8
yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el7.noarch.rpm
yum install -y leapp-upgrade leapp-data-almalinux
leapp preupgrade
leapp answer --section remove_pam_pkcs11_module_check.confirm=True
leapp upgrade
reboot
```

You will now be running AlmaLinux 8.10 and can proceed to [Upgrade AlmaLinux 8.10 to 9.2](#upgrade-almalinux-8-10-to-9-2)

## Migrate CentOS Stream 8 ELS to AlmaLinux 8.10

```
# update then disable els
dnf -y upgrade
dnf config-manager --set-disabled centos8stream-els

# install almalinux-deploy
curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
bash almalinux-deploy.sh -d
reboot
```

## Upgrade AlmaLinux 8.10 to 9.2

```
# clean up
sed -i '/^exclude=.*/d' /etc/yum.conf /etc/dnf/dnf.conf
dnf -y remove *leapp* elevate-release els-define
rm -rf /lib/modules/3.10*

# disable root ssh in a portable way
echo PermitRootLogin no | sudo tee -a /etc/ssh/sshd_config
sed -i 's/^PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config

# install elevate 8to9
dnf -y install https://repo.almalinux.org/elevate/elevate-release-latest-el8.noarch.rpm
dnf -y install leapp-upgrade leapp-data-almalinux

# upgrade specifically to 9.2
export LEAPP_DISABLE_NET_NAMING_SCHEMES=1
leapp preupgrade --target=9.2
leapp upgrade --target=9.2
reboot
```

## Enable AlmaLinux 9.2 ESU repositories and FIPS mode

```
# clean up
sed -i '/^exclude=.*/d' /etc/yum.conf /etc/dnf/dnf.conf
dnf -y remove *leapp* elevate-release kernel-*.el8*

# enable esu+fips
dnf -y install https://repo.tuxcare.com/tuxcare/tuxcare-release-latest-9.2.$(uname -i).rpm
tuxctl --fips --license-key ESU-xxxxxxxxxxxxxxx
dnf -y install kernel-5.14.0-284.11*
dnf -y upgrade
fips-mode-setup --enable
reboot
```

See also: [https://docs.tuxcare.com/enterprise-support-for-almalinux/#enabling-fips-140-3-mode](https://docs.tuxcare.com/enterprise-support-for-almalinux/#enabling-fips-140-3-mode)