VMmanager: Administrator guide
en En
es Es

Migrating from AlmaLinux 9 to AlmaLinux 10

This article contains instructions for updating the operating system (OS) on the platform server and cluster nodes from AlmaLinux 9 to AlmaLinux 10.

If you need to change the OS from AlmaLinux 8 to AlmaLinux 10, update the OS to AlmaLinux 9 according to the article Migrating from AlmaLinux 8 to AlmaLinux 9, then follow the instructions from this article.

Update procedure

Platform server

To update the OS:

  1. Check the compatibility of the hardware with new AlmaLinux version. To do this, boot the AlmaLinux OS in Live Media mode.
  2. Create a backup of the platform on external storage. For more information, see Creating platform backups.
  3. Follow the instructions in the OS Update section. 
    The platform will be unavailable during the OS change process. 

Cluster node

There are two options for updating the OS:

  • with virtual machines (VMs) migrated to another node — the recommended method;
  • without transferring VMs — successful update is not guaranteed, use this method at your own risk.

To update the OS with VMs migration:

  1. Migrate VMs to another node. For more information, see Migration of virtual machines.
  2. Delete the cluster node.
  3. Erase server disks and install new AlmaLinux version on it.
  4. Connect the node to the cluster.
  5. MIgrate VMs back to the node.

To update the OS without VMs migration:

  1. Check the compatibility of the hardware with new AlmaLinux version. To do this, boot the AlmaLinux OS in Live Media mode.
  2. Follow the instructions in the OS Update section. 
    VMs on the cluster node will be unavailable during the OS change process. 

OS update

  1. Connect to the server via SSH. For more information about connecting via SSH, see Workstation setup.
  2. Update the software:
    yum update
  3. Reboot the server: 
    reboot
  4. Connect to the server via SSH again.
  5. Install the ELevate software: 
    yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
  6. Instal the Leapp framework: 
    yum install -y leapp-upgrade leapp-data-almalinux
  7. Remove the kernel module for iSCSI adapters:  
    rmmod qla4xxx
  8. Change the format of the network connection configuration to a format supported by Network Manager: 
    nmcli con migrate
  9. Delete the Ceph repository configuration file: 
    rm /etc/yum.repos.d/ceph.repo
  10. Check if the system is ready for the OS change: 

    leapp preupgrade

    Examine the output of the command and the report file /var/log/leapp/leapp-report.txt. They contain information about possible problems when changing OS.

  11. Start the OS change: 

    leapp upgrade
  12. Reboot the server: 

    reboot
    • The server may reboot longer than usual due to the OS change.
    • Ensure that the AlmaLinux 10 kernel is selected in the boot loader menu.
  13. Connect to the server via SSH again.
  14. Check the OS version:

    cat /etc/os-release
  15. Remove the AlmaLinux 9 packages: 
    1. Get the package list:
      rpm -qa | grep el9
    2. Remove each package from the list with the command: 
      dnf remove <имя_пакета>

If the frr service was used on the cluster node

  1. Connect to the cluster node via SSH. For more information about connecting via SSH, see Workstation setup.
  2. In the file /etc/yum.repos.d/frr-stable.repo, replace links of the form 
    https://rpm.frrouting.org/repo/el9
    to   
    https://rpm.frrouting.org/repo/el10
  3. Update the software: 
    dnf update


If you did not migrate VMs before migration

  1. Connect to the cluster node via SSH. For more information about connecting via SSH, see Workstation setup.
  2. Change the XML configurations for all VMs:
    for vm in $(virsh list --all | awk 'NR>2 {print $2}') 
    do 
       EDITOR="sed -i -e s/pc-i440fx-rhel7.6.0/pc-i440fx-rhel10.0.0/ -e s/cirrus/virtio/" virsh edit $vm
    done
  3. Start the VMs: 
    for vm in $(virsh list --all --autostart | awk 'NR>2{print $2}'); do virsh start $vm; done