Return to Level1Techs.com

[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 reload libvirtd

The problem is fixed.