Atom Feed
Comments Atom Feed


Recent Articles

15/05/2018 16:48
Raspberry Pi Camera, IR Lights and more
23/04/2017 14:21
Raspberry Pi SD Card Test
07/04/2017 10:54
DNS Firewall (blackhole malicious, like Pi-hole) with bind9
28/03/2017 13:07
Kubernetes to learn Part 4
23/03/2017 16:09
Kubernetes to learn Part 3

Glen Pitt-Pladdy :: Blog

Home Lab Project: EFI Boot with KVM and libvirt in Debian Jessie

In some cases I want to test EFI booting with KVM and libvirt, however out the box it isn't capable. Also virt-manager 1.0.1 that ships with Debian Jessie isn't EFI aware so a few manual tweaks are needed.

Getting UEFI firmware

There is an Open Source firmware shipped - simply install the ovmf package

# apt-get install ovmf

Setting up

Since virt-manager doesn't have EFI awareness, we've got to manually tweak the config of a VM for this to work. Edit the the .xml describing the VM, for example  "virsh edit SomeVirtualMachine"

In the .xml find the <os> section and add a <loader> tag something like this:

    <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
    <bootmenu enable='no'/>
    <loader readonly='yes' type='rom'>/usr/share/qemu/OVMF.fd</loader>

You should now have an EFI capable VM - on the next boot you should see TianoCore running:

KVM booting on UFEI (TianoCore)



Are you human? (reduces spam)
Note: Identity details will be stored in a cookie. Posts may not appear immediately