<html xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"><head><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body vlink="purple" link="blue" lang="EN-US"><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hello Thiago,<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I believe that you can set iSCSI username and password info via DHCP using encapsulated options.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">A quick reference to many of them and how they’re defined in dhcpd is located here: </span><a href="http://etherboot.org/wiki/dhcpd">http://etherboot.org/wiki/dhcpd</a><o:p></o:p></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I <i>think</i> the options you want to set are the “username” and “password” strings, perhaps like:<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal">host teste {<o:p></o:p></p><p class="MsoNormal">hardware ethernet 00:0c:29:98:12:ca;<o:p></o:p></p><p class="MsoNormal">option subnet-mask 255.255.255.0;<o:p></o:p></p><p class="MsoNormal">fixed-address 192.168.2.33;<o:p></o:p></p><p class="MsoNormal">option root-path "iscsi:192.168.2.2::::iqn.2009-6.com.dkxja:storage01.disk1";<o:p></o:p></p><p class="MsoNormal">option username “myusername”;<o:p></o:p></p><p class="MsoNormal">option password “mypassword”;<o:p></o:p></p><p class="MsoNormal">}<o:p></o:p></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I could be wrong about that, as I’ve used dhcpd very little, and iscsi credentials even less, but from what I recall that <i>should</i> be doable, even if my information is a little off!<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best of luck to you.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Cheers,<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Andrew Bobulsky<o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Thiago Vinhas [mailto:thiago@vinhas.org] <br><b>Sent:</b> Wednesday, September 29, 2010 4:10 PM<br><b>To:</b> etherboot-discuss@lists.sourceforge.net<br><b>Subject:</b> [Etherboot-discuss] iSCSI Login/Password on root-path<o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Hi there,<o:p></o:p></p><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal">I could successfully boot with gPXE on my iscsi storage perfectly. But when I set the username/password option on iscsi, I get an "access denied" error on boot.<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal">Is there any way to add the user/pass information on the dhcp server? Here is how my conf is:<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><div><p class="MsoNormal">host teste {<o:p></o:p></p></div><div><p class="MsoNormal">hardware ethernet 00:0c:29:98:12:ca;<o:p></o:p></p></div><div><p class="MsoNormal">option subnet-mask 255.255.255.0;<o:p></o:p></p></div><div><p class="MsoNormal">fixed-address 192.168.2.33;<o:p></o:p></p></div><div><p class="MsoNormal">option root-path "iscsi:192.168.2.2::::iqn.2009-6.com.dkxja:storage01.disk1";<o:p></o:p></p></div><div><p class="MsoNormal">}<o:p></o:p></p></div></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal"><br clear="all">Thanks for your help!<br>Thiago Vinhas<o:p></o:p></p></div></div></body></html>