Not sure where I need to go and fix this... Please help..
After I upgraded a node from 8.3.3 to 8.4.1, proxmox did not boot anymore.
A co-worker installed this cluster and did not do much of documentation.
So I checked if I needed to fix the boot with grub-install or proxmox-boot-tool refresh
[ -d /sys/firmware/efi ] && echo "UEFI" || echo "BIOS"
UEFI
I used UEFI, thus proxmox-boot-tool.
root@pve01:~# 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/proxmox-boot-uuids found, skipping ESP sync.
Removable bootloader found at '/boot/efi/EFI/BOOT/BOOTX64.efi', but GRUB packages not set up to update it!
Run the following command:
echo 'grub-efi-amd64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections -v -u
Then reinstall GRUB with 'apt install --reinstall grub-efi-amd64'
root@pve01:~# echo 'grub-efi-amd64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections -v -u
info: Trying to set 'grub2/force_efi_extra_removable' [boolean] to 'true'
info: Loading answer for 'grub2/force_efi_extra_removable'
root@pve01:~# apt install --reinstall grub-efi-amd64
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Here the system rebooted!
The system came up, but I have different questioins..
For example, the file /etc/default/grub is completely empty. I compared it with the other system in the cluster which I did not upgrade yet.
I copied over the content from the running system (system, is identical) and rebooted. Came up fine too. Now I am unsure what to do.
I followed the instructions at https://pve.proxmox.com/wiki/Recover_From_Grub_Failure
(This subsection applies to PVE 8 hosts that have their boot disk on LVM, boot in UEFI mode and were upgraded from PVE 7.) <-- applies to this system
root@pve01:~# [ -d /sys/firmware/efi ] && apt install grub-efi-amd64
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
As soon as I run 'dpkg --configure -a', the system reboots again.
root@pve01:~# dpkg --configure -a
Setting up openssh-sftp-server (1:9.2p1-2+deb12u6) ...
Setting up openssh-server (1:9.2p1-2+deb12u6) ...
rescue-ssh.target is a disabled or a static unit not running, not starting it.
ssh.socket is a disabled or a static unit not running, not starting it.
Setting up pve-qemu-kvm (9.2.0-5) ...
Setting up grub-efi-amd64 (2.06-13+pmx6) ...
Installing for x86_64-efi platform.
File descriptor 3 (pipe:[62659]) leaked on vgs invocation. Parent PID 14171: grub-install.real
File descriptor 3 (pipe:[62659]) leaked on vgs invocation. Parent PID 14171: grub-install.real
Hangs here and after a few seconds.. reboot.
It comes up, though. Seems to work too.
root@pve01:~# pveversion
pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-11-pve)
But something with booting seems off..
Help...
After I upgraded a node from 8.3.3 to 8.4.1, proxmox did not boot anymore.
A co-worker installed this cluster and did not do much of documentation.
So I checked if I needed to fix the boot with grub-install or proxmox-boot-tool refresh
[ -d /sys/firmware/efi ] && echo "UEFI" || echo "BIOS"
UEFI
I used UEFI, thus proxmox-boot-tool.
root@pve01:~# 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/proxmox-boot-uuids found, skipping ESP sync.
Removable bootloader found at '/boot/efi/EFI/BOOT/BOOTX64.efi', but GRUB packages not set up to update it!
Run the following command:
echo 'grub-efi-amd64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections -v -u
Then reinstall GRUB with 'apt install --reinstall grub-efi-amd64'
root@pve01:~# echo 'grub-efi-amd64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections -v -u
info: Trying to set 'grub2/force_efi_extra_removable' [boolean] to 'true'
info: Loading answer for 'grub2/force_efi_extra_removable'
root@pve01:~# apt install --reinstall grub-efi-amd64
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Here the system rebooted!
The system came up, but I have different questioins..
For example, the file /etc/default/grub is completely empty. I compared it with the other system in the cluster which I did not upgrade yet.
I copied over the content from the running system (system, is identical) and rebooted. Came up fine too. Now I am unsure what to do.
I followed the instructions at https://pve.proxmox.com/wiki/Recover_From_Grub_Failure
(This subsection applies to PVE 8 hosts that have their boot disk on LVM, boot in UEFI mode and were upgraded from PVE 7.) <-- applies to this system
root@pve01:~# [ -d /sys/firmware/efi ] && apt install grub-efi-amd64
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
As soon as I run 'dpkg --configure -a', the system reboots again.
root@pve01:~# dpkg --configure -a
Setting up openssh-sftp-server (1:9.2p1-2+deb12u6) ...
Setting up openssh-server (1:9.2p1-2+deb12u6) ...
rescue-ssh.target is a disabled or a static unit not running, not starting it.
ssh.socket is a disabled or a static unit not running, not starting it.
Setting up pve-qemu-kvm (9.2.0-5) ...
Setting up grub-efi-amd64 (2.06-13+pmx6) ...
Installing for x86_64-efi platform.
File descriptor 3 (pipe:[62659]) leaked on vgs invocation. Parent PID 14171: grub-install.real
File descriptor 3 (pipe:[62659]) leaked on vgs invocation. Parent PID 14171: grub-install.real
Hangs here and after a few seconds.. reboot.
It comes up, though. Seems to work too.
root@pve01:~# pveversion
pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-11-pve)
But something with booting seems off..
Help...