Atom Feed
Comments Atom Feed

Similar Articles

2015-06-20 15:14
Home Lab Project: Network Bridges for KVM - NAT, Host-only, Isolated
2015-07-12 07:55
Home Lab Project: Kickstart
2015-07-12 14:17
Home Lab Project: Debian/Ubuntu Preseed
2015-08-01 21:13
Home Lab Project: Storage

Recent Articles

2019-07-28 16:35
git http with Nginx via Flask wsgi application (git4nginx)
2018-05-15 16:48
Raspberry Pi Camera, IR Lights and more
2017-04-23 14:21
Raspberry Pi SD Card Test
2017-04-07 10:54
DNS Firewall (blackhole malicious, like Pi-hole) with bind9
2017-03-28 13:07
Kubernetes to learn Part 4

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)



Note: Identity details will be stored in a cookie. Posts may not appear immediately