Azure Site Recovery: Keeping Linux VMs on Supported Kernel Version (VMware to Azure)

Jake Hopkins 56 Reputation points
2023-07-25T19:42:40.3866667+00:00

Before using ansible or some other solution to automate specific kernel updates, I just wanted to see if I am missing something built-in or related to Azure Site Recovery to help keep Linux VMs running a supported kernel version.

Problem:

Understandably, updates to the ASR Mobility Agent installed on the VMs lags behind Linux kernel updates. However, replication for VMs break if something like unattended upgrades or someone running apt update/upgrade updates a linux kernel outside of the supported range. For example, the current kernel version for Ubuntu 22.04 LTS is 5.15.0-76-generic, while the highest supported kernel version by ASR is 5.15.0-70-generic.

On smaller deployments, the solution has been to add the kernel packages to the unattended upgrades blacklist and then upgrade the kernel manually based on the latest kernel provided in the support matrix. This is the first deployment I've worked on that has a substantial number of linux VMs where this isn't feasible.

Question:

Is there a preferred way to keep VMs within the supported kernels? Is there a feature or function of Azure Site Recovery that handles this?

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

Accepted answer
  1. Said A 911 Reputation points
    2023-07-26T14:40:02.7066667+00:00

    Hello @Jake Hopkins ,

    There doesn't seem to be a feature withing ASR that enables this.

    The process of keeping Machines in the supported kernels is done at the machine level. https://www.danielstechblog.io/downgrade-the-linux-kernel-on-an-azure-ubuntu-vm/

    Best assumption is this could be automated on your end,

    Regards,

    0 comments No comments

0 additional answers

Sort by: Most 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.