Instance reachability check failed on EC2 Window Server 2012

0

Dear All,

One of our team member accidentally reboot the instance on safe mode without networking.

And therefore, it was rebooted, we could not connect to the instance anymore. We tried to read up and try the various ways such as; view log file and troubleshooting of the instance and it still does not work.

We came across an article whereby they had done the same of rebooting without network but when we click onto it, it gave us a page that says "You have been redirected here because the page you are trying to access has been archived."

We are at a loss now...

Please help.

Edwin
asked 8 months ago181 views
1 Answer
1

Here are a few things you can try to regain connectivity to your EC2 Windows instance that was rebooted into safe mode without networking:

  • Stop the instance, detach the root volume, attach it to another working instance as a data volume, modify the safeboot option in the registry to disable safe mode, detach volume, reattach to original instance, start instance.
  • Attach the root volume to another working instance as above, mount it, modify the c:\Windows\System32\drivers\etc\hosts file to add a fake entry mapping the instance's private IP to "localhost". This will allow RDP login while in safe mode.
  • If you have Powershell remoting enabled, you may be able to connect via Powershell to the private IP even in safe mode. Try Enter-PSSession -ComputerName <private_ip>.
  • Connect the instance's ENI to a new temporary instance. Login via RDP, browse to the original instance's root volume, make registry or hosts file changes to disable safe mode. Detach ENI afterwards.
  • Launch a new instance in the same subnet, enable RDP access. UsePsExec from the working instance to execute commands on the original instance and disable safe mode.

The key is mapping the private IP to localhost or attaching the root volume to another instance to modify the safeboot registry key or hosts file. Let me know if any of these options are able to regain connectivity!

profile pictureAWS
answered 8 months ago
profile pictureAWS
EXPERT
kentrad
reviewed 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions