Hmm could be. My VM OS is Ubuntu 16.04 LTS and root is on a LVM . I have separate boot partition and under EFI folder I have only ubuntu\grubx64.efi and not bootx64.efi. Strange thing is that that VM is booting without issues on KVM host , here is output from efibootmgr:
sudo efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0005
Boot0000* ubuntu HD(1,GPT,ce89234c-404a-446d-84cc-b4c0639a3cba,0x800,0xf3ffe)/File(\EFI\ubuntu\grubx64.efi)
Boot0005* EFI Internal Shell MemoryMapped(11,0x900000,0x11fffff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Here is output from EFI Shell on LXD host:
Shell> map -r
Mapping table
FS0: Alias(s):HD0a1b:;BLK1:
PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)/HD(1,GPT,CE89234C-404A-446D-84CC-B4C0639A3CBA,0x800,0xF3FFE)
BLK0: Alias(s):
PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)
BLK2: Alias(s):
PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/Scsi(0x0,0x1)/HD(5,GPT,C00617FC-BAD8-4A84-AC69-AFAC1BBB8DB3,0xF4800,0xC70B000)
FS0:\> ls
Directory of: FS0:\
04/07/2023 11:36 <DIR> 8,192 EFI
0 File(s) 0 bytes
1 Dir(s)
FS0:\> cd EFI
FS0:\EFI\> ls
Directory of: FS0:\EFI\
04/07/2023 11:36 <DIR> 8,192 .
04/07/2023 11:36 <DIR> 0 ..
04/08/2023 11:09 <DIR> 8,192 ubuntu
0 File(s) 0 bytes
3 Dir(s)
FS0:\EFI\> cd ubuntu
FS0:\EFI\ubuntu\> ls
Directory of: FS0:\EFI\ubuntu\
04/07/2023 11:36 <DIR> 8,192 .
04/07/2023 11:36 <DIR> 8,192 ..
04/08/2023 11:33 201 grub.cfg
04/08/2023 11:33 1,709,952 grubx64.efi
2 File(s) 1,710,153 bytes
2 Dir(s)
FS0:\EFI\ubuntu\>
When I try to just boot grubx64.efi VM just stuck on black screen and nothing happens.
Should I try somehow to “re-build” bootx64.efi file on original VM and re-transffer to LXD again?