Grub2 + wimboot to boot .wim file in EFI mode - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Grub2 + wimboot to boot .wim file in EFI mode (/showthread.php?tid=8112) |
Grub2 + wimboot to boot .wim file in EFI mode - Ryan - 2016-06-30 04:47 Hi there, I am trying to boot.wim file using GRUB2 EFI + wimboot. The boot.wim file is extracted from Windows installation .ISO Before that I successfully boot boot.wim file using iPXE in both BIOS and EFI mode. Here is my script code: Code: kernel ${boot-url}/wimboot/wimboot gui pause iPXE BIOS iPXE EFI Then I converted the above code to use only GRUB2 and wimboot (without iPXE): Code: menuentry "Wimboot" { It boot fine in BIOS mode and show the same screenplay as it was in iPXE BIOS case. But in EFI mode, I only got black screen and never get into the setup menu. Since the screen was black, I did not get any notifications that wimboot is in EFI mode (In EFI mode, wimboot uses BOOTx64.efi instead of bootmgr.exe). So my questions are: 1. How to ensure that wimboot get into EFI mode? Does it need iPXE to get wimboot into EFI mode, or wimboot can alone doing that? 2. In my opinion, the first code runs in iPXE environment, the second code runs in GRUB2 environment which may cause the problem. But how to fix it? 3. As I understand, iPXE only support chainload in Network mode (script file must be load off the network). Could iPXE support chainload in local (script file in local disk)? i.e Code: chain /local-root/myscript.ipxe RE: Grub2 + wimboot to boot .wim file in EFI mode - mcb30 - 2016-07-04 11:41 [quote='Ryan' pid='12757' dateline='1467258443'] Code: menuentry "Wimboot" { That is a BIOS-only configuration. It will not work in UEFI. As far as I know, GRUB2 is not capable of supporting wimboot under UEFI. You will need to use iPXE to load wimboot directly (which you already have working). Quote:3. As I understand, iPXE only support chainload in Network mode (script file must be load off the network). Could iPXE support chainload in local (script file in local disk)? Yes, you can do that with iPXE in UEFI. Use the "file://" URI scheme to access local filesystems. See http://git.ipxe.org/ipxe.git/commitdiff/9913a40 for more details. Michael RE: Grub2 + wimboot to boot .wim file in EFI mode - Ryan - 2016-07-08 06:11 Quote:Yes, you can do that with iPXE in UEFI. Use the "file://" URI scheme to access local filesystems. See http://git.ipxe.org/ipxe.git/commitdiff/9913a40 for more details. Thank you for your answer. I tried but could not figure it out. From Grub2 on local disk, I chainload the ipxe.efi Code: menuentry "chainloader EFI"{ Could you let me know how to make to work? RE: Grub2 + wimboot to boot .wim file in EFI mode - mcb30 - 2016-07-08 08:34 (2016-07-08 06:11)Ryan Wrote: Could you let me know how to make to work? Is the filesystem in question accessible as an EFI_SIMPLE_FILE_SYSTEM_PROTOCOL? You can test this by starting the UEFI shell (not the iPXE shell). The "map" command will show you the filesystems that UEFI itself can access. Michael |