Skip to content

Lightsail Windows Server unreachable after disabling network adapter inside VM

0

I disabled the network adapter in my Lightsail Windows Server 2022 instance while connected via Remote Desktop client, which dropped the session. Now the instance is running but unreachable (RDP error 0x204, ping times out). Firewall has RDP 3389 open to any IPv4. Multiple reboots/stop-start/snapshots/new instances from snapshot all have the same issue. Instance region: us-east-a2 How can I re-enable the adapter without exporting to EC2? Or is export the only way? Free tier account. Additionally, I am new to AWS as a whole and this is my first time using Lightsail so I am not familiar with all of the technicalities.

asked 10 months ago177 views

1 Answer
1

Since you've disabled the network adapter inside your Windows Server 2022 instance, you'll need to use a recovery method to regain access. Here's how you can fix this issue:

  1. Stop your unreachable Lightsail Windows instance.

  2. Detach the root volume from your unreachable instance and attach it to another reachable Windows instance in the same Availability Zone as a secondary storage volume. If you don't have another instance, you'll need to create one temporarily.

  3. On the working instance, open Disk Management by running diskmgmt.msc in a Command Prompt window.

  4. Right-click the newly attached volume from your unreachable instance and select "Online" to make it accessible.

  5. Open the Windows Registry Editor by running regedit in a Command Prompt window.

  6. In Registry Editor, select HKEY_LOCAL_MACHINE, then go to File > Load Hive.

  7. Navigate to the attached drive, go to \Windows\System32\config, select the SYSTEM file, and choose Open.

  8. Enter a unique name for the hive when prompted.

From here, you can navigate to the network adapter settings in the registry and re-enable it. After making the changes, unload the hive, detach the volume, and reattach it to your original instance.

If you're not comfortable with these steps as a new AWS user, exporting to EC2 might be an alternative, but the above approach should work within Lightsail without requiring an export.
Sources
Troubleshoot issues connecting to your Amazon EC2 Windows instance - Amazon Elastic Compute Cloud

answered 10 months ago

AWS
EXPERT

reviewed 9 months ago

  • I am currently working under a free tier/trial at the moment. I have 2 instances: the original instance and one I created from a snapshot from the first. I am unable to create a new instance due to having "reached the maximum number of virtual CPUs (vCPUs) that can be created".

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.