Migrating an EC2 Amazon Machine Image (AMI) from Amazon Linux 2 to the latest Amazon Linux version 2023

0

Hello everyone

I have issues with an existing Amazon Linux 2 AMI, cannot install node version 18 or above. I get the following error.

node: /lib64/libm.so.6: version GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version GLIBC_2.28' not found (required by node)

What are the recommended steps for migrating an EC2 Amazon Machine Image (AMI) from Amazon Linux 2 to the latest Amazon Linux version 2023 (as of 2023)? Additionally, how can I successfully transition from init.d to systemd during this migration process?

Thanks in advance.

nmos
已提问 4 个月前1083 查看次数
1 回答
0

Hello.

It is not possible to directly upgrade from Amazon Linux 2 to Amazon Linux 2023, so basically you need to migrate by building Amazon Linux 2023 from scratch.
For example, it is necessary to identify the middleware that is currently installed on Amazon Linux 2 and evaluate whether it can be used on Amazon Linux 2023.
https://docs.aws.amazon.com/linux/al2023/ug/compare-with-al2.html

Amazon Linux2 should also basically be using Systemd, but is there anything that uses init.d?
It might be a good idea to migrate from init.d files to Systemd files one by one.

profile picture
专家
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则