[SOLVED] SOLVED Reboot caused a kernel panic !!

myozone

Member
Dec 4, 2021
22
2
8
61
Just rebooted my Proxmox server and now it comes up with Kernel Panic block 0,0 - I've attached the screen shot.

A while ago I removed old unused kernels but I thought not the last plus one other. Maybe that is the issue as the server has not been rebooted for a while. I really don't want to reinstall from fresh as that would obviously mean a massive reconfig. I have backups of VM's and I did copy the root and etc folders.

I have looked at the boot drive with Gparted and looks ok from what I can tell.

This server runs everything on four VM's FreePBX, Pfsense, being the main two and Debian running the house via Node-red etc etc

Any help would be MUCH appreciated !
 

Attachments

  • PANIC.jpg
    PANIC.jpg
    773.2 KB · Views: 1
Last edited:
It looks like your cleanup was to „clean“. Do you use a single drive or raid/zfs?

You can use:
  • a Proxmox VE ISO → choose “Rescue shell” or “Debug shell”,
    or
  • any Debian/Ubuntu live ISO or SystemRescue stick.
Find your root partition:

lsblk

If you have LVM:

vgchange -ay
mount /dev/pve/root /mnt

Or ZFS:

zpool import -N -a
mount -t zfs rpool/ROOT/pve-1 /mnt

Ext4 (sda2 for example):

mount /dev/sda2 /mnt

Now mount system directories and chroot:

mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt

Rebuild initramfs & GRUB:

update-initramfs -c -k all
update-grub

If you encounter missing kernel headers/modules:

apt install --reinstall pve-kernel-6.14.11-4-pve
update-initramfs -u -k all
update-grub

To finish:

exit
reboot
 
  • Like
Reactions: myozone
Thank you for your reply.

I use a single drive and I did remove the LVM? volume and used that free space from the start when the server was first in commission - I used a YouTube video for the information on that. I did try the Proxmox resue option from a Ventoy boot usb but that just jumped back to the panic screen when I clicked on rescue, that could be BIOS boot issue?
 
Oops… I think you removed your root filesystem. If you have no backup then you have to start from scratch.
 
  • Like
Reactions: myozone
First off thank you again for your help. Indeed your post did get my system going again I followed it exactly (I didn't need to reinstall the kernel)

Sorry for the confusion I meant the localLVM like in this youtube not the LVM volume - thankfully :eek:

It's horrible to go to bed last night thinking with that sick feeling of remembering all the config settings and nightmare of rebuilding. Next time I'll backup the entire drive when I get a NVME USB adapter and another USB SSD to copy to.

Thank you again for your help and time ! :)

Now to fix the washing machine with an ebay inverter motor driver...
 
  • Like
Reactions: cwt
Good to hear. When you‘ve fixed your washing machine please change your topic to solved - that will help other users ;)
 
  • Like
Reactions: myozone
Good to hear. When you‘ve fixed your washing machine please change your topic to solved - that will help other users ;)

Done marked as solved - thanks !

No more cold sweats - for a while...

(Still waiting on the post for the inverter:))
 
  • Like
Reactions: cwt