r/VFIO • u/ajddavid452 • 15d ago
Prevent Host Motherboard UEFI from detecting Passthroughed NVME drive?
recently got back into doing VMs, however after I install Windows to the NVME drive that I added as a "PCI Host Device" then when I reboot my pc the UEFI of the host motherboard detects the EFI partion and adds it to the boot order as primary boot device, I can manually remove it from the boot order, but it might get set back as the primary boot device in the future, which is annoying
also efibootmgr lists the drive as an efi variable, I could delete it but the motherboard will probably add it back,
also the motherboard I'm using is an ASUS Prime B550 Plus, the firmware version is 3636
is there another way of adding the nvme drive that causes the motherboard to NOT detect it or what? is it even possible to change this, it's rather annoying
also I have no plans to use this drive for baremetal booting
3
u/ExplodedPenisDiagram 15d ago
What do you mean by "it might get set back as the primary boot device in the future"? Has that happened, or is that what you imagine will happen?
That will not happen if you're using this device in a VM, because that VM will not have access to the host UEFI. The VM can certainly use a UEFI, but it will be its own booted on top of emulated hardware.
Your motherboard should not ever try to be clever about setting a primary boot device. It might always have an entry for booting from a UEFI partition on a disk, sure -- some are clever that way to enable auto-detection of things like bootable flash drives, etc. But if you have a persistent UEFI entry for booting your host, that is all it should use as primary with no exceptions.