In order to use QEMU with UEFI on Ubuntu first install OVMF:
sudo apt -y install ovmf
After that, use the -bios /usr/share/ovmf/OVMF.fd
with QEMU, for example:
sudo qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -hda /dev/sdb -m 1024
In order to use QEMU with UEFI on Ubuntu first install OVMF:
sudo apt -y install ovmf
After that, use the -bios /usr/share/ovmf/OVMF.fd
with QEMU, for example:
sudo qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -hda /dev/sdb -m 1024
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow