I could successfully chainload grub from shim by using virtio-net and disabling iPXE. Minimal reproducer:
sudo kvm -bios /usr/share/OVMF/OVMF_CODE.fd -device virtio-net,netdev=n1 -netdev user,id=n1,tftp=/boot/efi/EFI/ubuntu,bootfile=shimx64.efi -global virtio-net-pci.romfile=""
if I remove the last option (which disables iPXE), it fails to boot again.
Building iPXE with CONFIG=qemu seems to be a fairly complicated affair. The build system is a mess.
I could successfully chainload grub from shim by using virtio-net and disabling iPXE. Minimal reproducer:
sudo kvm -bios /usr/share/ OVMF/OVMF_ CODE.fd -device virtio- net,netdev= n1 -netdev user,id= n1,tftp= /boot/efi/ EFI/ubuntu, bootfile= shimx64. efi -global virtio- net-pci. romfile= ""
if I remove the last option (which disables iPXE), it fails to boot again.
Building iPXE with CONFIG=qemu seems to be a fairly complicated affair. The build system is a mess.