[SOLVED] PVE 9 - GRUB stops the machine immediately

so you need to add an entry there for your ESP (/dev/nvme0n1p2) to mount it at /boot/efi .. and then you should reinstall your bootloader (apt install --reinstall grub-efi-amd64)
 
  • Like
Reactions: Privacy
Thank you!
But that sounds a bit different compared to the information on the help page:
https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#sysboot_proxmox_boot_tool

Can you please explain that a bit more? :)

To setup an existing, unmounted ESP located on /dev/sda2 for inclusion in Proxmox VE’s kernel update synchronization mechanism, use the following:
# proxmox-boot-tool init /dev/sda2

So couldn't I just use # proxmox-boot-tool init /dev/nvme0n1p2 to setup my existing unmounted ESP?

I added
Bash:
/dev/nvme0n1p2 /boot/efi vfat defaults 0 1
to /etc/fstab.
 
Last edited:
sure, you can also use proxmox-boot-tool to manage the ESP, but for your setup there is no advantage..
 
  • Like
Reactions: Privacy
with proxmox-boot-tool, all kernels and initrds are copied to the ESP - which means you are limited by the amount of space on the ESP, and can't keep all kernel versions bootable if you have many of them.
 
  • Like
Reactions: Privacy
Thanks a lot for the explanation.
Let's see if I can remember that in case I'll get space issues in future. :)
But for now I think I'm fine:
Bash:
Filesystem             Size  Used Avail Use% Mounted on
/dev/nvme0n1p2        1022M  289M  734M  29% /boot/efi

An extra "Many thanks" for your ongoing assistance.
 
Hey everyone, just wanted to chip in since I had the exact same Problem. Upgrade from 8 to 9 according to the official docs went smooth but then after a reboot I got stuck in a bootloop. It would just show "Welcome to grub" and then reboot.

Here is how I solved it:

I downloaded and booted from the official proxmox 9 iso and chose the rescue mode under advanced options.
After the System booted I could login through ssh. After reading the docs I tried to mount the efi partition first to check if the partition itself was ok:
Code:
root@pve:/# mount /dev/nvme0n1p2 /boot/efi
root@pve:/#
root@pve:/#
root@pve:/# ls -la /boot/efi/
total 12
drwxr-xr-x 3 root root 4096 Jan  1  1970 .
drwxr-xr-x 5 root root 4096 Sep 14 13:34 ..
drwxr-xr-x 4 root root 4096 Mar  8  2023 EFI

Then I just ran the grub commands:
Code:
root@pve:/# grub-install --target x86_64-efi --no-floppy --bootloader-id proxmox /dev/nvme0n1
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@pve:/#
root@pve:/# grub-install --target x86_64-efi --no-floppy --bootloader-id proxmox --removable /dev/nvme0n1
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@pve:/#
root@pve:/# update-initramfs -u -k all

The initramfs command would actually give me a few warnings about the removable bootloader and that grub would not update it.
But after a reboot everything was just working fine again.

Thanks for all your help :)
 
In my case I did the following:

1) Boot with Proxmox ISO (Recovery Boot)
2) Shell:

mount /dev/sdX2 /boot/efi
grub-install --target x86_64-efi --no-floppy --bootloader-id proxmox /dev/sdX
grub-install --target x86_64-efi --no-floppy --bootloader-id proxmox --removable /dev/sdX
echo 'grub-efi-amd64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections -v -u
apt install --reinstall grub-efi-amd64
update-initramfs -u -k all

Now boot works again!

Can somebody explain what the "--removable" option is for and why this line is needed?

Also can somebody explain the echo line? Proxmox suggested me to do that and reinstall grub afterwards..
 
Hey everyone, just wanted to chip in since I had the exact same Problem. Upgrade from 8 to 9 according to the official docs went smooth but then after a reboot I got stuck in a bootloop. It would just show "Welcome to grub" and then reboot.

Here is how I solved it:

I downloaded and booted from the official proxmox 9 iso and chose the rescue mode under advanced options.
After the System booted I could login through ssh. After reading the docs I tried to mount the efi partition first to check if the partition itself was ok:
Code:
root@pve:/# mount /dev/nvme0n1p2 /boot/efi
root@pve:/#
root@pve:/#
root@pve:/# ls -la /boot/efi/
total 12
drwxr-xr-x 3 root root 4096 Jan  1  1970 .
drwxr-xr-x 5 root root 4096 Sep 14 13:34 ..
drwxr-xr-x 4 root root 4096 Mar  8  2023 EFI

Then I just ran the grub commands:
Code:
root@pve:/# grub-install --target x86_64-efi --no-floppy --bootloader-id proxmox /dev/nvme0n1
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@pve:/#
root@pve:/# grub-install --target x86_64-efi --no-floppy --bootloader-id proxmox --removable /dev/nvme0n1
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@pve:/#
root@pve:/# update-initramfs -u -k all

The initramfs command would actually give me a few warnings about the removable bootloader and that grub would not update it.
But after a reboot everything was just working fine again.

Thanks for all your help :)
Thanks man, did the same and it worked!