t4g.nano cannot be initialized

1

Hello,

Is there a way to ask Amazon to optimize t4g.nano instances? The issue is that it's not possible to log in using an SSH key after instance initialization and the only solution is to reboot the instance and try again. Sometimes one reboot isn't enough.

I suppose this happens due to the lack of memory (512MB) for ARM64 architecture (as memory page size is bigger for aarch64) and the instance should be initialized with SWAP (256-512MB) by default.

  • Do you have the same problem when you use the Amazon Linux 2 AMI?

질문됨 2년 전402회 조회
4개 답변
1

Also, I'm thinking that the issue should be addressed to AMI developers. I'm using AMI with CentOS 8.4 for aarch64, so devs should preconfigure swap for such cases.

In addition: https://www.mail-archive.com/centos-virt@centos.org/msg05892.html

답변함 2년 전
0
수락된 답변

So, if use Amazon Linux 2 it works as expected. I had the issue with CentOS 8, but according to Minimum RAM requirements 768 MiB is a minimum value, so, it looks like expected. Meanwhile, I have no issues with CentOS 8 on t4g.nano in Hong Kong region, but it takes a bit of time.

답변함 2년 전
0

Have you considered starting a session via SSM instead. Requires the EC2 instance is running the SSM agent and relevant policy attached to the EC2 instance role. SSM essentially provides one-click access to ec2 instances without the need to open inbound ports or manage SSH keys.

Refer to

RoB
답변함 2년 전
  • SSM is great but it's just a workaround because base functionality doesn't work.

0

To add to RoB's answer, you can also use Use EC2Rescue for Linux. refer to link {1}

With the help of SSM, The AWSSupport-TroubleshootSSH runbook installs EC2Rescue for Linux and then uses the tool to check or attempt to fix common issues that prevent a remote connection to a Linux machine via SSH. For more information, refer to link {2}

Please refer to the below link to know more:

{1} https://aws.amazon.com/blogs/mt/how-to-fix-ssh-issues-on-ec2-linux-instances-using-aws-systems-manager/?nc1=b_rp

{2} https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-awssupport-troubleshootssh.html

답변함 2년 전

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

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

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

관련 콘텐츠