<div class="gmail_quote">Hi guys!<div><br></div><div>I'm actually trying to configure FAI for my servers, but i don't understand where to specify client's hostname.</div><div><br></div><div><i>/etc/hosts:</i></div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div>127.0.0.1 localhost</div></div><div><div>192.168.201.20 clean-install-64</div></div><div><div>192.168.201.40 demohost</div></div><div><br></div></blockquote><i>/etc/dhcp3/dhcpd.conf</i><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div>subnet 192.168.201.0 netmask 255.255.255.0 {</div><div> range 192.168.201.10 192.168.201.50;</div><div> option routers 192.168.201.1;</div><div> filename "pxelinux.0";</div><div>
}</div>
</div><div><br></div><div><div>host demohost {</div><div> hardware ethernet 00:0C:29:2D:5C:90;</div><div> fixed-address 192.168.201.40;</div><div><br></div><div>}</div></div></blockquote><div><br></div><div>
<i>/srv/tftp/fai/pxelinux.cfg/C0A8C928</i></div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>default fai-generated</div></div><div><div><br>
</div></div><div><div>label fai-generated</div></div><div><div>kernel vmlinuz-2.6.26-2-amd64</div></div><div><div>append initrd=initrd.img-2.6.26-2-amd64 ip=dhcp root=/dev/nfs nfsroot=/srv/fai/nfsroot boot=live FAI_FLAGS=verbose,sshd,createvt FAI_ACTION=install</div>
</div><div><br></div></blockquote><i>/srv/fai/config/class/50-host-classes</i><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>case $HOSTNAME in</div>
<div> faiserver)</div><div> echo "FAIBASE DEMO FAISERVER" ;;</div><div> demohost)</div><div> echo "FAIBASE DHCPC DEMO" ;;</div><div> gnomehost)</div><div> echo "DHCPC DEMO XORG GNOME";;</div>
<div> atom*)</div><div> echo "FAIBASE DHCPC DEMO" ;;</div><div> *)</div><div> echo "FAIBASE DEMO" ;;</div><div>esac</div><div><br></div><div>(ifclass I386 || ifclass AMD64) && echo GRUB</div>
<div>exit 0</div></div><div><br></div></blockquote><div><div><br></div><div>I think that network's configuration is OK: if i try to install a new system, it works! But FAI doesn't apply classes for demohost (FAIBASE DHCPC DEMO), but for the unmatched case (FAIBASE DEMO)...</div>
<div><br></div><div>Could somebody help me?</div><div><br></div><div>Best regards, </div><div>Anthony</div><br><div><div><br></div></div></div>
</div><br>