I reproduced this using:
$ kvm -bios /usr/share/OVMF/OVMF_CODE.fd -device e1000,netdev=n1 -netdev user,id=n1,tftp=/boot/efi,bootfile=/EFI/ubuntu/grubx64.efi
and manually booting shim from the iPXE commandline which then tries to chainload grubx64.efi.
iPXE> boot tftp://10.0.2.2/EFI/boot/bootx64.efi tftp://10.0.2.2/EFI/boot/bootx64.efi... ok Fetching Netboot Image Malformed binary after Attribute Certificate Table datasize: 4194304 SumOfBytesHashed: 1103360 SecDir->Size: 1912 hashsize: 3089032 SecDir->VirtualAddress: 0x0010D600 Failed to load image: Invalid Parameter start_image() returned Invalid Parameter Could not boot: Error 0x7f048282 (http://ipxe.org/7f048282)
I reproduced this using:
$ kvm -bios /usr/share/ OVMF/OVMF_ CODE.fd -device e1000,netdev=n1 -netdev user,id= n1,tftp= /boot/efi, bootfile= /EFI/ubuntu/ grubx64. efi
and manually booting shim from the iPXE commandline which then tries to chainload grubx64.efi.
iPXE> boot tftp:// 10.0.2. 2/EFI/boot/ bootx64. efi 10.0.2. 2/EFI/boot/ bootx64. efi... ok >VirtualAddress : 0x0010D600 ipxe.org/ 7f048282)
tftp://
Fetching Netboot Image
Malformed binary after Attribute Certificate Table
datasize: 4194304 SumOfBytesHashed: 1103360 SecDir->Size: 1912
hashsize: 3089032 SecDir-
Failed to load image: Invalid Parameter
start_image() returned Invalid Parameter
Could not boot: Error 0x7f048282 (http://