Purpose of the EFI disk?

Agent92

New Member
Apr 1, 2019
4
0
1
32
After I made the mistake of detaching the EFI disk on one of my VM:s I noticed that it still works as usual. I can boot it and it still uses EUFI. That made me wonder what the purpose of the EFI disk is? I keep seeing in documentation that you need it in order to run OVMF but seems to work fine without it.

I also managed to setup a new CentOS machine using OVMF without an EFI disk.
 
What exactly do you mean by EFI disk?

Are you referring to the roughly ~500mb partition that mounts as /boot/efi
 
the efi disk contains the EFIVARS which also contains the boot order
if no efidisk is specified, there is a temporary given to the vm on each start of the vm
 
So there isn't really a big problem to remove a EFI disk and create a new one? I will have to recreate the boot order and perhaps some other things?
 
I don’t understand why I need a separate drive for efi vars. Oracle virtual box and KVM+qemu do not use it, everything works and so...
 
so, is it safe to remove it?

If I remove and find that I do need it after all, will I be able to re-attach it?
 
so, is it safe to remove it?
this depends on how your guest installs its boot loader... afaik windows puts the efi bootloader into $ESP/EFI/BOOTX64.efi (which is the default fallback path which should always work as a last resort)
but not all guest os' do this
e.g. debian puts it in $ESP/EFI/debian/..., and creates a efi boot entry; which is saved in the efivars
 
Thanks! I am glad I waited with removing it.

Do you happen to know what macOS does?

Bonus question: is the EFI disk necessary (irrespective of where the guest OS stores its EFIVARS, if the VM resides on its own dedicated passthrough raw disk? (Or would the EFIVARS then be stored on the raw disk?
 

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!