<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY >
<DIV><FONT 
style="FONT-WEIGHT: normal; FONT-SIZE: 12pt; COLOR: #000000; FONT-STYLE: normal; FONT-FAMILY: MS Sans Serif">
<DIV>Collin, </DIV>
<DIV>   Thanks for your reply.</DIV>
<DIV>   I would love to use dhcp, this would solve all my 
problems but IBM prevents me from doing that. They do not pass dhcp requests 
thru the site bridges/gateways/routes so I would have to have a dhcp server on 
each subnet that contained victims to install. I have 5 servers in</DIV>
<DIV>Austin, one in Rochester, Mn and one in Poughkeepsie, NY and they install 
100's of systems</DIV>
<DIV>a week on many different subnets. </DIV>
<DIV> </DIV>
<DIV>   I did not realize that the installer and kernel couldn't 
even agree on which nic was eth0.</DIV>
<DIV>Thats all the more need for anacondo and the netboot.img to deal with mac 
addresses.</DIV>
<DIV> </DIV>
<DIV>You don't happen to be an anaconda coder do you?</DIV>
<DIV> </DIV>
<DIV>thanks</DIV>
<DIV>tom</DIV>
<DIV> </DIV></FONT>
<DIV><I>Monday, August 21, 2006 7:51 PM<BR>To: "Discussion list about Kickstart" 
<kickstart-list@redhat.com><BR>cc: <BR>From: "Coe, Colin C." 
<Colin.Coe@woodside.com.au><BR>Subject: RE: Anaconda kickstart options and 
lowlevel netboot.img input   options.</I><BR><BR></DIV></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=578204200-22082006>If you 
know the MAC addr, could you use a DHCP server with an entry for each LPAR you 
want to install?  Something like:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=578204200-22082006>allow 
booting;<BR>allow bootp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006> </DIV></SPAN></FONT><FONT face=Arial 
color=#0000ff size=2></FONT>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=578204200-22082006>group 
{<BR>        
subnet 9.3.22.0 netmask 255.255.255.0 
{<BR>                
option domain-name 
"ibm.com";<BR>                
option subnet-mask 
255.255.255.0;<BR>                
option broadcast-address 
9.3.22.255;<BR>                
option domain-name-servers 
9.0..7.1;<BR>                
option routers 9.3.22.1;<BR>        
}<BR>        # PXE-specific configuration 
directives...<BR>        next-server 
9.3.22.253;<BR>        filename 
"pxelinux.0";<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006>       host lpar02 
{<BR>                
hardware ethernet 
2A:CA:30:00:40:02;<BR>                
fixed-address 
9.3.22.202;<BR>                
option host-name "lpar02";<BR>        
}</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006>}</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=578204200-22082006>Just a 
thought.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=578204200-22082006>Also, 
if you're using EL4, beware that sometimes the NIC that the installer decides is 
eth0 is not what the installed kernel thinks is eth0.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=578204200-22082006>CC</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  kickstart-list-bounces@redhat.com [mailto:kickstart-list-bounces@redhat.com] 
  <B>On Behalf Of </B>Tom Miller<BR><B>Sent:</B> Tuesday, 22 August 2006 3:06 
  AM<BR><B>To:</B> kickstart-list@redhat.com<BR><B>Subject:</B> Anaconda 
  kickstart options and lowlevel netboot.img input options. 
<BR><BR></FONT></DIV>
  <DIV><FONT 
  style="FONT-WEIGHT: normal; FONT-SIZE: 12pt; COLOR: #000000; FONT-STYLE: normal; FONT-FAMILY: MS Sans Serif"></FONT> </DIV>
  <DIV><FONT face="MS Sans Serif">I am using a kickstart.cfg file to load power 
  5 lpars via network install. I use a bootp server</FONT></DIV>
  <DIV><FONT face="MS Sans Serif">to deliver the RedHat netboot.img to the 
  victim machine, I set the boot-file SMS env variable to pass boot image parms 
  to netboot.img.  Here's what I pass:</FONT></DIV>
  <DIV><FONT face="MS Sans Serif"></FONT> </DIV>
  <DIV><FONT face="MS Sans Serif"> text ip=9.3.22.104 
  netmask=255.255.255.128 gateway=9.3.22.1 nameserver=9.0.7.1 ksdevice=eth0 
  ks=nfs:9.3.80.16:/lpars/sift22104.cfg</FONT></DIV>
  <DIV><FONT face="MS Sans Serif">This lets the netboot.img config eth0 to 
  access the ks file on the server. </FONT></DIV>
  <DIV><FONT face="MS Sans Serif"></FONT> </DIV>
  <DIV><FONT face="MS Sans Serif">I have this network line in the 
  /lpars/sift22104.cfg kickstart file: </FONT></DIV>
  <DIV><FONT face="MS Sans Serif"></FONT> </DIV>
  <DIV><FONT face="MS Sans Serif">network --device eth0 --bootproto static --ip 
  9.3.22.104 --netmask 255.255.255.128 --gateway 9.3.22.1 --nameserver 9.0.7.1 
  --hostname sift22104.austin.ibm.com</FONT></DIV>
  <DIV><FONT face="MS Sans Serif"></FONT> </DIV>
  <DIV><FONT face="MS Sans Serif">This works just fine and the install 
  completes. </FONT></DIV>
  <DIV><FONT face="MS Sans Serif"></FONT> </DIV>
  <DIV><FONT face="MS Sans Serif">I need to make this work on lpars that have 
  never been loaded before and these lpars can have several eth adapters so 
  the user will not know what order the adatpers will be configured so he can't 
  specify eth0 or eth1 in the options above.  I have expect code that goes 
  thru the SMS menus and attempts to ping the server on each eth adatper until 
  it finds one that is connected: I can pull the mac address for that card and 
  could at that point create the netboot.img boot parms line that includes the 
  mac address, but there is no way I can know what ethX redhat will confgure 
  this card as.  I tried changing the netboot.img parms line 
  to:</FONT></DIV>
  <DIV><FONT face="MS Sans Serif">
  <DIV><FONT face="MS Sans Serif"> text ip=9.3.22.104 
  netmask=255.255.255.128 gateway=9.3.22.1 nameserver=9.0.7.1 
  ksdevice=eth-id-2a:ca:30:00:40:02 
  ks=nfs:9.3.80.16:/lpars/sift22104.cfg</FONT></DIV>
  <DIV> </DIV>
  <DIV>and the kickstart network line to this: </DIV>
  <DIV>network --device eth-id-2a:ca:30:00:40:02 --bootproto static --ip 
  9.3.22.104 --netmask 255.255.255.128 --gateway 9.3.22.1 --nameserver 9.0.7.1 
  --hostname sift22104.austin.ibm.com</DIV>
  <DIV> </DIV>
  <DIV>But it did not work.. I got a syntax error back from anaconda complaining 
  about this: </DIV>
  <DIV><BR>    self.setNetwork(id, bootProto, ip, netmask, 
  ethtool, device=device, onboot=onboot, dhcpclass=dhcpclass, essid=essid, 
  wepkey=wepkey)<BR>  File "/usr/lib/anaconda/installclass.py", line 332, 
  in setNetwork<BR>    dev = devices[device]<BR>KeyError: 
  'eth-id-2a:ca:30:00:40:02'</DIV>
  <DIV> </DIV>
  <DIV>I have searched thru doc's till I am blue and can't find out if there is 
  some way (any correct syntax) to pass the mac address to netboot.img and 
  anaconda instead of the ethX name.</DIV>
  <DIV> </DIV>
  <DIV>Dose anyone know how this can be done, is it even in the 
  netboot.img/anaconda code to all this and deal with the mac address? </DIV>
  <DIV>This is the last thing I need to fully automate these installs for my 
  users with kickstart instead of using expect to fill out all those changing 
  install menus in text mode. </DIV>
  <DIV> </DIV>
  <DIV>thanks</DIV>
  <DIV>tom miller   IBM.</DIV>
  <DIV> </DIV></FONT></DIV>
  <DIV><FONT face="MS Sans Serif"></FONT> </DIV></BLOCKQUOTE></BODY></HTML>