Resolving Azure Site Recovery (ASR) Kernel Incompatibility on Linux
A step-by-step guide to fixing the "Site recovery extension does not support the Linux kernel" error by managing kernel versions on Azure Ubuntu VMs.
On this page
Update, October 2026: the optional
apt-mark holdstep below breaks Azure Update Manager patching unless you also exclude the kernel packages by name. See the note in that section.
The Problem
While setting up Azure Site Recovery (ASR), you might encounter the following error regarding kernel versioning:
Site recovery extension does not support the Linux operating system kernel version running on the source machine.
Upon investigation, it is often found that the server has booted into a kernel version that is not yet supported by the ASR agent.
Initial Investigation
Check the active kernel version:
uname -r
Example Output:
6.17.0-1008-azure
According to the ASR Support Matrix, the maximum supported version in this scenario might be 6.14.x. Since the system is running 6.17, the extension fails to initialize.
Identifying Installed Kernel Versions
To list all kernel packages currently installed on your system:
dpkg -l | grep linux-image
Example Output:
linux-image-6.17.0-1008-azure
linux-image-6.14.0-1017-azure
In this case:
- 6.17.0-1008-azure → Unsupported by ASR.
- 6.14.0-1017-azure → Supported by ASR.
Even though a compatible version exists, the system defaults to the newest (unsupported) kernel during boot.
The Solution
In Azure Ubuntu images, GRUB settings can sometimes be overridden by cloud-init or meta-packages. The most reliable way to force the system to use the compatible kernel is to remove the unsupported version.
1. Remove the Unsupported Kernel
Execute the following command to remove the specific incompatible kernel package:
sudo apt remove linux-image-6.17.0-1008-azure
2. Update GRUB Configuration
After removal, update the bootloader configuration to ensure it points to the remaining supported kernel:
sudo update-grub
3. Reboot the Server
sudo reboot
Verification
Once the server is back online, verify the active kernel:
uname -r
Expected Output:
6.14.0-1017-azure
The ASR extension should now be able to install and communicate correctly with the Microsoft Entra-backed Azure recovery services.
Optional: Preventing Automatic Kernel Upgrades
To prevent apt from automatically installing a newer, potentially unsupported kernel in the future, you can “hold” the kernel package:
sudo apt-mark hold linux-azure
Use this with caution. While it stabilizes ASR compatibility, it also prevents the automatic application of security patches provided in newer kernel releases. Ensure you have a manual patching schedule in place.
Update, October 2026: if you patch with Azure Update Manager, read this first. A held kernel can stop Update Manager from installing anything at all. When a newer kernel is available, apt wants to move the held
linux-azuremetapackage. Update Manager runsapt-get -ywithout--allow-change-held-packages, so apt aborts the whole batch with exit code 100 (PACKAGE_MANAGER_FAILUREin the run history) and installs zero packages, not just zero kernel packages. On one VM this went on silently for weeks with more than a hundred security updates pending. A “security only” classification doesn’t help, because the kernel packages are themselves classified as security updates.The fix is to exclude the kernel packages by name in the maintenance configuration (
packageNameMasksToExclude, or the exclusion list in the portal):linux-azure,linux-image-azure,linux-headers-azure,linux-tools-azure,linux-cloud-tools-azure. Update Manager then never hands them to apt, and everything else installs. The first run after the change installed 79 packages with 0 failures. Also alert on scheduled runs that install nothing, not only on runs that fail.
Conclusion
By following these steps, we have:
- Identified the kernel version conflict.
- Removed the incompatible 6.17 kernel.
- Stabilized the system on the 6.14 kernel.
- Ensured full compatibility for Azure Site Recovery operations.