English Spanish
Using UEFI with QEMU
This page was automatically converted from https://fedoraproject.org/wiki/Using_UEFI_with_QEMU
Once you've fixed this page, remove this notice, and update [filename]`modules/ROOT/nav.adoc`.
Once the document is live, go to the original wiki page and replace its text with the following macro:
{{#fedoradocs: https://docs.fedoraproject.org/whatever-the-of-this-new-page}}
Firmware installation
UEFI for x86 QEMU/KVM VMs is called OVMF (Open Virtual Machine Firmware). It comes from EDK2 (EFI Development Kit), which is the UEFI reference implementation.
Installing 'UEFI for QEMU' from Fedora repos
Since June 2016, OVMF is available in Fedora repositories. All you need to have installed is `edk2-ovmf` RPM. Furthermore, it should be now a dependency of the package, so you probably have it installed already. This includes firmware for secureboot (`OVMF_CODE.secboot.fd`)
Installing 'UEFI for QEMU' nightly builds
Gerd Hoffmann, Red Hatter and QEMU developer, has a dnf repo on his personal site that provides nightly builds of a whole bunch of QEMU/KVM firmware, including EDK2/OVMF.
Here's how to pull down the nightly builds for x86:
` sudo dnf install dnf-plugins-core` + ` sudo dnf config-manager --add-repo `http://www.kraxel.org/repos/firmware.repo[`http://www.kraxel.org/repos/firmware.repo`] + ` sudo dnf install edk2.git-ovmf-x64`
Note, these are nightly builds, and may occasionally be broken.
Optionally Configure libvirtd to advertise UEFI support
Libvirt needs to know about UEFI->NVRAM config file mapping, so it can advertise it to tools like virt-manager/virt-install. On Fedora 22 and later, libvirt packages are configured to look for the nightly build paths, so this will work out of the box.
However, if you want to use custom binaries, you will need to edit the nvram variable in /etc/libvirt/qemu.conf and restart libvirtd.
Creating a VM
virt-manager
Create a new VM in virt-manager. When you get to the final page of the 'New VM' wizard, do the following: