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
gefragt vor 2 Jahren957 Aufrufe
2 Antworten
1
Akzeptierte Antwort
profile pictureAWS
EXPERTE
kentrad
beantwortet vor 2 Jahren
  • 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
SUPPORT-TECHNIKER
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen