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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ