Kernel Panic due to Missing Initramfs,

Elsayed, Omar 25 Reputation points
2025-01-14T14:10:28.4466667+00:00

Hello,

I´m facing the above mentioned issue while I´m trying to connect using SSH, and power shell.

I have tried to execute the suggest troubleshooting methods from Azure, but it does not work, could anyone out there help me out with this?

User's image

attached here 1st image for the suggest solution, but it does not work due to admin credential while fetching the security group.

the other suggested solution is to solve it through the serial console which I do not have access to.

so can please anyone of you assist me with a proper solution for my error?

thanks in advance

Best regards,

Omar

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,333 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Markapuram Sudheer Reddy 515 Reputation points Microsoft Vendor
    2025-02-10T13:39:00.94+00:00

    Hi Elsayed, Omar ,

    Thank You for your patience and please follow below given instructions.

    The error which was stated above "Kernel Panic due to Missing Initramfs" can occur due to corrupted or missing initramfs for the newer kernel, I have shared troubleshooting steps that I felt will help resolve the issue you reported.

    To resolve the error, we should regenerate it from the older kernel (i.e working environment) can likely be a possible solution. Since you are trying from older kernel and you stated above as you still not able to login to older kernel also, you can try with booting into recovery mode option which provides a minimal environment to access and modify the system to regenerate the initramfs. Please use below documentation below for detailed steps:

    https://wiki.ubuntu.com/RecoveryMode

    After that please try with below commands to regenerate the initramfs;

    • First verify the kernel version, uname -r
    • sudo update-initramfs -u -k all (Debian/Ubuntu Linux distribution systems) dracut -f /boot/initramfs-<kernelVersion>.img <kernelVersion> (CentOS, RHEL, Fedora and others Linux distribution systems)
    • After regenerating, update GRUB bootloader to ensure that it uses the correct kernel and initramfs sudo update-grub (Debian/Ubuntu Linux distribution systems) sudo grub2-mkconfig -o /boot/grub2/grub.cfg (CentOS, RHEL, Fedora and others Linux distribution systems)

    If you found this informative, please consider accepting an answer as a token of appreciation. And don't forget to give it a thumbs up 👍 if it was helpful.

    0 comments No comments

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.