Problem. Doesn't boot in EFI

Dmitrius7

Member
Oct 27, 2020
14
0
6
37
Hi,
I just upgraded to last version.

Currently system booted from grub. I need boot it from EFI.
But in boot menu I don't see EFI boot proxmox. (EFI at this sytem works normally I can boot from EFI live USB linux mint).


# proxmox-boot-tool status Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace.. B873-BAFF is configured with: grub FDCB-6E7A is configured with: grub

I see B873-BAFF is configured with: grub. As I understand it should be configured with: uefi.
How to switch?

root@pveetalon1:~# apt update && apt dist-upgrade
Hit:1 http://ftp.ru.debian.org/debian buster InRelease
Hit:2 http://ftp.ru.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org buster/updates InRelease
Hit:4 http://download.proxmox.com/debian/pve buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
pastebinit python-newt tmux
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
pve-kernel-5.4.124-1-pve
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 60.7 MB of archives.
After this operation, 551 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://download.proxmox.com/debian/pve buster/pve-no-subscription amd64 pve-kernel-5.4.124-1-pve amd64 5.4.124-2 [60.7 MB]
Fetched 60.7 MB in 1s (46.8 MB/s)
Reading changelogs... Done
(Reading database ... 86052 files and directories currently installed.)
Preparing to unpack .../pve-kernel-5.4.124-1-pve_5.4.124-2_amd64.deb ...
Unpacking pve-kernel-5.4.124-1-pve (5.4.124-2) over (5.4.124-1) ...
Setting up pve-kernel-5.4.124-1-pve (5.4.124-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
update-initramfs: Generating /boot/initrd.img-5.4.124-1-pve
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/cmdline found - falling back to /proc/cmdline
Copying and configuring kernels on /dev/disk/by-uuid/B873-BAFF
Copying kernel 5.3.18-3-pve
Copying kernel 5.4.124-1-pve
Copying kernel 5.4.78-2-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.124-1-pve
Found initrd image: /boot/initrd.img-5.4.124-1-pve
Found linux image: /boot/vmlinuz-5.4.78-2-pve
Found initrd image: /boot/initrd.img-5.4.78-2-pve
Found linux image: /boot/vmlinuz-5.3.18-3-pve
Found initrd image: /boot/initrd.img-5.3.18-3-pve
done
Copying and configuring kernels on /dev/disk/by-uuid/FDCB-6E7A
Copying kernel 5.3.18-3-pve
Copying kernel 5.4.124-1-pve
Copying kernel 5.4.78-2-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.124-1-pve
Found initrd image: /boot/initrd.img-5.4.124-1-pve
Found linux image: /boot/vmlinuz-5.4.78-2-pve
Found initrd image: /boot/initrd.img-5.4.78-2-pve
Found linux image: /boot/vmlinuz-5.3.18-3-pve
Found initrd image: /boot/initrd.img-5.3.18-3-pve
done
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 5.4.124-1-pve /boot/vmlinuz-5.4.124-1-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.124-1-pve
Found initrd image: /boot/initrd.img-5.4.124-1-pve
Found linux image: /boot/vmlinuz-5.4.78-2-pve
Found initrd image: /boot/initrd.img-5.4.78-2-pve
Found linux image: /boot/vmlinuz-5.3.18-3-pve
Found initrd image: /boot/initrd.img-5.3.18-3-pve
Found linux image: /boot/vmlinuz-5.0.21-5-pve
Found initrd image: /boot/initrd.img-5.0.21-5-pve
Found linux image: /boot/vmlinuz-5.0.15-1-pve
Found initrd image: /boot/initrd.img-5.0.15-1-pve
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
done
root@pveetalon1:~#

root@pveetalon1:~# pveversion -v
proxmox-ve: 6.4-1 (running kernel: 5.4.124-1-pve)
pve-manager: 6.4-13 (running version: 6.4-13/9f411e79)
pve-kernel-5.4: 6.4-4
pve-kernel-helper: 6.4-4
pve-kernel-5.3: 6.1-6
pve-kernel-5.0: 6.0-11
pve-kernel-5.4.124-1-pve: 5.4.124-2
pve-kernel-5.4.78-2-pve: 5.4.78-2
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.0.21-5-pve: 5.0.21-10
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.1.2-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.20-pve1
libproxmox-acme-perl: 1.1.0
libproxmox-backup-qemu0: 1.1.0-1
libpve-access-control: 6.4-3
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.4-3
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-3
libpve-storage-perl: 6.4-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.6-2
lxcfs: 4.0.6-pve1
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.1.12-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.6-1
pve-cluster: 6.4-1
pve-container: 3.3-6
pve-docs: 6.4-2
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-4
pve-firmware: 3.2-4
pve-ha-manager: 3.1-1
pve-i18n: 2.3-1
pve-qemu-kvm: 5.2.0-6
pve-xtermjs: 4.7.0-3
qemu-server: 6.4-2
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.4-pve1


root@pveetalon1:~# proxmox-boot-tool status
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
B873-BAFF is configured with: grub
FDCB-6E7A is configured with: grub
 
Currently system booted from grub. I need boot it from EFI.
Currently there is no easy way to switch from a system booted in legacy mode to UEFI mode.

Options you have (from most clean and simple to more involved):
* Make a backup! (always!) and test it
then either
* Setup the system with the PVE ISO in UEFI mode - then restore from backup
* boot the pve 6.4. ISO in uefi mode - select the debug mode of the installer and:
** in the second debug shell simply run `proxmox-boot-tool init /dev/disk/by-uuid/B873-BAFF` (and the same for the other UUID) - this should install the kernel from the ISO on that disk and setup the systemd-boot loader
** try rebooting from the 2 ESPs

I have not tried the second procedure recently - so this is a bit of guess work - and might be missing a few necessary steps

as said in the beginning - make sure you have a working backup first!

I hope this helps!
 
  • Like
Reactions: Dmitrius7
* Make a backup! (always!) and test it
* Setup the system with the PVE ISO in UEFI mode - then restore from backup
What backup do you mean? Backup root / (proxmox os)? And then restore os?
 
What backup do you mean? Backup root / (proxmox os)? And then restore os?
everything you consider worth saving - and cannot reconstruct should something go wrong (or which will certainly be gone after you've reinstalled PVE)
 
  • Like
Reactions: Dmitrius7

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!