Skip to content

Issue running Ubuntu 18 ARM AMI on first generation AWS Graviton instances

Francesco De Martino edited this page Dec 24, 2020 · 2 revisions

The issue

Starting from ParallelCluster 2.10.1, the official ParallelCluster Ubuntu 1804 ARM AMI is not compatible with first generation AWS Graviton instances, such as the ones belonging to the a1 family. The issue, introduced in a recent Ubuntu update, is due to the fact that during an AMI build, when building initramfs, only the libraries optimized for the specific running system are installed. This makes it so that the produced AMI, when built on a second generation ARM Graviton chip, is not compatible with the older generation of AWS Graviton Processors.

This limitation is already tracked in the Ubuntu ticketing system and was introduced when addressing a bug affecting m6g instances.

The workaround

In case you need to use old generation AWS Graviton instances you need to create a compatible custom AMI to use with ParallelCluster by following these steps:

  1. Follow the official documentation to modify an existing ParallelCluster AMI and launch a m6g instance running a ParallelCluster Ubuntu 18 ARM AMI.
  2. As part of the AMI customization step, connect to the instance and run the following commands:
sudo apt purge libc6-lse
sudo update-initramfs -k all -c -t
  1. Complete the steps to create a custom AMI
  2. Create a cluster using the generated AMI with the custom_ami parameter.
Clone this wiki locally