Skip to content

AWS MGN - The source server has successfully converted to a test instance, but the instance stops immediately after launch.

0

I migrated a server from VMware, and everything was successful until the “Ready for testing” step. After the test instance was created, it stopped immediately. I checked the logs and found nothing, so I ran the AWS CLI command and received the following error:

$ aws ec2 describe-instances --instance-ids *instance-id*
{
...
    "StateTransitionReason": "Server.InternalError",
...
    "StateReason": {
        "Code": "Client.InternalError",
        "Message": "Client.InternalError: Client error on launch"
     },
...
}

After googling this error, I found that it might be related to EBS disk encryption. However, when I checked the encryption key in AWS KMS, the AWS managed key seemed to resolve without any problem. So, I checked my EBS volume settings in the launch template, and it was set to Throughput Optimized HDD (st1) with default encryption. Both the replication server EBS volume and the test instance EBS volume point to the same AWS managed key, and I am using a user that is allowed in the key policy.

So, I tried changing the EBS volume type of the test instance to the faster General Purpose SSD (gp2), and it turns out that now the instance can launch successfully.

My question is, what was the reason the test instance couldn’t launch at first? And will it have any impact if I change back to Throughput Optimized HDD (st1)?

asked 2 years ago429 views

1 Answer
0

The issue you encountered with the test instance stopping immediately after launch was likely related to the EBS volume type rather than encryption.

Throughput Optimized HDD (st1) volumes are designed for frequently accessed, throughput-intensive workloads. They are not recommended as boot volumes due to their performance characteristics. This could explain why your instance was unable to start properly with the st1 volume type.

When you changed the volume type to General Purpose SSD (gp2), which is more suitable for boot volumes, the instance was able to launch successfully. This is because gp2 volumes provide a balance of price and performance, making them appropriate for a wide range of workloads, including operating system disks.

Regarding your question about changing back to st1: It's not recommended to use st1 as a boot volume. If you change back to st1 for the boot volume, you may encounter the same launch issues. For optimal performance and reliability, it's best to keep your boot volume as gp2 (or gp3, which is the newer generation of general-purpose SSD).

For any additional data volumes that require high throughput and are frequently accessed, you can consider using st1. However, for the boot volume, stick with gp2 or gp3 to ensure your instance can start and operate properly.

It's worth noting that AWS Application Migration Service (AWS MGN) does not support certain OS-based disk encryption features. While this wasn't the direct cause of your issue, it's important to be aware of this limitation when using AWS MGN for migrations.
Sources
Troubleshooting launch errors - Application Migration Service
Does AWS MGN work with...? - Application Migration Service

answered 2 years 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.