Vagrant box rockylinux/8 v7.0.0 with libvirt provider fails to boot

REF:

  • loader - Sets path to custom UEFI loader.

I came across Support UEFI boot in ibvirt-manager that mentions edk2-ovmf which should be installed on the hypervisor host. Setting loader value to /usr/share/OVMF/OVMF_CODE.fd got the box to boot.

e.g.

  config.vm.provider "libvirt" do |domain|
    domain.loader = "/usr/share/OVMF/OVMF_CODE.fd"
  end

Thanks for the hint.