[Solved] OVMF LinuxArch/Mandjaro OVMF UEFI not available in virt-manager

Since a few weeks, I can not create any VM using OVMF UEFI,
I can only see in virt-manager:

  • Custom: /usr/share/qemu/edk2-x86_64-secure-code.fd
  • Custom: /usr/share/qemu/edk2-x86_64-code.fd

/etc/libvirt/qemu.conf
constains:

nvram = [
    "/usr/share/ovmf/x64/OVMF_CODE.fd:/usr/share/ovmf/x64/OVMF_VARS.fd"
]

So it should Works.


solution

My issue was the same as this one

Following Issue 64175

Adding the file /usr/share/qemu/firmware/60-ovmf-x86_64.json

containing:

{
    "description": "UEFI OVMF firmware for x86_64",
    "interface-types": [
        "uefi"
    ],
    "mapping": {
        "device": "flash",
        "executable": {
            "filename": "/usr/share/ovmf/x64/OVMF_CODE.fd",
            "format": "raw"
        },
        "nvram-template": {
            "filename": "/usr/share/ovmf/x64/OVMF_VARS.fd",
            "format": "raw"
        }
    },
    "targets": [
        {
            "architecture": "x86_64",
            "machines": [
                "pc-i440fx-*",
                "pc-q35-*"
            ]
        }
    ],
    "features": [
        "acpi-s3",
        "amd-sev",
        "verbose-dynamic"
    ],
    "tags": [
    ]
}

then
systemctl restart libvirtd
(reload is not supported thx for the notice itoffshore)

The problem is fixed.

2 Likes

I needed to:

systemctl restart libvirtd

(& not reload) - for UEFI firmware to be detected by virt-manager

I also needed to add to the <os> section:

  <os>
      .....
    <nvram template="/usr/share/ovmf/x64/OVMF_VARS.fd">/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
      .....
  </os>

This fixes the error message:

unable to find any master var store for loader: /usr/share/ovmf/x64/OVMF_CODE.fd