Missing "/usr/share/edk2-ovmf/OVMF_VARS.secboot.fd"


I have a problem with running lxd virtual machines:

$ lxc launch local:ubuntu/21.04 test
Creating test
Starting test
Error: Required EFI firmware settings file missing "/usr/share/edk2-ovmf/OVMF_VARS.secboot.fd"
Try `lxc info --show-log local:test` for more info
$ ls /usr/share/edk2-ovmf/
EnrollDefaultKeys.efi  OVMF_CODE.fd  OVMF_CODE.secboot.fd  OVMF_VARS.fd  Shell.efi  UefiShell.img

LXD version: 4.0.7
qemu version: 6.1.0
edk2-ovmf version: 202105-r1

Sounds like your distro doesn’t provide OVMF variables for secureboot.
Ideally you’d want to find a package which does provide that file, but alternatively, you can do lxc profile set default security.secureboot false to turn off secureboot for all VMs.