Ubuntu 20.04 arm64 server-cloud image hits kernel panic but boots successfully on retry
This is the image we are using:
https:/
When the image boots, it first hits a kernel panic. Then the Grub menu appears, counts down and
successfully boots.
From looking a bit at the grub config file: /boot/grub/
if [ "${initrdfail}" = 1 ]; then
linux /boot/vmlinuz-
initrd /boot/initrd.
else
linux /boot/vmlinuz-
fi
The boot without an initrd seems to hit a panic. Then grub retries the boot with the initrd and the boot succeeds.
It goes through this sequence every time we boot the image.
The question here is if there is any way to avoid this initial panic?
We understand that we could modify the grub.cfg to always use the intird. That clearly eliminates the issue.
However, we were hoping for another option that avoids modifying a generated file.
It is also worth mentioning that we tried the amd64 version of this image, and it does not have this issue (ubuntu-
Here is the console output from the panic:
[ 2.973416] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.974472] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.0-28-generic #32-Ubuntu
[ 2.975376] Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015
[ 2.976305] Call trace:
[ 2.976625] dump_backtrace+
[ 2.977094] show_stack+
[ 2.977524] dump_stack+
[ 2.978260] panic+0x14c/0x358
[ 2.978916] mount_block_
[ 2.979776] mount_root+
[ 2.980488] prepare_
[ 2.981367] kernel_
[ 2.982315] kernel_
[ 2.983068] ret_from_
[ 2.983889] SMP: stopping secondary CPUs
[ 2.985013] Kernel Offset: disabled
[ 2.985772] CPU features: 0x0002,22208238
[ 2.986313] Memory Limit: none
This is our QEMU command line to launch the image:
qemu-system-aarch64 -nographic -machine virt,gic-
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Robert Foley for more information if necessary.