Instance is unresponsive after "cloning" it from the good working instance

0

I have the instance 'i-01' in us-west2. This is a Windows Server 2016 one. It works fine for years. I can access it via RDP, via Connect in AWS Console. It has SSM and Cloud Watch Agent services installed and running.

I created AMI ami-01 from it and launched a new instance i-02 in the same region from this ami-01. But:

  1. One of the 2 Status Checks is Instance reachability check failed
  2. I can't RDP to it
  3. I can't connect via Session Manager in AWS Console
  4. I can't connect via EC2 Serial Console. It gives me Still waiting for meta-data accessibility...

What I tried to do:

  1. Reboot i-02
  2. Reboot the initial i-01 to verify it will be accessible after rebooting. And it is.
  3. Remove i-02 and create a new instance from ami-01. The same result - inaccessible.
  4. Copy ami-01 to us-east1 region and create the instance there. The same result - inaccessible.
  5. Run CLI command aws describe-instances and compare JSONs for both i-01 and i-02. No significant changes other than IP addresses and IDs.

The question is: How can I understand what is going on inside this instance and why it's inaccessible?

Alex
질문됨 2년 전957회 조회
2개 답변
1
수락된 답변
profile pictureAWS
전문가
kentrad
답변함 2년 전
  • Accepted this answer. The reason was the static IP address on Network Interface. Configuring it to get IP address from DHCP fixed the issue.

0

Hello,

I'd like to suggest to first make sure you upgrade all AWS PV Drivers, ENA and/or NVMe and upgrade to Ec2Launch v2 (1), then perform sysprep (2) to create a new reusable AMI. Drivers would help so that the new Instance is compatible with any Instance type, while sysprep will remove unique identifiers so the AMI can be deployed anywhere.

Keep in mind that sysprep would disjoin the Instance if it is part of any domain, so you will be required to have local credentials to log back in and join it back to the Domain.

I hope this helps. Good luck!

References (1) Migrate to latest generation instance types - https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/migrating-latest-types.html (2) How can I use Sysprep to create and install custom reusable Windows AMIs in Amazon EC2? - https://aws.amazon.com/premiumsupport/knowledge-center/sysprep-create-install-ec2-windows-amis/

AWS
지원 엔지니어
답변함 2년 전

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

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

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

관련 콘텐츠