Getting hostnames from PXE to build

Andreas Schockenhoff asc at gmx.li
Sun Feb 26 14:38:17 CET 2006


On Sunday 26 February 2006 11:26, Darryl Luff wrote:
> Hi all. I'm new to FAI. I've seen a few requests in the archives
> about setting the hostname on the built machine using other than the
> DHCP config, but none really did what I need to do.
>
> I boot via PXE and type the hostname I want to build at the pxelinux
> prompt. Some hosts are redhat, others are windows, others (will be)
> fai. The pxelinux config runs the appropriate installer for that
> specific host. For the fai hosts I have (in pxelinux.cfg/default):
>
> label jack
> kernel fai/vmlinuz-install
> append ... hostname=jack
Try: append .... HOST=demohost

You can use it for special host with mac:
/boot/fai/pxelinux.cfg/01-00-0c-f1-bc-6b-d2

Or with IP after dhcp has give the host the IP.
/boot/fai/pxelinux.cfg/0A00022D

or default with prompt:
/boot/fai/pxelinux.cfg/default

bye Andreas 



More information about the linux-fai mailing list