Problem with installing the mobility Service on an EC2 Linux MAchines

nuage compte 90 Reputation points
2025-09-03T13:23:23.8833333+00:00

Hello, I am Trying to migrate an EC2 Linux machine to Azure.

at the installation phase of the mobility Service, I got an Error.

always same error and it's about Mobility service.

I tried both Ubuntu 22.04 and 24.04 and same error

User's image

any help?

or let me know which linux version is functional on EC2?

Azure Migrate
Azure Migrate

A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.


Answer accepted by question author

Anurag Rohikar 3,190 Reputation points Microsoft External Staff Moderator
2025-09-04T09:41:42.9+00:00

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:

  1. 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.
  2. 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:

  1. Stop Manual Installation: Do not attempt to manually install the Mobility Service on your EC2 instance.
  2. 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:

I hope this provides the clarity you need. Please let me know if you have any further questions. Thank-you!

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. nuage compte 90 Reputation points
    2025-09-08T14:10:45.2333333+00:00

    thank you so much for your help @Anurag Rohikar , yes it helps..

    I still have a couple of question please if you can help me on that.

    As I am the onwer of the subscription, Should I also have the "contributor/owner role" to create the Azure Migrate project and the "application developer " Role to register the discovery appliance?

    should I have both role for all workloads? (vmware, hyperV and Phsyical server)?

    Was this answer helpful?

    1 person found this answer helpful.

  2. nuage compte 90 Reputation points
    2025-09-08T12:29:50.7633333+00:00

    Hi ,

    the replication passed thanks to push installtion, I can use push installation for the windows 2019 server machine?

    Also I have a question, should I use those instruction for my Redhat8 aws EC2 before migration?

    https://learn.microsoft.com/en-us/azure/migrate/prepare-for-migration?view=migrate#linux-machines

    Was this answer helpful?

    1 person found this answer helpful.

  3. Anurag Rohikar 3,190 Reputation points Microsoft External Staff Moderator
    2025-09-03T14:56:07.2566667+00:00

    Hello nuage compte, Thanks for reaching out on Microsoft Q&A and really appreciate your patience while we looked into this.

    From the error log in your screenshot, what this means:

    • The Azure Site Recovery Mobility Service you are installing does not support the Linux kernel version running on your EC2 machine.
    • In your case, the kernel is: 6.14.0-1011-aws (a newer AWS-specific kernel).
    • The installer exits with code 99 because it validates OS + kernel support before continuing.

    Why it happens:

    • Azure Site Recovery (ASR) Mobility Service supports only specific distributions + kernel versions.
    • Ubuntu 22.04 is supported but only with certain GA kernel versions (not the custom AWS-provided kernels like 6.14.*).
    • Ubuntu 24.04 is not yet supported for ASR (as of now).

    Recommended Solutions and Workarounds:

    To successfully install the Mobility Service, you must ensure your Linux machine is running a kernel version that is officially supported by Azure Site Recovery.

    1. Verify ASR Support Matrix:
      Before any action, consult the official Microsoft Azure Site Recovery support matrix for Linux. This document is the single source of truth for all supported operating systems and their corresponding kernel versions.
      Reference: Azure Site Recovery support matrix - Linux
    2. Use a supported kernel:
      • For Ubuntu 22.04, ASR usually supports kernels like 5.15.*.
      • You may need to install a supported kernel package:
             sudo apt update
             sudo apt install linux-image-5.15.0-*-generic
             sudo reboot
        
        Then re-run the installer.
    3. Avoid Currently Unsupported Versions: Ubuntu 24.04: This is a very new release and is not yet listed in the ASR support matrix. It is highly recommended to avoid using this version for ASR replication until official support is announced.
    4. Use a Fully Supported OS Version:
      If you have the flexibility to deploy a new instance, consider using a Linux distribution and version that has a long history of ASR support.
      • Ubuntu 20.04 LTS: This version is widely supported and has fewer kernel-related compatibility issues with ASR.
      • Other Supported Distributions: Check the support matrix for other options like CentOS, RHEL, or SUSE Linux Enterprise Server.

    Hope this helps! If you have any further questions, please let us know. Thank you!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  4. nuage compte 90 Reputation points
    2025-09-05T08:48:34.7566667+00:00

    Hi Arnurag,

    This what I get when I start replication:

    User's image

    more details.. User's image

    User's image

    any help?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.