Score:0

Is kernel 5.10 available for downloading for old Amazon Linux?

cn flag

It appears i have an old Amazon Linux AMI, because i have Kernel 4.x version.

I need to upgrade the kernel, i have tried with the ELRepo, but i get stuck installing the repository (an issue with glibc version, it needs 2.28 and i have 2.26)

Is there's a way to update the kernel? or i will have to switch to the new AMI? Can the AMI version get updated without losing all the data (instance AMI data)?

Score:0
cn flag

This depends on whether you are using Amazon Linux 1 AMI or Amazon Linux 2. For example, one of the currently supported Amazon Linux 2 AMI (ami-0a3c14e1ddbe7f23c) as noted in the Launch Wizard - provides Linux kernel version 4.14 which is also used by the last release of Amazon Linux 1. This is also slated for deprecation per this article so I'm assuming this is what you're referring to. To confirm, you can check if you are running Amazon Linux 1 or 2 via the console or through the instance itself with something like:

$ cat /etc/os-release

In the case of upgrading Amazon Linux 1 to Amazon Linux 2: per AWS Documentation, there is no way to directly upgrade the kernel of an Amazon Linux AMI:

Q. Can I perform an in-place upgrade from an existing version of Amazon Linux AMI to Amazon Linux 2?

No, an in-place upgrade from the existing Amazon Linux image to Amazon Linux 2 is not supported. We recommend that you test your application on a fresh installation of Amazon Linux 2 first before migrating.

On the other hand if you are running Amazon Linux 2 with kernel 4.14, this should very much be possible by installing and enabling through amazon-linux-extras and running the update using something like the following:

$ sudo amazon-linux-extras install kernel-5.10

Pure speculation for this last part but I believe it is generally recommended to migrate your workload to the latest AMI if at all possible but this should be sufficient otherwise.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.