2 qemu: out/main OVMF_CODE.fd OVMF_VARS.fd
3 # Based on https://wiki.osdev.org/UEFI#Emulation_with_QEMU_and_OVMF
4 qemu-system-x86_64 -cpu qemu64 \
5 -drive if=pflash,format=raw,unit=0,file=OVMF_CODE.fd,readonly=on \
6 -drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd \
8 -drive format=raw,file=fat:rw:out \
9 -display type=gtk,zoom-to-fit=on
11 # Assuming 'ovmf' package on Arch Linux is installed.
12 OVMF_CODE.fd: /usr/share/ovmf/x64/OVMF_CODE.fd
14 OVMF_VARS.fd: /usr/share/ovmf/x64/OVMF_VARS.fd