Hi, on Debian 11 are packages for this.
ovmf - UEFI firmware for 64-bit x86 virtual machines
ovmf-ia32 - UEFI firmware for 32-bit x86 virtual machines
qemu-efi-aarch64 - UEFI firmware for 64-bit ARM virtual machines
qemu-efi-arm - UEFI firmware for 32-bit ARM virtual machines
as long as virt-install says:
--boot uefi Configure the VM to boot from UEFI. In order for virt-install to know the correct UEFI parameters, libvirt needs to be advertising known UEFI binaries via domcapabilities XML, so this will likely only work if using properly configured distro packages.
I would say using switch “–boot uefi” is reasonable. If you can - update your packages…