I want to do it because I want to install Windows 7 and my BIOS menu doesn't appear; it skips to grub2 menu at start, but that's another story... Is there a way to boot the Windows 7 installation iso directly from grub2?
Yeah, you'd think something like this would work:
But Windows will just balk at that.
If you happen to have at least 4GB RAM, you can opt to load the whole DVD iso in memdisk and boot off that. To do that, download SysLinux and extract the
However, I'm not going to even test the code, as putting 3+ GB of data into RAM is just plain wrong (from an idealogical standpoint). No, I really wanted what you want, but in the end I put the Windows install on a partition on a USB using the Windows 7 USB/DVD download tool and chainloaded to that. Sorry there doesn't seem to be any other way that I can see.
Booting the actual ISO with grub legacy or grub2 probably won't work, but with older windows versions (i.e. XP) it was possible to unpack the i386 folder from the ISO to the USB stick, and then use grub4dos to call the bootloader:
I didn't test it with newer windows versions or with newer hardware.
With grub2 apparently something like this could work, again untested:
Option A assumes your bootable USB stick/HDD is the first device and has a msdos style partition table. Adjust to match your configuration. If your boot device has a GPT partition table, then most likely you'll need to use
Option B uses the drive's unique UUID, which can be seen on Linux with
Update: a working entry for grub2 with the files from the installer DVD unpacked to the root directory of a USB stick formatted MBR/FAT32:
Technically installing from windows's
So you need to extract/copy the content of