A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
Hello nuage compte, thank you for providing the detailed troubleshooting steps you've taken. You've hit on a critical and often-overlooked detail of the Azure Site Recovery (ASR) process for AWS-to-Azure migrations. The reason you are consistently encountering the ASRMobilityServiceKernelNotSupportedV2 error, even after changing your kernel, is due to using the incorrect Mobility Service agent.
Root Cause: The Wrong Mobility Service Agent
There are two different versions of the ASR Mobility Service agent, each designed for a specific migration scenario:
- Generic Agent (for VMware/Physical Servers): This agent is for migrating on-premises physical servers, VMware VMs, or Hyper-V VMs. This agent has very strict kernel-level validations that are not designed for cloud-provider-specific environments like Amazon EC2.
- AWS-Compatible Agent (for EC2 VMs): This is a specialized agent that is configured to work correctly within the AWS environment. It is not designed to be installed manually.
When you manually ran the installer, you were using the generic agent. Because this agent is not compatible with the AWS EC2 environment, the installation fails and returns the misleading "kernel not supported" error, regardless of the kernel you are running.
Recommended Solution: Use the Azure Migrate Workflow
The correct and officially supported method for migrating EC2 instances to Azure is to let the Azure Migrate tool handle the agent installation automatically.
Next Steps:
- Stop Manual Installation: Do not attempt to manually install the Mobility Service on your EC2 instance.
- Use the Azure Migrate: Server Migration Tool:
- In the Azure Portal, navigate to your Azure Migrate project.
- Under "Server Migration," discover your AWS VMs.
- When you configure replication for your EC2 VM, the Azure Migrate appliance will automatically push the correct, AWS-compatible Mobility Service agent to the machine. This agent is specifically designed for the EC2 environment and will not have the same validation issues.
This is the standard and most reliable method for a successful migration from AWS to Azure.
Documentation for reference:
- Migrate AWS VMs to Azure with Azure Migrate
- Support Matrix for Physical Servers, AWS VMs, and GCP VMs
- Physical Server Migration Tutorial
I hope this provides the clarity you need. Please let me know if you have any further questions. Thank-you!