[SOLVED] PVE7.0 - in-place upgrade; Fehler bei GRUB - Konfiguration

noPa$$word

Renowned Member
Feb 12, 2010
358
42
93
Ich habe versucht, auf meinem System das Upgrade von V6.4 auf V7.0 zu installieren. Grundsätzlich hat das auch funktioniert.

Ich habe in meinem System Proxmox bei der Installation auf zwei Platten /dev/sda und /dev/sdb (ZFS - Mirror) installiert. Beim Upgrade bemängelt das System folgenden Fehler:

GRUB failed to install to the following devices:
/dev/sda /dev/sdb
Do you want to contine anyway? If you do, your computer mai not start up properly.
Writing GRUB to boot devic failes - continue?

Ich habe bei der Installation nach mehreren Versuchen mit "yes" bestätigt. Einen NEUSTART habe ich bisher noch nicht gemacht.

Wie geht ich weiter vor?
Danke

Update:
ich habe jetzt noch den Befehl "proxmox-boot-tool refresh" ausgeführt, welcher ohne Fehler durchgelaufen ist. Mit einem Neustart warte ich jedoch noch bis auf eine entsprechende Meldung im Forum.....
 
Last edited:
wann (mit welcher pve version) wurde das system aufgesetzt?
ist es mit uefi gebootet (gibt `mount |grep efi`etwas aus)?
was ist der output von `proxmox-boot-tool status`?
 
ad 1)
glaublich v6.4

ad 2)
mount | grep efi
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)

ad 3)
proxmox-boot-tool status
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
92D7-306E is configured with: uefi
92D7-8428 is configured with: uefi
 
Dann sollte ein reboot kein problem darstellen (das system sollte mit systemd-boot booten, und somit grub ignorieren)

`proxmox-boot-tool refresh` stellt sicher, dass kernel+initrd korrekt auf der ESP sind.

Ich werde versuchen die grub-detection etwas hilfreicher zu machen
 
Sorry, wenn ich nochmal frage, ich sollte dann (???MB, ???) auswählen und irgnorieren?
 
Sorry, wenn ich nochmal frage, ich sollte dann (???MB, ???) auswählen und irgnorieren?
bin mir nicht ganz sicher was (???MB, ???) genau heißen soll?
* steht es wörtlich (mit den ?) als dialog auf dem Bildschirm oder sind die ? nur Platzhalter für devices und zahlen?

Ich nehme an wenn nichts ausgewählt wird funktioniert es, anderen Falls wird ein (wie oben beschrieben nicht wirklich relevanter) Fehler angezeigt.

Ich hoffe das hilft!
 
Ich habe das gleiche Problem mit einem Standalone ProxMox VE Server, welcher bei einem Hoster steht, ich also nur ssh Zugriff habe. Unser Hausinterner Cluster hat das Upgrade problemlos überstanden, aber ist wohl nicht legacy bios bootend.

Upgraded wurde das System ab 6.4-15

mount | grep efi gibt nichts aus

proxmox-boot-tool status
Code:
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..

System currently booted with legacy bios

9A48-B952 is configured with: uefi (versions: 5.4.101-1-pve, 5.4.65-1-pve)

9A49-208F is configured with: uefi (versions: 5.4.101-1-pve, 5.4.65-1-pve)


proxmox-boot-tool refresh
Code:
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

/dev/disk/by-uuid/9A48-B952 contains no grub directory - skipping

/dev/disk/by-uuid/9A49-208F contains no grub directory - skipping


Was würdet ihr empfehlen wie weiter vorzugehen?

Ich habe gemäss Anleitung https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0#Unable_to_boot_due_to_grub_failure

Verifiziert, dass ich zwei 512M Partitionen auf /dev/sda2 und /dev/sdb2 habe, und dann

proxmox-boot-tool init /dev/sda2 und /dev/sdb2 durchgeführt.

proxmox-boot-tool status gibt folgendes aus:

Code:
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..

System currently booted with legacy bios

9A48-B952 is configured with: uefi (versions: 5.4.101-1-pve, 5.4.65-1-pve), grub (versions: 5.15.39-1-pve, 5.4.189-2-pve)

9A49-208F is configured with: uefi (versions: 5.4.101-1-pve, 5.4.65-1-pve), grub (versions: 5.15.39-1-pve, 5.4.189-2-pve)

Bin nun unsicher, ob das System booten wird. Aber bleibt mir wohl nichts anderes übrig, als den reboot zu wagen.

Das war die Ausgabe von proxmox-boot-tool init /dev/sda2
Code:
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
UUID="9A48-B952" SIZE="536870912" FSTYPE="vfat" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="sda" MOUNTPOINT=""
Mounting '/dev/sda2' on '/var/tmp/espmounts/9A48-B952'.
Installing grub i386-pc target..
Installing for i386-pc platform.
Installation finished. No error reported.
Unmounting '/dev/sda2'.
Adding '/dev/sda2' 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/9A48-B952
        Copying kernel 5.15.39-1-pve
        Copying kernel 5.4.189-2-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.39-1-pve
Found initrd image: /boot/initrd.img-5.15.39-1-pve
Found linux image: /boot/vmlinuz-5.4.189-2-pve
Found initrd image: /boot/initrd.img-5.4.189-2-pve
done
/dev/disk/by-uuid/9A49-208F contains no grub directory - skipping

Analog für /dev/sdb2
 
Last edited:
Das booten hat geklappt. Sehe ich das richtig, dass ohne proxmox-boot-tool init das System nicht gebootet hätte?
 
Upgraded wurde das System ab 6.4-15

mount | grep efi gibt nichts aus

proxmox-boot-tool status
das sieht seltsam aus - weil proxmox-boot-tool offensichtlich zu einem frueheren Zeitpunkt das System als efi-bootend eingerichtet hat, dieses aber derzeit legacy bootend ist ...
Sehe ich das richtig, dass ohne proxmox-boot-tool init das System nicht gebootet hätte?
sehr wahrscheinlich hätte es das nicht

Ich hoffe das hilft!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!