-
Notifications
You must be signed in to change notification settings - Fork 81
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
sej7278
wants to merge
1
commit into
AlmaLinux:master
Choose a base branch
from
sej7278:tuxcare-elevate
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
docs/elevate/Elevating-CentOS-ELS-to-AlmaLinux-ESU-by-TuxCare.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
title: "Elevating CentOS ELS to AlmaLinux ESU" | ||
--- | ||
|
||
<!-- 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) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
harsh! 😄