I think it would be best if you would play around and figure out which pxegrub2 template suits you best.
I suspect the majority of your issues stem from a lack of familiarity with Foreman provisioning in general.
Please take a look at our guide Provisioning Guide
Go through the overviews, go through the higher level concepts. Ensure everything is clear for you about provisioning in Foreman. A lot of the time, users find that once they have gone through everything, tested locally, things just start working. It’s hard to tell what we don’t know sometimes.
We have another guide where we have explanations of template syntax if you have trouble understanding it: Managing Hosts
Having a good understanding of the syntax will let you determine which template you need.
If you would like to look at additional Foreman training, we have some links to resources here: Foreman :: Training
If you need to move faster than you have time to invest in self-knowledge, perhaps availing of some professional services might be the best option for you: Foreman :: Professional Services
when I install windows operatingsystem,I can’t found bootmgfw.efi.
The virtual machine reports that
error: invalid magic number.error: you need to load the kernal first
I only find BOOTX64.EFI in /boot/efi/EFI/BOOT