Ubuntu Server 22.04 to 24.04 upgrade guide

2cope

This article applies to any platform running the Ubuntu Server 22.04 LTS operating system.

Description

This article demonstrates the upgrade process for anyone who is using a Telos supplied server (eg: a Telos Infinity VIP Server or a Telos Alliance AP-3000) or is using a COTS server imaged with Ubuntu Server 22.04 LTS and is not familiar with the Ubuntu Server upgrade procedure, but has familiarity with a CLI (command line interface).

Prerequisites

  • A platform running Ubuntu Server 20.04 LTS

  • Internet access to AWS S3 and Canonical repositories

  • [Optional] Physical access to the platform

IMPORTANT NOTES

PLEASE READ BEFORE PROCEEDING WITH THIS UPDATE!

During this update, services running on the platform will be offline for several minutes. Be sure to have a backup plan ready, or perform the update at a time when the services can be off air.

Procedure

  1. Run the command below to update the configuration of the /etc/default/grub file, to update it to our latest best practices:

    curl -sSf https://telos-public.s3.amazonaws.com/devops/low-latency-kernel/install-low-latency-kernel.sh | bash

  2. Run the command below to verify that the /etc/default/grub file has been updated correctly:

    cat /etc/default/grub | grep "GRUB_DEFAULT"

    step2

  3. Run the command below to upgrade all packages to the latest version:

    sudo apt update && sudo apt -y upgrade

  4. Run the command below to start the 24.04 LTS upgrade process. It is NOT recommended to do it via SSH, therefore if you have access to the machine via other means (physical, IPMI), we recommend proceeding that way.

    During the upgrade process you will be prompted multiple times, please refer to steps 5-11.

    Prompts that are not listed here pertain to modifications not done by Telos Alliance tools or existing doc, therefore refer to your IT department or to the official Canonical documentation.

    sudo do-release-upgrade

  5. You will be prompted to proceed with the upgrade process, enter y.

    step5(1)

  6. If you are connected via SSH, you will be prompted to open a temporary ssh server and add the relevant iptables rule. Consult with your IT department if it is safe to do so in your environment. At the end of the upgrade process, the temporary ssh server and the iptables rule will be automatically removed.

    step6(1)

  7. You will be presented with the list of package changes. Enter d for more details, or enter y to proceed with the upgrade.

    step7(1)

  8. You will be prompted to keep or update the /etc/sysctl.conf file. Choose N.

    step8

  9. You will be prompted to keep or update the /etc/default/grub file. Choose the default option Keep the local version currently installed:

    step9

  10. You will be prompted to remove packages that are now unused. The number of packages may vary. Choose y.

    step10(1)

  11. Once the upgrade is complete, you will be prompted to reboot. Choose y.

    step11(1)

  12. Once the system comes back online, run the command below to verify you are running 24.04. At the time of writing, the latest version is 24.04.1, but newer versions are to be expected in the future.

    lsb_release -d

    step12(1)

  13. Once the system returns online, run the command below to verify you are running the correct kernel. At the time of writing, the latest version is 6.8.0-47, but newer versions are to be expected in the future.

    uname -r

    step13(1)

  14. Run the command below  to verify no more updates are available:

    sudo apt update && sudo apt -y upgrade

    step14(1)

  15. If unused packages or kernels are still present, run the command below to remove them:

    sudo apt autoremove

Let us know how we can help

If you encountered issue, have further questions on this topic or have ideas about improving this document, please contact us at support@telosalliance.com