Hello @Elsayed, Omar
Do you still see the same kernel version or there any progress further. If not, it looks like you're almost there! Let's try a few steps to ensure the downgrade is applied correctly:
dpkg -l | grep linux-image
As you mentioned, sometimes the GRUB configuration file needs to be updated manually, ensure that it is updated.
Below link has a similar scenario with detailed steps. Please check
https://learn.microsoft.com/en-us/answers/questions/918155/how-can-i-downgrade-the-kernel-version-of-ubuntu-o
Other options If you are rolling back the kernel to address VM issues after applying kernel changes, the recommendation is to delete the affected Linux VM and keep the operating system disk which is then attached to a new VM with the same version and running one of the following repair options:
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/kernel-related-boot-issues
- Roll back the kernel and start from a previous working setup by editing the configuration file.
- Install or reinstall a kernel by attaching the affected VM operating system disk to a temporary new VM and running a tool like apt-get, Yellowdog Updater Modified (YUM), or Zypper. See Linux Recovery: Using CHROOT steps to recover VMs that are not accessible.