Bug after upgrade: don't boot

NPK

Active Member
Oct 12, 2021
39
2
28
42
Hi,

Problem after upgrade from 8.4 to 9.1 : PVE don't boot. I can see the message "Welcome to grub", but just after it, reboot.

I've tried to boot on ISO for rescue mode, but it don't work :

LVM rescue boot ...
error: file '/boot/pve/vmlinuz' not found.
error: you need to load the kernel first.
error: you need to load the kernel first.

Press any key to continue...

What can I do to fix that? Secure boot is disabled.

I tried start system disk on another machine : start is OK. So I tried to reset BIOS on previous one but still not working.

Thanks.
 
Last edited:
I've tried to boot on ISO for rescue mode, but it don't work :

LVM rescue boot ...
error: file '/boot/pve/vmlinuz' not found.
error: you need to load the kernel first.
error: you need to load the kernel first.

Press any key to continue...
I have the exact same issue with my attempt to upgrade from 8.4 to 9.1. After upgrade my PVE is not booting.
Therefore I found a thread about using the Rescue Boot in order to fix this. I downloaded latest ISO from site and used Etcher to make a bootable USB. But when trying to use the Rescue Boot from USB, I got the same message as @NPK.
Using UEFI boot. Legacy and secure boot are disabled. Host machine is DELL Vostro with i7-8700.
Also tried a Factory reset in BIOS Boot settings - didn't help.
 
Last edited:
Could you double check if this is the same problem as in the Known_Upgrade_Issues [0][1]:

GRUB Might Fail To Boot From LVM in UEFI Mode​

Due to a bug in grub in PVE 8 and before, grub may fail to boot from LVM with an error message disk `lvmid/...` not found. When booting in UEFI mode, you need to ensure that the new grub version containing the fix is indeed used for booting the system.

Systems with Root on ZFS and systems booting in legacy mode are not affected.

On systems booting in EFI mode with root on LVM, install the correct grub meta-package with:

[ -d /sys/firmware/efi ] && apt install grub-efi-amd64

For more details see the relevant wiki page.

[0] https://pve.proxmox.com/wiki/Upgrade_from_8_to_9#Known_Upgrade_Issues
[1] https://pve.proxmox.com/wiki/Recove...disk_not_found.22_error_when_booting_from_LVM
 
  • Like
Reactions: junek92 and bkry
Could it be this problem: https://pve.proxmox.com/wiki/Upgrade_from_8_to_9#GRUB_Might_Fail_To_Boot_From_LVM_in_UEFI_Mode ?
Maybe try a GRUB repair: https://pve.proxmox.com/wiki/Recover_From_Grub_Failure to perform the apt install grub-efi-amd64 inside the chroot?
Note: don't forget to also mount the EFI vars, which is missing from this guide but included in some other GRUB repair guides on the internet.
Thank you! GRUB repair did the trick for me.
I did the following steps from the wiki:
0, Use Proxmox installation ISO and select debug mode.
1. Create the mountpoint:
Code:
mkdir /media/RESCUE
2. Enable the volume-group and all LVs within:
Code:
vgscan
vgchange -ay
mount /dev/pve/root /media/RESCUE/
3. Mount relevant filesystems and hostpaths:
Code:
mount -o rbind /proc /media/RESCUE/proc
mount -o rbind /sys /media/RESCUE/sys
mount -o rbind /dev /media/RESCUE/dev
mount -o rbind /run /media/RESCUE/run
4. Check where my PVE was installed - in my case it was /sda.
5. Chroot and repair
Code:
chroot /media/RESCUE
proxmox-boot-tool status
mount /dev/sda2 /boot/efi
grub-install /dev/sda

Then Ctrl+D and Abort the installation. After rebooting my original PVE install is currently up and running.