How to configure host name

Anthony BRODARD brodard.anthony at gmail.com
Mon Aug 30 07:56:01 CEST 2010


Hi guys!

I'm actually trying to configure FAI for my servers, but i don't understand
where to specify client's hostname.

*/etc/hosts:*

127.0.0.1       localhost
192.168.201.20  clean-install-64
192.168.201.40  demohost

*/etc/dhcp3/dhcpd.conf*

subnet 192.168.201.0 netmask 255.255.255.0 {
        range 192.168.201.10 192.168.201.50;
        option routers 192.168.201.1;
         filename "pxelinux.0";
}

host demohost {
        hardware ethernet 00:0C:29:2D:5C:90;
        fixed-address 192.168.201.40;

}


*/srv/tftp/fai/pxelinux.cfg/C0A8C928*

default fai-generated

label fai-generated
kernel vmlinuz-2.6.26-2-amd64
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

*/srv/fai/config/class/50-host-classes*

case $HOSTNAME in
    faiserver)
        echo "FAIBASE DEMO FAISERVER" ;;
    demohost)
        echo "FAIBASE DHCPC DEMO" ;;
    gnomehost)
        echo "DHCPC DEMO XORG GNOME";;
    atom*)
        echo "FAIBASE DHCPC DEMO" ;;
    *)
        echo "FAIBASE DEMO" ;;
esac

(ifclass I386 || ifclass AMD64) && echo GRUB
exit 0


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)...

Could somebody help me?

Best regards,
Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100830/a09fbbbb/attachment.htm 


More information about the linux-fai mailing list