ref: 4505f10cf5232db91219ac69205dbdc9722b7ea0
dir: /OVMF.md/
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 later of which may be
written to by the guest operating system as a word of caution.
```
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.