QEMU/Virt manager efi problems

Well it seems the last qemu update broke the Windows 11 VM on one of my machines and now it tells me it can’t find compatible efi. Any ideas how to fix this on an Arch system:

Error starting domain: operation failed: Unable to find 'efi' firmware that is compatible with the current configuration

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/usr/lib/python3.12/site-packages/libvirt.py", line 1379, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: operation failed: Unable to find 'efi' firmware that is compatible with the current configuration

Yes, just run sudo virsh edit [VM NAME] and change these lines:

/usr/share/edk2/x64/OVMF_CODE.fd -> /usr/share/edk2/x64/OVMF_CODE.4m.fd
/usr/share/edk2/x64/OVMF_VARS.fd -> /usr/share/edk2/x64/OVMF_VARS.4m.fd

(add “4m.”)

That should to the trick.

For reference: Recent update broke virtualization: "Unable to find 'efi' firmware" / Applications & Desktop Environments / Arch Linux Forums

3 Likes

Awesome, thanks.

2 Likes