Azure Site recovery unsupported ubuntu kernel

keloken 81 Reputation points
2021-11-19T09:46:07.657+00:00

Hello, as the title says I get an error when trying to replicate a Azure Ubuntu 20.4 VM to another availability zone.

"This version of mobility service doesn't support the operating system kernel version (5.11.0-1021-azure) running on the source machine."

When is this kernel version supported on Azure? Will it take long or do I have to downgrade the kernel?

Thanks in advance

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
708 questions
{count} vote

Accepted answer
  1. Andriy Bilous 11,421 Reputation points MVP
    2021-11-19T10:39:14.087+00:00

    Hello @keloken

    There are prerequisites for disaster recovery of Azure VMs, using the Azure Site Recovery service.

    Here is kernel Support matrix - https://video2.skills-academy.com/en-us/azure/site-recovery/azure-to-azure-support-matrix#supported-ubuntu-kernel-versions-for-azure-virtual-machines
    150926-image.png

    You may try to downgrade kernel. Here is an example for Ubuntu 20.04
    Identify actual kernel with command:
    sudo uname -a

    Linux test 5.11.0-1021-azure #22~20.04.1-Ubuntu SMP Fri Oct 29 01:11:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

    First step is to identify the necessary packages that you need to install. This is done by executing the following command.
    sudo apt search linux-azure | grep 5.4.0-1062

    Afterwards you know which package needs to be installed.
    sudo apt install linux-image-5.4.0-1062-azure

    In the next step the actual kernel gets removed.
    sudo apt remove linux-image-5.11.0-1021-azure

    During the process you confirm with <No> that you do not want to abort the removal process.
    151106-image.png

    Kernel removal confirmation window

    As the last step you initiate a reboot with sudo reboot

    The welcome screen should now state the target kernel version.
    Check the kernel version
    sudo uname -a
    Linux test 5.4.0-1062-azure #65-Ubuntu SMP Sun Oct 10 02:30:34 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

    https://www.danielstechblog.io/downgrade-the-linux-kernel-on-an-azure-ubuntu-vm/


1 additional answer

Sort by: Most helpful
  1. keloken 81 Reputation points
    2021-11-30T08:30:09.567+00:00

    This issue is still not fixed, i.e. the kernel that comes with Ubuntu 20.04 is still not supported with the mobility agent for site recovery.

    2 people found this answer helpful.

Your answer

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