WIKI.9FRONT.ORG UNOFFICIAL MIRROR OF WIKI.A-B.XYZ

QEMU and OVMF

Don’t

BIOS works and is the preferred way to boot when using qemu.

Invocation

You must specify both the uefi executable itself along with the efi variable flash. The variable flash must be writable by the user running qemu, and it cannot be used by multiple virtual machines, so make a copy for each VM.

qemu-system-x86_64 \ -enable-kvm \ -M q35,accel=kvm \ -drive file=OVMF.fd,format=raw,if=pflash,unit=0 \ -drive file=OVMF_VARS_4M.fd,format=raw,if=pflash,unit=1 \ ....

Running

You will be unable to use the default ‘vesa’ monitor type. You may enter ‘none’ or set ‘monitor=none’ in plan9.ini when booting a terminal to keep the efi gop.