PXE boot Windows on iSCSI

beers

Moderator
Staff member
I finally got around to playing with iSCSI, pretty easy to set up and use.

I was hoping to take it to the next level with a diskless client using a lun as a boot disk.

Is anyone familiar with deploying a setup like this? PXE always looks like a pain in the rear to me..

Thanks
 

Cromewell

Administrator
Staff member
I've not actually done this, but this script looks like it should work. I've PXEd to local disk though. You need windows 2003 or newer for iscsi targets.

Code:
#!ipxe

echo iscsi.ipxe script running...
ifopen net0
dhcp
set net0/gateway 0.0.0.0
echo IP: ${net0/ip}, Gateway: ${net0/gateway}
set net0/keep-san 1
echo keep-san: ${net0/keep-san}
sanboot iscsi:<server IP>::::iqn.1991-05.com.microsoft:<server name>-win10-client1-target ||
sanboot iscsi:<server IP>::::iqn.1991-05.com.microsoft:<server name>-win10-install-target
 
Top