The usage of OVMF in QEMU
Notes about the usage of OVMF in QEMU.
Case1
1 | -bios /path/to/OVMF.fd \ |
Case2: split firmware
The variable store and the firmware executable are also available in the build output as separate files: “OVMF_VARS.fd” and “OVMF_CODE.fd”. This enables central management and updates of the firmware executable, while each virtual machine can retain its own variable store.
1 | -drive if=pflash,format=raw,unit=0,readonly=on,file=/path/to/OVMF_CODE.fd \ |
Case3: secure boot
1 | -drive if=pflash,format=raw,unit=0,readonly=on,file=/path/to/OVMF_SECURE_CODE.fd \ |
参考资料: