Migrated QEMU VM failed to start because OVMF_CODE.4MB.fd was not found on Debian Bookworm

,

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):

ln -s /usr/share/OVMF/OVMF_CODE_4M.fd /usr/share/OVMF/OVMF_CODE.4MB.fd

I wonder if I could have fixed this more robust somewhere in the config of the VM?

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.

1 Like

I gave it a try and - not surprisingly :wink: - it does the job:

incus config set dobby security.csm=true
incus config set dobby security.csm=false

And afterwards the VM starts up fine without the symlink described above.

Thanks!