iPXE discussion forum
Problem connecting to iSCSI target - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Problem connecting to iSCSI target (/showthread.php?tid=1026)



Problem connecting to MS ISCSI Target volume - tkircht - 2011-10-19 13:59

This is probably a stupid newbie problem, but I'm stuck anyway, so perhaps someone can point me to the right direction...

I am trying to mount an iSCSI-volume located on a windows Server (192.168.1.6/HYVE03). I am using an iPXE USB stick I created as per instructions.
I am using a machine that has a disk with windows 7 attached so I tried to acces the volume using MS iSCSI Initiator using the iqn:
iqn.1991-05.com.microsoft:hyve03-lnx-test-target

This way I could connect and use that volume.

Then I started the same machine from the iPXE-USB stick and did:
iPXE> dhcp
DHCP (net0 .......).....ok
iPXE> sanhook iscsi:192.168.1.6:::0:iqn.1991-05.com.microsoft:hyve03-lnx-test-target
Could not open SAN device: No such device (http://....)

I am not using any PAP/CHAP authentication and I am using the IP-address as initiator name in the iSCSI target definition.
I used the config-command to make sure I get proper IP-information. I even tried setting the root path option in dhcp - I get that information on the iPXE client but I still cannot boot.

Any ideas what I am doing wrong here??


Thanks

Thomas


sanhook - dpuckett - 2011-10-20 03:39

I have my boot_script.php as this.

Code:
#!ipxe
dhcp net0
sanhook iscsi:192.168.162.100::::iqn.2011-03.freenas.org.istgt:iscsiboot

But it does not connect the SAN device.

If I hit CTL-B from iPXE and manually type the commands it fails with "Could not open SAN device: connection timed out"

Am I missing something in the script? Does typing maually act differently?

Thanks



EDIT: Wow. I almost made sense. Please disregard my gibberish. I found MY error and everything is working.


RE: sanhook - robinsmidsrod - 2011-10-24 08:54

Are you sure that you have allowed ipxe (with its initiator-iqn) to actually connect to the iSCSI target? First verify that you can connect to it with another client (e.g. Microsoft iSCSI client). Then you need to ensure the target is available for the specific initiator-iqn ipxe sends out. It is org.ipxe.something... I think you can find out the exact one by using the config command in ipxe shell. You can also do a wireshark trace and see the initiator-iqn used in the packet.

If all this fails, you might've found a bug that stops it from working. I'm going to assume that booting normal boot images works as expected?