#[SOLVED] Booting the windows 11 installer ISO from GRUB

35 messages · Page 1 of 1 (latest)

summer heath
#

I would like to add the windows 11 installer ISO to the grub boot menu on a portable NVME drive to use a multi-tool USB of sorts. (yes I know ventoy exists but it's unclear how to use it as a bootloader and I would like to get grub working since I know it's possible)

I have spent the last two days trying and this is what I've figured out:

  1. I should boot GRUB in BIOS mode not UEFI mode to support the linux16 & initrd16 commands needed to load wimboot (currently not supported on mainline grub and I couldn't find any maintained forks). The NVME drive is less then 2TB so this works fine.

  2. It's unclear if wimboot supports booting directly from the unmodified Win11_24H2_EnglishInternational_x64.iso so files may need to be provided + newc:<stuff> may need to be added in the grub boot option.

  3. This my current boot script (see attached video for what happens when I try boot it)

menuentry "Windows 11 Install (BIOS)" {
    insmod part_gpt
    insmod fat
    insmod udf
    set isofile="/iso/Win11_24H2_EnglishInternational_x64.iso"
    loopback loop $isofile
    linux16 /wimboot/wimboot
    initrd16 \
    newc:bootmgr.exe:/wimboot/bootmgr.exe \
        newc:null.cfg:/wimboot/null.cfg \
        newc:winpeshl.ini:/wimboot/winpeshl.ini \
    newc:startup.bat.sdi:/wimboot/startup.bat \
        newc:boot.sdi:(loop)/boot/boot.sdi \
    newc:bcd:(loop)/boot/bcd \
        newc:boot.wim:(loop)/sources/boot.wim
    boot
}
  1. I have also managed to get into the "windows boot manager" once with the error 0xc000000f, I cannot seem to reproduce this.
  2. I have been testing with mainly with qemu but do test on bare metal too.
  3. grub->iPXE is technically an option but I don't think I want to do that because it requires putting files on the efi partition (which I want to keep small).

I am very lost so any help or insight would be appreciated. I've attached some auxiliary scripts and stuff that is references in the grub boot entry (that I store under /etc/grub.d/40_custom)

lapis bone
summer heath
lapis bone
summer heath
#

Kinda, I want to create a drive that 1: has a full arch operating system for me to use, 2. utilities like the windows installer I need to install windows on a machine

lapis bone
#

grub can boot isos, it's what ventoy uses to work

#

that way you have arch on an external drive, yet you can boot iso files

#

I recall some guides telling how to

summer heath
lapis bone
summer heath
# lapis bone I recall some guides telling how to

most guides are tailored towards linux ISOs which is a completely different process to getting the windows 11 installer to run. I have added other linux ISOs to grub before.

As for guides I found these two links:
https://rmprepusb.com/tutorials/145-install-windows-directly-from-an-iso-file-using-ipxe-wimboot-mbruefi-grub2grub4dos/
https://github.com/Thermionix/thermionix.github.com/blob/master/_posts/2014-08-14-grub2-wimboot-winpe.md
I have gotten as far as I have from those

lapis bone
cloud fulcrum
#

Ventoy + reserved space and then install linux in to that?

#

@summer heath

summer heath
cloud fulcrum
#

Maybe copy the efi file grub makes with --removable on to the ventoy partition?

#

Maybe some configuration can be manually added in to the ventoy grub

#

I'm checking

#

Ventoy is an open source tool to create bootable USB drive for ISO files. With ventoy, you don't need to format the disk again and again, you just need to copy the iso file to the USB drive and boot it.

#

Generate the grub config with grub-mkconfig, then copy the entries you want

summer heath
native juniperBOT
#

hm7 received a thank you cookie!

cloud fulcrum
#

if not then enable os-prober

summer heath
#

I should be able to figure it out, worst case I can manually add the entries

summer heath
#

Once again thanks

cloud fulcrum
#

You're welcome

#

... solved

cerulean narwhalBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you

summer heath
#

[Solved] Booting the windows 11 installer ISO from GRUB