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달 전1079회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠