[ipxe-devel] Unable to use pxelinux's sanboot.c32 or gpxecmd.c32 to boot iscsi target with chap

Michael Brown mbrown at fensystems.co.uk
Mon Nov 21 16:23:29 UTC 2011

On Saturday 19 Nov 2011 04:29:29 Chee-Yang Chau wrote:
> I compile latest undionly.kpxe from latest ipxe source. I attempt to
> boot a iscsi target with chap secret using:
> iPXE> dhcp net0
> iPXE> set username = user1
> iPXE> set password = password
> iPXE> sanboot iscsi:
> The machine boot properly from iscsi target.
> Next, I try to chain load the ipxe from pxelinux:
> LABEL ipxekernel undionly.0
> and boot the following script via dhcp (using the infinite loop
> prevention method):
> #!ipxe
> dhcp net0
> set 190:string user1
> set 191:string password
> set 209:string menu.cfg
> chain pxelinux.0

You're using the wrong setting in your script: your first (working) example 
uses "username" and "password", but your second (broken) example uses 
"190:string" and "191:string".  Use "username" and "password" and everything 
should be fine.

(The username setting is actually 175.190 and password is 175.191  It would  
work to use "175.190:string" instead of "username", but you may as well use 
the more meaningful "username".)


More information about the ipxe-devel mailing list