Nach Update von Proxmox-Kernel 7.0.14-24 auf Proxmox-Kernel 7.0.14-26 bootet Rechner ins BIOS/UEFI

kamikaze2508

Member
Mar 21, 2024
10
2
8
Hallo zusammen,

ich habe heute einen meiner zwei Proxmox VE-Cluster-Knoten aktualisiert. Dabei wurde auch der Kernel von Version 7.0.14-24 auf 7.0.14-26 aktualisiert. Nach dem Update habe ich daher den Rechner neu gestartet und musste dann leider feststellen, dass er nur noch ins BIOS/UEFI bootet. Er findet anscheinend kein Bootlaufwerk mehr. Ich konnte von einem Proxmox-Installer-USB-Stick über den Menüeintrag "Rescue boot" den Rechner wieder starten und augenscheinlich scheint er auch wieder zu laufen. Für mich sieht es daher so aus, als wäre die Grub-Konfiguration nicht mehr korrekt. Mir ist jetzt aber nicht klar, wie ich, nachdem ich über den Rescue boot in mein System gestartet habe, den Bootloader reparieren kann. Ich habe zu dem Proxmox-Installer-Menüeintrag "Rescue boot" auch wenig im Internet gefunden. Vielleicht kann mir hier jemand helfen, wie ich wieder ein bootfähiges System bekomme.

Mein System ist ein MSI Cubi 5 12M-021BDE mit 64 GB RAM und zwei SSDs. 1. SSD ist eine Samsung NVMe 980 M.2 SSD mit 500GB. Diese ist das eigentliche Bootlaufwerk.

Im Voraus vielen Dank.

Viele Grüße.
 
Kleiner Nachtrag:
Wenn ich auf der Konsole efibootmgr eingebe, dann wird mir nur der Proxmix-Installer-USB-Stick gelistet, von dem ich über Rescue boot das System gestartet habe.

Bash:
root@pve:~# efibootmgr
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001
Boot0001* UEFI: KingstonDT 101 G2 1.00, Partition 2    PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/HD(2,GPT,fd290c29-b919-4340-b3fa-bba2689d4d43,0x270,0x4000)0000424f
 
Danke. Den Wiki-Eintrag hatte ich auch schon gefunden. Ich scheine aber irgendwie etwas auf dem Schlauch zu stehen. :confused: Für mich sieht es derzeit so aus, als sei ich in meinem normalen System, also nicht in irgend einem GRUB-Recovery oder einem Recovery-System. Wenn ich mich per Konsole oder SSH anmelde, dann lande ich in dem normalen root-Home-Verzeichnis, in dem ich in Vergangenheit diverse Dateien abgelegt hatte. Und es sieht mir auch so aus, als ob die Partition /boot/efi der NVMe eingehängt ist:
Bash:
root@pve:~# mount | grep nvme
/dev/nvme0n1p2 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
Der Rechner wird auch von meinem Cluster erkannt. Ich hatte ihn lediglich vor dem Update in den Maintenance-Mode versetzt, in dem er auch noch zu sein scheint.
Daher ist mir die Vorgehensweise aus dem Wiki nicht ganz klar, bzw. ich bin mir nicht sicher, ob diese Anleitung zu meinem Problem passt. Dort wird nach meiner Auffassung davon ausgegangen, dass ich in einem Rescue-System bin und dann die Partitionen der SSD mounten und anschließend ein chroot durchführen muss. In meinem Fall bin ich aber augenscheinlich in meinem normalen System. Ich hab' sozusagen den USB-Stick nur zum booten verwendet.
 
Schau nach dem Rescue-Boot erstmal, was proxmox-boot-tool status und efibootmgr -v ausgeben. Soweit ich weiß, ist es oft die ESP, die nicht in /etc/kernel/proxmox-boot-uuids steht, dann wird sie beim Kernel-Update nicht mehr synchronisiert. Ein proxmox-boot-tool refresh bzw. notfalls ein neues init auf die ESP soll dann helfen, selbst gemacht habe ich das aber noch nicht.
 
Vielen Dank für die Rückmeldung:
proxmox-boot-tool status bringt folgende Meldung:
Bash:
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
E: /etc/kernel/proxmox-boot-uuids does not exist.

das Verbose von efibootmgr gibt folgendes aus:

Bash:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001
Boot0001* UEFI: KingstonDT 101 G2 1.00, Partition 2    PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/HD(2,GPT,fd290c29-b919-4340-b3fa-bba2689d4d43,0x270,0x4000)0000424f
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 00 14 / 03 05 06 00 02 00 / 04 01 2a 00 02 00 00 00 70 02 00 00 00 00 00 00 00 40 00 00 00 00 00 00 29 0c 29 fd 19 b9 40 43 b3 fa bb a2 68 9d 4d 43 02 02 / 7f ff 04 00
    data: 00 00 42 4f
Für mich sieht das so aus, als wäre nur der USB-Stick eingetragen.

Der Vollständigkeithalber meine fstab:

Bash:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
UUID=85BA-66DF /boot/efi vfat defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0

Was ich noch ergänzen sollte: Ich habe auf der System-SSD kein ZFS.
 
Last edited:
Die Ausgabe sieht so aus, als wäre die ESP auf der SSD nie in proxmox-boot-tool eingetragen worden: /etc/kernel/proxmox-boot-uuids fehlt, und efibootmgr zeigt nur den USB-Stick. Vorher bitte /boot/efi sichern (z. B. mit tar) und mit dpkg -l grub-efi-amd64 prüfen, ob das Paket da ist. Dann proxmox-boot-tool init /dev/disk/by-uuid/85BA-66DF und danach proxmox-boot-tool refresh. Danach efibootmgr -v und proxmox-boot-tool status noch einmal ausgeben. Im BIOS die Boot-Reihenfolge auf die SSD stellen.
 
Oh super! Vielen Dank, du hast meinen Tag gerettet. Das hat geholfen. :D

Ich musste allerdings vor dem proxmox-boot-tool init /dev/disk/by-uuid/85BA-66DF noch manuell die Partition /dev/nvme0n1p2 aushängen, da ich folgende Meldung bekommen habe:
Bash:
root@pve:~# proxmox-boot-tool init /dev/disk/by-uuid/85BA-66DF
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
UUID="85BA-66DF" SIZE="1073741824" FSTYPE="vfat" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="nvme0n1" MOUNTPOINT="/boot/efi"
E: '/dev/disk/by-uuid/85BA-66DF' is mounted on '/boot/efi' - exiting.

Nach dem unmounten der Partition sah dann die Ausgabe von proxmox-boot-tool init /dev/disk/by-uuid/85BA-66DF so aus:
Bash:
root@pve:~# proxmox-boot-tool init /dev/disk/by-uuid/85BA-66DF
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
UUID="85BA-66DF" SIZE="1073741824" FSTYPE="vfat" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="nvme0n1" MOUNTPOINT=""
Mounting '/dev/disk/by-uuid/85BA-66DF' on '/var/tmp/espmounts/85BA-66DF'.
Adding memtest86+x64.efi ..
Installing grub x86_64 target..
x86_64-efi wird für Ihre Plattform installiert.
Installation beendet. Keine Fehler aufgetreten.
Installing grub x86_64 target (removable)..
x86_64-efi wird für Ihre Plattform installiert.
Installation beendet. Keine Fehler aufgetreten.
Unmounting '/dev/disk/by-uuid/85BA-66DF'.
Adding '/dev/disk/by-uuid/85BA-66DF' to list of synced ESPs..
Refreshing kernels and initrds..
Running hook script 'proxmox-auto-removal'..
Running hook script 'zz-proxmox-boot'..
No /etc/kernel/cmdline found - falling back to /proc/cmdline
Copying and configuring kernels on /dev/disk/by-uuid/85BA-66DF
    Copying kernel 6.8.12-43-pve
    Copying kernel 7.0.14-24-pve
    Copying kernel 7.0.14-26-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-7.0.14-26-pve
Found initrd image: /boot/initrd.img-7.0.14-26-pve
Found linux image: /boot/vmlinuz-7.0.14-24-pve
Found initrd image: /boot/initrd.img-7.0.14-24-pve
Found linux image: /boot/vmlinuz-6.8.12-43-pve
Found initrd image: /boot/initrd.img-6.8.12-43-pve
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
    Disabling upstream hook /etc/initramfs/post-update.d/systemd-boot
    Disabling upstream hook /etc/kernel/postinst.d/zz-systemd-boot
    Disabling upstream hook /etc/kernel/postrm.d/zz-systemd-boot

Anschließend hat proxmox-boot-tool refresh folgendes ausgegeben:
Bash:
root@pve:~# proxmox-boot-tool refresh
Running hook script 'proxmox-auto-removal'..
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/cmdline found - falling back to /proc/cmdline
Copying and configuring kernels on /dev/disk/by-uuid/85BA-66DF
    Copying kernel 6.8.12-43-pve
    Copying kernel 7.0.14-24-pve
    Copying kernel 7.0.14-26-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-7.0.14-26-pve
Found initrd image: /boot/initrd.img-7.0.14-26-pve
Found linux image: /boot/vmlinuz-7.0.14-24-pve
Found initrd image: /boot/initrd.img-7.0.14-24-pve
Found linux image: /boot/vmlinuz-6.8.12-43-pve
Found initrd image: /boot/initrd.img-6.8.12-43-pve
Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
Adding boot menu entry for UEFI Firmware Settings ...
done

Jetzt sehen auch die Ausgaben von efibootmgr -v und proxmox-boot-tool status entsprechend aus:
Bash:
root@pve:~# efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* proxmox    HD(2,GPT,85124fcf-57d4-412e-9989-7653ec23361a,0x800,0x200000)/File(\EFI\proxmox\shimx64.efi)
      dp: 04 01 2a 00 02 00 00 00 00 08 00 00 00 00 00 00 00 00 20 00 00 00 00 00 cf 4f 12 85 d4 57 2e 41 99 89 76 53 ec 23 36 1a 02 02 / 04 04 36 00 5c 00 45 00 46 00 49 00 5c 00 70 00 72 00 6f 00 78 00 6d 00 6f 00 78 00 5c 00 73 00 68 00 69 00 6d 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0001* UEFI: KingstonDT 101 G2 1.00, Partition 2    PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/HD(2,GPT,fd290c29-b919-4340-b3fa-bba2689d4d43,0x270,0x4000)0000424f
      dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 00 14 / 03 05 06 00 02 00 / 04 01 2a 00 02 00 00 00 70 02 00 00 00 00 00 00 00 40 00 00 00 00 00 00 29 0c 29 fd 19 b9 40 43 b3 fa bb a2 68 9d 4d 43 02 02 / 7f ff 04 00
    data: 00 00 42 4f
Bash:
root@pve:~# proxmox-boot-tool status
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
System currently booted with uefi
85BA-66DF is configured with: grub (versions: 6.8.12-43-pve, 7.0.14-24-pve, 7.0.14-26-pve)
root@pve:~#

Der Reboot ohne USB-Stick hat nun wieder sauber von der SSD funktioniert. :cool:

Mir ist allerdings etwas seltsames aufgefallen. Wenn ich auf meinem zweiten Proxmox-Cluster-Knoten proxmox-boot-tool status ausführe, erhalte ich ebenfalls die Meldung
Bash:
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
E: /etc/kernel/proxmox-boot-uuids does not exist.

efibootmgr -v spuckt mir hier aber noch das korrekte Bootlaufwerk aus:
Bash:
root@miraculix3:~# efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* proxmox    HD(2,GPT,3fcafdfd-b2a8-453f-9358-213f73410685,0x800,0x200000)/File(\EFI\proxmox\shimx64.efi)
      dp: 04 01 2a 00 02 00 00 00 00 08 00 00 00 00 00 00 00 00 20 00 00 00 00 00 fd fd ca 3f a8 b2 3f 45 93 58 21 3f 73 41 06 85 02 02 / 04 04 36 00 5c 00 45 00 46 00 49 00 5c 00 70 00 72 00 6f 00 78 00 6d 00 6f 00 78 00 5c 00 73 00 68 00 69 00 6d 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0001* UEFI OS    HD(2,GPT,3fcafdfd-b2a8-453f-9358-213f73410685,0x800,0x200000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
      dp: 04 01 2a 00 02 00 00 00 00 08 00 00 00 00 00 00 00 00 20 00 00 00 00 00 fd fd ca 3f a8 b2 3f 45 93 58 21 3f 73 41 06 85 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
    data: 00 00 42 4f

Allerdings habe ich auf dieser Maschine das Update auch noch nicht durchgeführt.

Gibt's hier gerade evtl. einen Bug?