iPXE discussion forum

Full Version: No disks when booting windows 7 setup (x86/x64) from an iSCSI target
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to run the windows setup from an iSCSI target, the target is a NTFS with all the files from the ISO file just like a bootable usb stick.
Booting the setup works fine (but stays very long at the "Stating Windows" screen) with virtualbox but there are no disks available to install on.

OpenWRT (DHCP) > server.lan (debian, tftp, iscsi) > iPXE (undionly.kpxe) > Windows setup

ietd.conf
Code:
Target iqn.2014-11.lan.server:windows_7_sp1_en_x86
    Lun 0 Path=/srv/iscsi/windows_7_sp1_en_x86.iscsi,Type=fileio,IOMode=ro

Target iqn.2014-11.lan.server:windows_7_sp1_en_x64
    Lun 0 Path=/srv/iscsi/windows_7_sp1_en_x64.iscsi,Type=fileio,IOMode=ro

iPXE
Code:
:w7x86
set netX/gateway ${iscsi-server}
sanhook ${iscsi-url}:iqn.2014-11.lan.server:windows_7_sp1_en_x86 || goto failed
sanboot --no-describe

:w7x64
set netX/gateway ${iscsi-server}
sanhook ${iscsi-url}:iqn.2014-11.lan.server:windows_7_sp1_en_x64 || goto failed
sanboot --no-describe

This is the error I get
http://www.mediafire.com/view/x3owbwk6q7..._disks.png

What is the right way to boot the setup from an iSCSI target?
If you want to boot directly from the iSCSI volume you should use this code:
Code:
set netX/gateway ${iscsi-server}
sanboot ${iscsi-url}:iqn.2014-11.lan.server:windows_7_sp1_en_x86 || goto failed
If that volume is an ISO of the Windows installer DVD you won't be able to complete, because it's like you having a machine with only a DVDROM and no HDD. Unfortunately iPXE can only hook one iSCSI volume at a time, so you'll need to hook the iSCSI HDD volume you want to install to and load the windows installer files via a network share (e.g. samba) and boot the installer using the tutorial at http://ipxe.org/howto/winpe.
Reference URL's