QEMU UEFI Support (OVMF)
- Open Virtual Machine Firmware (OVMF)GitHub 文件tianocore/edk2/OvmfPkg/README#L62
- Ubuntu UEFI/OVMF链接wiki.ubuntu.com/UEFI/OVMFOpen Virtual Machine Firmware (OVMF) · Ubuntu UEFI/OVMF · Debian SecureBoot/VirtualMachine · Kraxel Repos · Use to specify the OVMF firmware.笔记:QEMU UEFI Support (OVMF)
- Debian SecureBoot/VirtualMachine
- Kraxel Repos
Installation (Alpine Linux)
apk add ovmf
# From edge community
# apk add ovmf -X https://mirrors.aliyun.com/alpine/edge/community/
# Manual Download
curl -O https://mirrors.aliyun.com/alpine/edge/community/x86_64/ovmf-0.0.201908-r1.apk
# Extract bios.binUsage
Use -bios to specify the OVMF firmware.
# Basic usage
qemu-system-x86_64 -bios /usr/share/ovmf/bios.bin
# macOS (HVF acceleration)
qemu-system-x86_64 -accel hvf -m 4G -smp 2 \
-net nic -nic user,hostfwd=tcp::2222-:22 \
-drive file=disk.qcow2,if=virtio \
-serial stdio -display cocoa -bios bios.bin
# KVM
qemu-system-x86_64 -accel kvm -m 4G -smp 2 \
-net nic -nic user,hostfwd=tcp::2222-:22 \
-drive file=disk.qcow2,if=virtio \
-serial stdio -bios /usr/share/ovmf/bios.bin -vnc :10[!TIP] Use
-L .to tell QEMU to look forbios.binin the current directory.
Troubleshooting
- No Bootable Disk: Use UEFI Shell.
- Commands:
diskpart,wmic diskdrive.
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub1 条
- tianocore/edk2/OvmfPkg/README#L62github.com/tianocore/edk2/blob/master/OvmfPkg/README
其他外链3 条
- wiki.debian.org/SecureBoot/VirtualMachinewiki.debian.org/SecureBoot/VirtualMachine
- wiki.ubuntu.com/UEFI/OVMFwiki.ubuntu.com/UEFI/OVMF
- www.kraxel.org/reposwww.kraxel.org/repos