Missing file OVMF_CODE.secboot.fd after Update

Hi,

I am running a windows 11 virtual machine with GPU passthrough for almost two years now. The machine was configured with Virtual Machine Manager. It worked like a charm so far.

Unfortunatelly, after the last Update to version “ManjaroLinux 24.2.0 Yonada”, Virtual Machine Manager complains about a missing file named “/usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd” which is indeed missing.

The missing file ist referenced in the configuration like this:

  <os>
    <type arch="x86_64" machine="pc-q35-7.1">hvm</type>
    <loader readonly="yes" secure="yes" type="pflash">/usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd</loader>
    <nvram>/var/lib/libvirt/qemu/nvram/windows-11_VARS.fd</nvram>
    <boot dev="hd"/>
  </os>

Changing the path to use OVMF_CODE.secboot.4m.fd instead of OVMF_CODE.secboot.fd to did not work.

Unforunately I was not able to find anything useful on the web regardig this issue.

Any help would be highly appreciated.

Best regards,
Thomas

Would this be a KVM/QEMU instance?

There was one solution for Fedora:

qemu-img convert -f raw -O qcow2 WINDOWS10-EFI_VARS.fd WINDOWS10-EFI_VARS.qcow2
1 Like

It looks like you have already read and followed these, but just for reference purposes:

Hello Ben,

thanks for your reply. Sorry that I did not mention that die virtual machine is indeed a KVM/QEMU instance.

The command you suggested did not resolve my issue, hence you put me on the right track. After digging into the Link and doing some further research I came across a Thread on Reddit:

https://www.reddit.com/r/VFIO/comments/1gotpsb/missing_edkovmf_file_after_updating_arch_linux/

Basically, all I had to do was “update” the VARS file using a simple copy command:

cp /usr/share/edk2-ovmf/x64/OVMF_VARS.4m.fd /var/lib/libvirt/qemu/nvram/windows_11_VARS.fd
5 Likes

Hello Takakage,

I’ve marked your answer as solution because it provides more comprehensive information than the Reddit thread I linked to.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.