did you install with the PVE ISO? - if so you could just try to change the boot mode (the iso installs grub in both modes (or for zfs grub for legacy, systemd-boot for uefi) and see if the box boots
would be grateful if you shared if that worked
yes - this is (usually) to be expected - if you setup a system with legacy bios - it only installs legacy bios (same with uefi) - PVE itself is a bit of an exception here)However, when I tried to change the bios of existing vms , from seabios to ovms (uefi) , it didnt work.
check if efivarfs is mounted:Also how do I know the proxmox host is now using systemd and UEFI bootloader? Thank you.
mount |grep efi
if yes and you have ZFS on root it's booting with uefi+systemd-bootyes - this is (usually) to be expected - if you setup a system with legacy bios - it only installs legacy bios (same with uefi) - PVE itself is a bit of an exception here)
changing the boot from legacy bios to uefi is something which is guest-os specific (for linux it could be as easy as booting with a live-cd and running grub-install with the fitting arch) - so you should check for instructions based on the guest os
check if efivarfs is mounted:mount |grep efi
if yes and you have ZFS on root it's booting with uefi+systemd-boot
I hope this helps!
mount | grep efi
shows:efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
mount | grep efi
shows:
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
this link looks ok (make sure to have a backup though! since I haven't tested it myself):Also, I am using ubuntu-live server for the vms. So there is a way to change this to uefi? can you point me to some instruction on how to do this?
-> Rescue Boot
apt install grub-efi efibootmgr
fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST9500325AS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: F40FBF6A-334F-49C6-B50C-1A06C1E62955
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 1050623 1048576 512M EFI System
/dev/sda3 1050624 976773134 975722511 465.3G Linux LVM
mount /dev/sda2 /boot/efi/
grub-install /dev/sda --target=x86_64-efi --efi-directory=/boot/efi/
efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000
Boot0000* proxmox HD(2,GPT,1dd2b36b-f48b-4f5b-bf6b-32f01cb6e4d9,0x800,0x100000)/File(\EFI\proxmox\grubx64.efi)
efibootmgr -c -d /dev/sda -p 2 -L <label> -l \EFI\proxmox\grubx64.efi
apt install grub-legacy
grub-install /dev/sda
grub-install <boot partition> --target=x86_64-efi --efi-directory=/mnt/efi/ --root-directory=<path of where I mounted my root partition>
We use essential cookies to make this site work, and optional cookies to enhance your experience.