shithub: wiki.9front.org

ref: 3a122db65db2b610ed73d41695606a12f2c0ceba
dir: /OVMF.md/

View raw version
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.