UEFI Firmware

To make it possible to use UEFI firmware in kvm vms you would need:

sudo pacman -S ovmf qemu-block-iscsi
sudo tee -a /etc/libvirt/qemu.conf << EOF

nvram = [


You want to restart libvirtd after this configuration happened.

Create Qcow2 Disk Image

qemu-img create -f qcow2 /data/scratch/disks/disk.qcow2 10G

Mount Qcow2

sudo modprobe nbd max_part=8
sudo qemu-nbd --connect=/dev/nbd0 /data/scratch/disks/disk.qcow2

Once you are done with that device:

# qemu-nbd --disconnect /dev/nbd0