Re: How do you automate fai installations?
Adrian Gibanel Lopez wrote: How do you automate fai installations? :) It seems like a loop or a joke: automate an automatic installation ;). I mean what's the normal use of FAI in a lab? You run something like: fai-setup -v and then fai-chboot -IFv specialhosts* You reboot manually? the computers and let them install. Three hours later you come back to the lab where it says in every computer: Press ENTER to reboot You then run: fai-chboot -ov specialhosts* You press enter in each of the computers as fast as you can and finally you overview that one or two computers boot as expected. This is what it happens to me after reading the FAI guide and testing it in some virtual machine's install clients. Is it the way to go? Am I missing something? Do you perhaps run: fai-chboot -IFv specialhosts*, (re)boot all the computers, and then (after all the kernels have been loaded) run: fai-chboot -ov specialhosts* but SOMETHING THAT I DO NOT KNOW makes the install clients reboot automatically? Thank you. I hate to say it, but RTFM. For automatic reboots: http://www.informatik.uni-koeln.de/fai/fai-guide/ch-instprocess.html#s-ireboot FAI renames the PXE configs to hash.disable, so they don't PXE boot the next go-around. If each machine is identical, expect identical behavior. If they differ in chipsets, hardware, etc, you need to make sure all the necessary drivers/modules are present in intird/nfsroot/etc. Ryan
Re: How do you automate fai installations?
On Thu, 8 Jan 2009 19:35:47 +0100 (CET), Adrian Gibanel Lopez agiba...@alumnes.udl.cat said: So I re-ask my question. What's the best way for modiying FAI_FLAGS? Use fai-chboot for that. See man fai-chboot for more information. You have to call fai-chboot -o default once on your install server. -- regards Thomas
Re: How do you automate fai installations?
On Thu, 8 Jan 2009 19:35:47 +0100 (CET), Adrian Gibanel Lopez agiba...@alumnes.udl.cat said: So I re-ask my question. What's the best way for modiying FAI_FLAGS? Use fai-chboot for that. See man fai-chboot for more information. You have to call fai-chboot -o default once on your install server. -- regards Thomas Your suggestion is not useful for me because (from my experience) the installation gets stopped at PRESS ENTER TO REBOOT at its end indepently of running fai-chboot -o default or not. I have to say that I have some errors written at errors.log when installing (after running fai-chboot -IFv and booting). I remember having overviewed one script file that was run at the very end of fai installation (maybe a hook) that did something like this: If there are some errors then fai_reboot = 0. Maybe, is this one my actual problem (Having errors at the end)? If I am right how do I ignore them then? Thank you for your patience. -- Firma Automática 1: - Adrian Gibanel Lopez Estudiante de Ingenieria de Informatica de Sistemas en la Universitat de LLeida. Firma Automática 2: - Participante en el III Concurso Universitario de Software Libre. Proyecto: Desdeslin. http://desdeslin.wordpress.com
Re: How do you automate fai installations?
On Thu, 8 Jan 2009 19:56:06 +0100 (CET), Adrian Gibanel Lopez agiba...@alumnes.udl.cat said: I have to say that I have some errors written at errors.log when installing (after running fai-chboot -IFv and booting). Let's have a look at the code in lib/subroutines: task_faiend() { local dir cdromdevice [ $do_init_tasks -eq 0 ] exit 0 wait_for_jobs echo Press RETURN to reboot. [ -z $flag_reboot ] : ${flag_reboot:=0} [ -s $LOGDIR/error.log -a $flag_reboot -gt 0 ] sleep 10 # reboot without prompting if FAI_FLAG reboot is set [ $flag_reboot -lt 1 ] read echo Rebooting $HOSTNAME now Maybe there's a bug in it, but IMO fai should only stop (calling the read command) if the reboot flag is set to 0. I remember having overviewed one script file that was run at the very end of fai installation (maybe a hook) that did something like this: If there are some errors then fai_reboot = 0. Yep, this may be the cause that your installation always stops. -- regards Thomas
Re: How do you automate fai installations?
Where am I supposed to add reboot FAI_FLAGS? The guide says something about FAI_FLAGS at Bootp daemon but I use dhcp. So I re-ask my question. What's the best way for modiying FAI_FLAGS? Thank you. http://www.informatik.uni-koeln.de/fai/fai-guide/ch-config.html#s-s1 Please read the guide, all the questions you've asked so far are in there. You can even search the guide from http://www.informatik.uni-koeln.de/fai/ I already have my offline copy of fai-guide.pdf. After reading an online copy of fai-chboot I have come to this conclusion: I should run: fai-chboot -IBv demohost instead of: fai-chboot -IFv demohost so that it reboots automatically. I must go but I will come back with a suggestion on how to improve the guide. Because: Automatic reboot - FAI_FLAGS !-! The setup routines of the install clients - fai-chboot - man fai-chboot - reboot is not an evident reasoning path! Thank you again for your patience. -- Firma Automática 1: - Adrian Gibanel Lopez Estudiante de Ingenieria de Informatica de Sistemas en la Universitat de LLeida. Firma Automática 2: - Participante en el III Concurso Universitario de Software Libre. Proyecto: Desdeslin. http://desdeslin.wordpress.com