(aarch64) KVM Guest Installation Failure With romfile Error

When creating a KVM guest on an Arm platform, using the virt-install command, the installation can fail with the error:

failed to find romfile "efi-virtio.rom"

The efi-virtio.rom error is caused by virt-install generating a <rom/> element in the configuration without setting bar="off", which QEMU can't resolve on this platform. Preferably, set this value for the PCI virtio network device when you run virt-install:

virt-install \
--name=vm-name \
... \
--host-device pci_0000_03_00_0 --config-xml='<rom bar="off"/>'
... \

For an existing VM, use virsh edit to update the XML configuration for the VM. Find the <interface> section for the network device and add <rom bar='off'/> as a new line within the <interface> block.

Note:

This issue is specific to the QEMU version 10 and Libvirt version 12 Oracle Linux KVM stack.

(Bug 38642712)