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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南