UEFI booting Proxmox 5.2 on ZFS?

Discussion in 'Linux Admins, Storage and Virtualization' started by arglebargle, Aug 23, 2018.

  1. arglebargle

    arglebargle H̸̖̅ȩ̸̐l̷̦͋l̴̰̈ỏ̶̱ ̸̢͋W̵͖̌ò̴͚r̴͇̀l̵̼͗d̷͕̈

    Joined:
    Jul 15, 2018
    Messages:
    244
    Likes Received:
    75
    I've just done a fresh install of Proxmox 5.2 on a machine with a single drive ZFS root and it looks like the installer neglects to create an EFI partition. I've found a couple of write-ups that work around this by formatting the solaris reserved partition as vfat and installing EFI grub there -- is this the way to do this or is there something else I should be doing? This is my first ZFS root on UEFI so I don't really know what I'm doing.

    Here're the writeups I've been looking at:
    [SOLVED] - UEFI install and RAID
    Booting a ZFS Root via UEFI on Debian (ctrl+f "vfat")
     
    #1
  2. arglebargle

    arglebargle H̸̖̅ȩ̸̐l̷̦͋l̴̰̈ỏ̶̱ ̸̢͋W̵͖̌ò̴͚r̴͇̀l̵̼͗d̷͕̈

    Joined:
    Jul 15, 2018
    Messages:
    244
    Likes Received:
    75
    After reading a bit more I settled on just kicking this script snippet off after installing and it seems to work. I'm still not sure if I'm doing the "correct" thing by re-using the solaris reserved partition (apparently it's reserved for EFI use, so this should be fine?)

    Code:
    mkdir -p /boot/efi
    mkfs.vfat /dev/sda9
    fatlabel /dev/sda9 BOOT_EFI
    mount /dev/sda9 /boot/efi
    grub-probe -d /dev/sda9
    update-grub
    grub-install -d /usr/lib/grub/x86_64-efi /dev/sda
    echo "/dev/disk/by-label/BOOT_EFI /boot/efi vfat defaults 0 1" >> /etc/fstab
    
    Cribbed from this post: [SOLVED] - UEFI install and RAID

    EFI boot order is a little out of whack after this, Proxmox is set to boot before USB EFI devices, but that's easy enough to re-order in the bios.
     
    #2
    fossxplorer likes this.
  3. fossxplorer

    fossxplorer Active Member

    Joined:
    Mar 17, 2016
    Messages:
    327
    Likes Received:
    26
    After following the above steps and a reboot, did you see an 'efi' folder in /sys/firmware?
    I did also install PVE with single disk ZFS RAID0, but it boots into BIOS mode. Using XFS for boot drive, it works fine with UEFI.
     
    #3
  4. arglebargle

    arglebargle H̸̖̅ȩ̸̐l̷̦͋l̴̰̈ỏ̶̱ ̸̢͋W̵͖̌ò̴͚r̴͇̀l̵̼͗d̷͕̈

    Joined:
    Jul 15, 2018
    Messages:
    244
    Likes Received:
    75
    Yeah, it's there. The machine is definitely booting in EFI mode, I shut off legacy boot in the BIOS entirely.

    I actually had legacy boot shut off when I performed the install, so I was a bit confused when the machine failed to boot after removing the USB key. I worked around the legacy boot by booting rescue mode from the install stick and making the changes above.
     
    #4
    fossxplorer likes this.
  5. fossxplorer

    fossxplorer Active Member

    Joined:
    Mar 17, 2016
    Messages:
    327
    Likes Received:
    26
    I see. So do i understand you right, you didn't use the rEFInd (my first encounter with it, very very useful utility) and was able to fix the EFI partition with grub-install by rebooting into the already installed Proxmox using the installer USB?

    And i'd like to say THANK YOU very much for posting this since i managed to fix the issue based on your posts in this thread!
    The reason i didn't encounter the "issue" was that i had both UEFI and BIOS boot enabled, although i booted Proxmox installer in UEFI mode, the consequent reboot after successful installation simply booted Proxmox in BIOS mode :)

    EDIT1: ironically your thread was started just around the time i had my first Proxmox installation up and running to be played with :)
     
    #5
Similar Threads: UEFI booting
Forum Title Date
Linux Admins, Storage and Virtualization PXE booting Suse Linux 12 SP3 Sep 7, 2018
Linux Admins, Storage and Virtualization PXE Booting SLES 12 SP1 install Aug 20, 2018
Linux Admins, Storage and Virtualization Problems booting Kernel >4.10, stuck at boot screen Dec 27, 2017
Linux Admins, Storage and Virtualization Booting from ZFS: How to Best Handle Swap Space? Oct 25, 2017
Linux Admins, Storage and Virtualization Booting from unRAID flash drive in ESXi guest Jun 6, 2015

Share This Page