<div dir="ltr">Regarding this issue, i have few updates i like to share:<div><br></div><div>this is the the script:</div><div><div>#!ipxe</div><div>dhcp</div><div>set username behrooz</div><div>set password behpass</div><div>set reverse-username behrooz</div><div>set reverse-password behpass</div><div>set initiator-iqn iqn.1993-08.org.debian:01:a87a0bc571c</div><div>set gateway 0.0.0.0</div><div>set keep-san 1</div><div><br></div><div>echo "SAN"</div><div>sanhook iscsi:10.10.0.111::::iqn.2003-01.org.linux-iscsi.vdi.x8664:sn.e5d7a4882dbf</div><div>echo "ISO"</div><div>sanboot --drive 0xe0 --no-describe <a href="http://10.10.0.235/Win7.iso">http://10.10.0.235/Win7.iso</a></div></div><div><br></div><div>and this is result of debug:</div><div><div>iPXE 1.0.0+ (b5e0b) -- Open Source Network Boot Firmware -- <a href="http://ipxe.org">http://ipxe.org</a></div><div>Features: DNS HTTP iSCSI TFTP AoE ELF MBOOT PXE bzImage Menu PXEXT</div><div>Configuring (net0 52:54:00:53:b7:d8)...... ok</div><div><a href="http://10.10.0.235/script.">http://10.10.0.235/script.</a>.. ok</div><div>Configuring (net0 52:54:00:53:b7:d8)...... ok</div><div>"SAN"</div><div>iSCSI 0x21ef4 initiator iqn.1993-08.org.debian:01:a87a0bc571c</div><div>iSCSI 0x21ef4 target 10.10.0.111 iqn.2003-01.org.linux-iscsi.vdi.x8664:sn.e5d7a4882dbf</div><div>iSCSI 0x21ef4 entering security negotiation</div><div>SCSI 0x22054 created for LUN 0000-0000-0000-0000</div><div>iSCSI 0x21ef4 handling AuthMethod=CHAP</div><div>iSCSI 0x21ef4 initiating CHAP authentication</div><div>iSCSI 0x21ef4 ignoring TargetAlias=LIO Target</div><div>iSCSI 0x21ef4 ignoring TargetPortalGroupTag=1</div><div>iSCSI 0x21ef4 entering security negotiation</div><div>iSCSI 0x21ef4 handling CHAP_A=5</div><div>iSCSI 0x21ef4 handling CHAP_I=1</div><div>iSCSI 0x21ef4 handling CHAP_C=0x11d05e679cc0fd623e7d515b59fd6e66</div><div>iSCSI 0x21ef4 sending CHAP response</div><div>iSCSI 0x21ef4 entering security negotiation</div><div>iSCSI 0x21ef4 handling CHAP_N=behrooz</div><div>iSCSI 0x21ef4 handling CHAP_R=0x1a8a1debb5060698914604606b0dd45e</div><div>iSCSI 0x21ef4 entering operational negotiation</div><div>iSCSI 0x21ef4 ignoring HeaderDigest=None</div><div>iSCSI 0x21ef4 ignoring DataDigest=None</div><div>iSCSI 0x21ef4 ignoring MaxConnections=1</div><div>iSCSI 0x21ef4 ignoring MaxRecvDataSegmentLength=262144</div><div>iSCSI 0x21ef4 ignoring MaxBurstLength=262144</div><div>iSCSI 0x21ef4 ignoring FirstBurstLength=65536</div><div>iSCSI 0x21ef4 ignoring DefaultTime2Wait=2</div><div>iSCSI 0x21ef4 ignoring DefaultTime2Retain=0</div><div>iSCSI 0x21ef4 ignoring MaxOutstandingR2T=1</div><div>iSCSI 0x21ef4 ignoring ErrorRecoveryLevel=0</div><div>iSCSI 0x21ef4 entering full feature phase</div><div>SCSI 0x22054 waiting for unit to become ready</div><div>SCSI 0x22054 unit is ready</div><div>INT13 drive 80 has signature 00000000</div><div>INT13 drive 80 (naturally 80) registered with C/H/S geometry 1024/255/63</div><div>INT13 drive 80 added to drive count: 1 HDDs, 0 FDDs</div><div>Registered SAN device 0x80</div><div>INT13 installed iBFT:</div><div>99341a60 : 69 42 46 54 84 02 00 00-01 86 46 45 4e 53 59 53 : iBFT......FENSYS</div><div>99341a70 : 69 50 58 45 00 00 00 00-00 00 00 00 00 00 00 00 : iPXE............</div><div>99341a80 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341a90 : 01 01 12 00 00 00 00 00-50 00 a0 00 80 01 00 00 : ........P.......</div><div>99341aa0 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341ab0 : 02 01 4a 00 00 03 00 00-00 00 00 00 00 00 00 00 : ..J.............</div><div>99341ac0 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341ad0 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341ae0 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341af0 : 00 00 00 00 00 00 25 00-00 02 00 00 00 00 00 00 : ......%.........</div><div>99341b00 : 03 01 66 00 00 03 00 00-00 00 00 00 00 00 00 00 : ..f.............</div><div>99341b10 : ff ff 0a 0a 00 da 14 03-00 00 00 00 00 00 00 00 : ................</div><div>99341b20 : 00 00 ff ff 0a 0a 01 01-00 00 00 00 00 00 00 00 : ................</div><div>99341b30 : 00 00 ff ff 0a 0a 01 01-00 00 00 00 00 00 00 00 : ................</div><div>99341b40 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341b50 : 00 00 ff ff 0a 0a 01 01-00 00 52 54 00 53 b7 d8 : ..........RT.S..</div><div>99341b60 : 18 00 07 00 26 02 00 00-00 00 00 00 00 00 00 00 : ....&...........</div><div>99341b70 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341b80 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341b90 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341ba0 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341bb0 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341bc0 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341bd0 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341be0 : 04 01 36 00 00 03 00 00-00 00 00 00 00 00 00 00 : ..6.............</div><div>99341bf0 : ff ff 0a 0a 00 6f bc 0c-00 00 00 00 00 00 00 00 : .....o..........</div><div>99341c00 : 02 00 35 00 2e 02 07 00-64 02 07 00 6c 02 07 00 : ..5.....d...l...</div><div>99341c10 : 74 02 07 00 7c 02 00 00-00 00 00 00 00 00 00 00 : t...|...........</div><div>99341c20 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341c30 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341c40 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341c50 : 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 : ................</div><div>99341c60 : 69 71 6e 2e 31 39 39 33-2d 30 38 2e 6f 72 67 2e : <a href="http://iqn.1993-08.org">iqn.1993-08.org</a>.</div><div>99341c70 : 64 65 62 69 61 6e 3a 30-31 3a 61 38 37 61 30 62 : debian:01:a87a0b</div><div>99341c80 : 63 35 37 31 63 00 64 69-61 6e 6f 6d 69 00 69 71 : <a href="http://c571c.dianomi.iq">c571c.dianomi.iq</a></div><div>99341c90 : 6e 2e 32 30 30 33 2d 30-31 2e 6f 72 67 2e 6c 69 : <a href="http://n.2003-01.org.li">n.2003-01.org.li</a></div><div>99341ca0 : 6e 75 78 2d 69 73 63 73-69 2e 76 64 69 2e 78 38 : nux-iscsi.vdi.x8</div><div>99341cb0 : 36 36 34 3a 73 6e 2e 65-35 64 37 61 34 38 38 32 : 664:sn.e5d7a4882</div><div>99341cc0 : 64 62 66 00 62 65 68 72-6f 6f 7a 00 62 65 68 70 : dbf.behrooz.behp</div><div>99341cd0 : 61 73 73 00 62 65 68 72-6f 6f 7a 00 62 65 68 70 : ass.behrooz.behp</div><div>99341ce0 : 61 73 73 00                                     : ass.            </div><div>"ISO"</div><div>INT13 drive e0 has an El Torito boot catalog at LBA 00000016</div><div>INT13 drive e0 (naturally 81) registered with C/H/S geometry 0/0/0</div><div>INT13 drive e0 added to drive count: 97 HDDs, 0 FDDs</div><div>Registered SAN device 0xe0</div><div>Booting from SAN device 0xe0</div><div><br></div><div>INT 13 drive e0 invalid blocksize (2048) for non-extended read/write</div><div>INT13,02 (e0) failed with status 01</div><div>INT13 drive e0 could not read MBR (status 0101)</div><div>INT13 drive e0 El Torito boot image at LBA 000002de (count 8)</div><div>INT13 drive e0 El Torito boot image loads at 07c0:0000</div><div>INT13 drive 80 cannot identify hardware device</div><div>INT13 drive 80 could not provide device path information: No such device (<a href="http://ipxe.org/2c85203b">http://ipxe.org/2c85203b</a>)</div><div>INT 13 drive 80 described using extended parameters:</div><div>30040000 : 1a 00 01 00 00 04 00 00-ff 00 00 00 3f 00 00 00 : ............?...</div><div>30040010 : 00 00 80 0c 00 00 00 00-00 02 ff ff ff ff       : ..............  </div><div><br></div></div><div>I think the issue here is the address of CDrom device, odd thing is it works perfectly fine without the first sanhook to iscsi line, tried 0x81 and 0xa0 as well.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">---<br>Armin ranjbar<br><div><br></div></div></div></div>
<br><div class="gmail_quote">On Sat, Dec 9, 2017 at 1:00 PM, Armin Ranjbar <span dir="ltr"><<a href="mailto:zoup@zoup.org" target="_blank">zoup@zoup.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello And thanks for IPXE,<div><br></div><div>goal is to attach SAN device and boot windows iso images. (using wimpe is not possible due to architectural limitations of the project) <br></div><div><br></div><div>this is my script:<div><div>#!ipxe</div><div>dhcp</div><div>echo "Adding SCSI"</div><div>set username behrooz</div><div>set password behpass</div><div><br></div><div>set keep-san 1</div><div>set initiator-iqn iqn.1993-08.org.debian:01:<wbr>a87a0bc571c</div><div>sanboot iscsi:10.10.0.111::::iqn.2003-<wbr>01.org.linux-iscsi.vdi.x8664:<wbr>sn.e5d7a4882dbf --keep</div><div>sanboot --drive 0x81 --no-describe <a href="http://10.10.0.235/win7.iso" target="_blank">http://10.10.0.235/win7.iso</a></div></div><div><br></div><div><br class="m_7678766160777481786gmail-Apple-interchange-newline">now problem is, windows boot manager starts and returns error 0xc0000225 (<a href="https://neosmart.net/wiki/0xc0000225/" target="_blank">https://neosmart.net/wiki/<wbr>0xc0000225/</a>)<br></div><div><br></div><div><div><br></div><div>Thanks :)<br clear="all"><div><div class="m_7678766160777481786gmail_signature"><div dir="ltr">---<br>Armin ranjbar<br><div><br></div></div></div></div>
</div></div></div></div>
</blockquote></div><br></div>