proxmox on zfs fails booting

AxelTwin

Well-Known Member
Oct 10, 2017
133
6
58
39
Hi everyone,
I installed proxmox on zfs on a dedicated server at hetzner, but I cannot manage to boot.
I can start it using rescue mode and loading it from vnc, but if I try to boot in normal mode the server get stuck on bios menu.
This happens only on zfs system.
Anyone has an idea ?
 
Last edited:
It uses UEFI
is that my probem ?

1682541988395-png.49696
system currently booted with legacy bios
 
Ok, I will try that then.

Anything I should do from this proxmox wiki:

Setting up a new partition for use as synced ESP
To format and initialize a partition as synced ESP, e.g., after replacing a failed vdev in an rpool, or when converting an existing system that pre-dates the sync mechanism, proxmox-boot-tool from pve-kernel-helpers can be used.

Warningthe format command will format the <partition>, make sure to pass in the right device/partition!

For example, to format an empty partition /dev/sda2 as ESP, run the following:

# proxmox-boot-tool format /dev/sda2

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

Afterwards /etc/kernel/proxmox-boot-uuids should contain a new line with the UUID of the newly added partition. The init command will also automatically trigger a refresh of all configured ESPs.

Updating the configuration on all ESPs
To copy and configure all bootable kernels and keep all ESPs listed in /etc/kernel/proxmox-boot-uuids in sync you just need to run:
# proxmox-boot-tool refresh
 
Then you need to boot PVE with systemd/ESP instead of grub.
I was looking at that on the wiki. not completely sure how to achieve that. any chances to choose that option at installation ? could you elaborate a bit on what should be the setup ?
 
As far as I understand it depends on the system your are installing PVE to. When using BIOS or UEFI with CSM it will install the grub bootloader. When using UEFI without CSM it will install systemd bootloader.
 
As far as I understand it depends on the system your are installing PVE to. When using BIOS or UEFI with CSM it will install the grub bootloader. When using UEFI without CSM it will install systemd bootloader.
Yeah, for me no choice, cant enable CSM so proxmox installed with grub. I can see there is a way to switch to systemd bootloader but it's confusing me right now
 
Yeah, for me no choice, cant enable CSM so proxmox installed with grub. I can see there is a way to switch to systemd bootloader but it's confusing me right now
Just reinstall. It is HARD to switch from one to the other.

How did you install it in the first place? I normally do a local install in PVE with two disks with the settings from the Hetzner setup and copy the disk images to the hetzner disks.
 
sorry, didn't see your reply.
I am trying to install root system on zfs.
I managed to get the installer to run to 99% with kvm console and usb bootable iso.
It fails at writting the systemd-bootloader.
proxmox-boot-tool init /dev/nvme0n1p2 gives: Failed to set LoaderSystemToken EFI variable: Invalid argument

(sorry for screeshots, cant copy/paste from kvm)
 

Attachments

  • Capture d’écran 2023-04-29 142402.png
    Capture d’écran 2023-04-29 142402.png
    585.7 KB · Views: 23
  • Capture d’écran 2023-04-29 133756.png
    Capture d’écran 2023-04-29 133756.png
    773.2 KB · Views: 18
Last edited:

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!