Skip to content

jakelmg/windows-diskless-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

windows-diskless-boot

Some scripts for diskless booting windows 11 via iSCSI and iPXE based on my experiences doing so for a LinusTechTips video. We got to the stage of getting it working, and spent some time tuning, but as of this stage, performance was not great so I wouldn't recommend it. However, it did work with the latest Windows 11 build (23H2)

Things you'll need to get this to work:

  • Build a WinPE image with drivers for your clients NIC(s) baked in
  • Build an iPXE image with an embedded script to break the iPXE chain OR use some fancy DHCP config to do the same (embed.ipxe is an example embedded script)
  • To install Windows: Something to host the WinPE files on (a web, or tftp server)
  • To install Windows: An SMB share or USB stick plugged into the client computer with Windows install files on it
  • Something to host your iPXE scripts on (a web, or tftp server)
  • A computer with a NIC that can handle iPXE sanbooting (Aquantia/Marvell 10G ones don't work at all. Realtek 2.5G works. Mellanox ConnectX works. Intel X540 works.
  • Optional: a PHP enabled web server to direct clients to a specific iSCSI target based on their MAC address (useful if you have multiple clients)

BIOS stuff:

  • Enable Network Stack ("IPv4 PXE" it's commonly called)
  • Enable CSM (some BIOS wont allow/show the PXE setting above until CSM is enabled)
  • Under CSM, set Network booting to UEFI/EFI only for Windows 11 ideally.

Random stuff:

  • Use a 512 sector size if you're booting LEGACY, 4k will not work
  • A dedicated NIC / network for iSCSI using jumbo frames is strongly recommended

Additional resources:

iPXE: https://ipxe.org/

WinPE Image Builder: https://github.com/cmartinezone/WinPEBuilder (automatically includes the packages needed) How to add drivers to WinPE image: https://forums.ivanti.com/s/article/How-To-Use-DISM-to-Manually-Inject-Drivers-into-the-Boot-wim?language=en_US

How to disable page file (if experiencing IRQ NOT LESS THAN EQUAL BSOD):

  • In regedit, load hive \Windows\system32\config\system under HKEY_LOCAL_MACHINE
  • Within the loaded hive, locate the PagingFiles key under \SYSTEM\ControlSet001\Control\Session Manager\Memory Management and blank the string.
  • Unload the hive.

About

Some scripts for diskless booting windows 11 via iSCSI and iPXE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages