You can switch from using CentOS 8 to AlmaLinux 8:
- on the server with VMmanager;
- on the VMmanager cluster node.
Migration is performed using the almalinux-deploy script. We recommend that before you migrate:
- a server with VMmanager, you create a platform backup;
- a cluster node, you create a backup of the virtual machines (VMs) of that node.
Note
The migration process will require you to stop the platform.
To migrate:
- Connect to the server via SSH.
-
Check the OS version:
cat /etc/redhat-release
-
If the OS version is lower than 8.5, change the paths to the repositories:
sed -i -r 's|^(mirrorlist.+)$|#\1|g; s|^#baseurl=http://mirror.centos.org/\$contentdir/\$releasever/|baseurl=https://vault.centos.org/8.5.2111/|g' /etc/yum.repos.d/CentOS-*.repo
-
Install the latest software updates:
sudo yum update -y
-
Download the migration script:
curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
-
Stop the platform:
vm stop
-
Run the script:
sudo bash almalinux-deploy.sh
Message on successful script executionMigration to AlmaLinux is completed
-
If the script run fails with an error like
Example of errorVerify almalinux-release-latest.rpm package ERROR /root/.alma.X46iDx/almalinux-release-latest.rpm: digests SIGNATURES NOT OK
import the GPG key of the AlmaLinux repository manually and restart the script:
sudo rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && sudo bash almalinux-deploy.sh
-
Check that AlmaLinux has been installed:
cat /etc/redhat-release
Example of replyAlmaLinux release 8.5 (Arctic Sphynx)
-
Check that the AlmaLinux kernel is loaded by default:
sudo grubby --info DEFAULT | grep AlmaLinux
Example of replytitle="AlmaLinux (4.18.0-348.el8.x86_64) 8.5 (Arctic Sphynx)"
-
Start the platform:
vm start
Note
We recommend rebooting the cluster node after migration.