FAI Classes

James james at nttmcl.com
Fri Jan 18 21:23:51 CET 2008


Toomas Tamm wrote:
> On Thu, 2008-01-17 at 13:49 -0800, James wrote:
>   
>> Christian Meissner wrote:
>>     
>>> On Thu, Jan 17, 2008 at 11:14:58AM -0800, James wrote:
>>>   
>>>       
>>>> Is there anyway for me to set the hostname manually on the bootfloppy so it 
>>>> knows to pull the certain class definitions without a dns record?
>>>>     
>>>>         
>>> afaik you can append HOSTNAME=foobar to grub command line
>>>
>>> br
>>>
>>> Chris
>>>   
>>>       
>> well that set the hostname alright but it didn't pull the class 
>> definition... i'm a bit confused now.
>>
>> i set grub to append the ip=:::::dhcp nfsroot=127.x.x.x:/srv/fai/nfsroot 
>> HOSTNAME=TEST
>>     
>
> Some time ago I had success with the following:
> (this goes into three lines in menu.lst on the boot floppy):
>
> title FAI-HOST01 2.6.8-fai
> kernel (fd0)/vmlinuz-2.6.8-fai root=/dev/nfs ip=::::host01::dhcp nfsroot=192.168.104.228:/usr/lib/fai/nfsroot  FAI_FLAGS=verbose,sshd,createvt,syslog
> savedefault
>
> The hostname would be "host01" in this case. DHCP assigned an IP
> address, but no other support from the university data center was
> needed.
>
> I had a bootfloppy with similar three-line sets for all the hosts in the
> computer classroom, and chose an appropriate hostname at boot time. This
> worked.
>
> More than a year has passed, and new versions of almost everything came
> out, so things may have changed. Give it a try.
>   
Thanks for the tip with the manual ip= directive. That definately 
worked. I might just edit the make-fai-bootfloppy script to make it 
easier to edit

-James


More information about the linux-fai mailing list