1. To install OVMF on OL7 KVM host, e.g., OVMF-1.3.2-1.el7.noarch. # rpm -ql OVMF-1.3.2-1.el7.noarch /usr/share/OVMF /usr/share/OVMF/OVMF_CODE.pure-efi-debug.fd /usr/share/OVMF/OVMF_CODE.pure-efi.fd /usr/share/OVMF/OVMF_CODE.secboot-debug.fd /usr/share/OVMF/OVMF_CODE.secboot.fd /usr/share/OVMF/OVMF_VARS.fd /usr/share/OVMF/OVMF_VARS.pure-efi-debug.fd /usr/share/OVMF/OVMF_VARS.pure-efi.fd /usr/share/OVMF/OVMF_VARS.secboot-debug.fd /usr/share/OVMF/OVMF_VARS.secboot.fd /usr/share/OVMF/UefiShell.iso /usr/share/doc/OVMF/Licenses /usr/share/doc/OVMF/Licenses/OpensslLib-License.txt /usr/share/doc/OVMF/Licenses/OvmfPkg-License.txt /usr/share/doc/OVMF/Licenses/edk2-License.txt /usr/share/doc/OVMF/OVMF-ol7-changelog.txt /usr/share/doc/OVMF/README 2. Copy /usr/share/OVMF/OVMF_VARS.fd to local folder for per-VM use. 3. Run below QEMU command line to create boot image and install OL7 on UEFI-based VM. # qemu-img create -f qcow2 ol7-uefi.qcow2 20G # ./qemu-5.1.0/x86_64-softmmu/qemu-system-x86_64 -enable-kvm -smp 4 -m 3000M -vnc :7 \ -net nic -net user,hostfwd=tcp::5027-:22 \ -device virtio-scsi-pci,id=scsi0,num_queues=4 \ -device scsi-hd,drive=drive1,bus=scsi0.0,channel=0,scsi-id=0,lun=0 \ -drive file=ol7-uefi.qcow2,if=none,id=drive1 \ -drive file=/usr/share/OVMF/OVMF_CODE.pure-efi.fd,index=0,if=pflash,format=raw,readonly \ -drive file=OVMF_VARS.fd,index=1,if=pflash,format=raw,readonly \ -serial stdio \ -cdrom /home/zhang/img/iso/OracleLinux-R7-U7-Server-x86_64-dvd.iso -boot d 4. Once installation is finished, run VM with below QEMU command line. # ./qemu-5.1.0/x86_64-softmmu/qemu-system-x86_64 -enable-kvm -smp 4 -m 3000M -vnc :7 \ -net nic -net user,hostfwd=tcp::5027-:22 \ -device virtio-scsi-pci,id=scsi0,num_queues=4 \ -device scsi-hd,drive=drive1,bus=scsi0.0,channel=0,scsi-id=0,lun=0 \ -drive file=ol7-uefi.qcow2,if=none,id=drive1 \ -drive file=/usr/share/OVMF/OVMF_CODE.pure-efi.fd,index=0,if=pflash,format=raw,readonly \ -drive file=OVMF_VARS.fd,index=1,if=pflash,format=raw,readonly \ -serial stdio \ guest# ls /boot/efi/EFI/ BOOT redhat