After migration to Incus from LXD via the lxd-to-incus tool, a VM failed to start up with the following error:
qemu-system-x86_64:/run/incus/XXX/qemu.conf:46: Could not open '/usr/share/OVMF/OVMF_CODE.4MB.fd': No such file or directory
The host system is Debian Bookworm, Incus was installed via Bookworm backports. I worked around the issue via (notice the slight difference ‘_’ vs ‘.’ in the filename):
One trick you could have used is to set security.csm=true and then unset it.
That should result in the firmware tracking for the instance to get reset.
Ah right, when moving from the distro packages over to the Zabbly one, there’s a good chance that you need to go through:
incus stop NAME
incus config set NAME security.secureboot=false
incus config unset NAME security.secureboot
incus start NAME
Basically the reason for it is that each VM keeps a reference to what firmware was used to generate its NVRAM as switching firmware may lead to unreadable NVRAM causing firmware settings to be lost. The issue in your case is that the file that the firmware file the VM is looking for no longer exists on your system as that was the one provided by Debian’s ovmf/edk2 package which got removed when you switched over to the Zabbly package.