Kernel panic during EC2 launch
During deployment of new app version on new EC2 with template from AMI image I got following error:
[ 1.670047] No filesystem could mount root, tried:
[ 1.670048]
[ 1.677170] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.685026] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.181-140.257.amzn2.x86_64 #1
[ 1.692532] Hardware name: Amazon EC2 t3a.nano/, BIOS 1.0 10/16/2017
previously it was working like charm - I haven't change any AMI or template setting - just added new SSL certs to nginx
I found this troubleshooting article but cannot move with it since I cannot access instance terminal.
I've tried to boo new instance with add different kernel ID but got this error:
You cannot launch multiple AMIs with different virtualization styles at the same time.
I believed during AMI kernel has somehow changed and it causes problem - is it possible?
What can cause that issue and how to solve?
It is impossible to suggest any resolution with the data that you provided. I suspect that the issue is related to error in /etc/fstab file. There might be also an error in launch template for Disk1 and wrong device name Or the Snapshot / EBS volume is corrupted.
If you added nginx certs then obviously you updated AMI so I suspect there was an issue during new image building process.
Relevant questions
Unable to Modify an EC2 Launch Template
asked 3 months agoEC2 root file system is read only after reboot
asked 2 months agoDoes Image Builder supports creating an image from a Marketplace AMI?
asked 4 months agoEC2 Image Builder updating Launch Templates and wiping Snapshot configuration
asked 5 months agoUpdating AMI of a EC2 Fleet
asked 3 years agoEBS Unoptimized Product
asked 5 days agoKernel panic during EC2 launch
asked 2 months agolaunch template suddenly stopped working
asked 2 months agoUnable to remove instance type from launch template
asked 4 months agocan't create AutoScaling group from launch template
asked 3 years ago