FAI the Fully Automatic Installation framework for linux

Posted by nevermind on Fri 9 Sep 2005 at 13:06

Tags:

Here we're going to introduce a different approach for Debian installations, the Fully Automated Installation system (FAI). FAI is an automated installation tool used to install Debian on a cluster, or number of different hosts.

Prerequisites:

  • DHCP means something to you.
  • You know about networks.
  • You have configured an NFS server at least once.
  • It would also be advantageous to know something about the Debian installer.

So before you continue reading, make sure you know these things, or start reading about them first...

Let's assume you have got a Debian machine already running, and want to switch one or more other machines on a LAN to Debian.

The normal approach would be for you and your coworkers to fetch a set of Debian installation CD-ROMs, and setup each machine by hand which will probably take alot of time, (even when you use the pre-seeding to have the installation questions automatically answered).

There is a by far more elegant way to do this.

All you need to do is setup the FAI system upon your main Debian server. Install it by running:

aptitude -r install fai fai-kernels
Reading Package Lists... Done
Building Dependency Tree      
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be automatically installed:
binutils debootstrap dhcp3-server mtools nfs-kernel-server rsh-server
syslinux tftpd-hpa
Do you want to continue? [Y/n/?]

Just answer the question with "Y" and it will fetch the set of packages for you. (If you prefer you can use "apt-get install fai fai-kernels").

After the installation finishes, you have to follow some configuration steps:

First of all, edit the main configuration file to fit your needs, it may be found in the directory /etc/fai, and is called fai.conf.

See the documentation for a full list of the available parameters.

The documentation also gives information on how to setup a local Debian mirror, which might come in handy.

The next step is to edit the file /etc/fai/make-fai-nfsroot.conf to point to the desired location of the NFSroot for your installations.

After you have finished the above steps, just run fai-setup.

The most important lines that fai-setup echos are the following:

make-fai-nfsroot finished properly.     <= *
FAI setup finished.                     <= *

Of one or other of these aren't shown then something went wrong, so you should check your current setup to fix it.

The next thing to do is to restart your NFS server, then your FAI server should be complete.

Now we go on to create our client configurations, examples may be found in /usr/share/doc/fai/examples/simple/.

Again a full list of possible options and possibilities for the client configuration may be found online:

There are three possible options on how to boot your clients into their setup:

  • network boot
  • floppy boot
  • CD-ROM boot

If possible, you might want to go for the first one, as it includes the smallest amount of time and effort.

there is one thing you might wanna take care about, your FAI client user has to have write access to /boot/fai

For more information on booting the clients the chapter on booting clients in the documentation.

Under point 3.2 you will find the info for network booting with PXE.

If you go this route you will need to add the MAC Address of your client to the FAI server's dhcpd.conf. Then you can just run:

fai-chboot -IFv demohost

As soon as the installation finishes, you may login as your defined user or root user with the password "fai".

That is pretty much all there is to it!

Note: the whole thing might sound complicated, but if you want to setup alot of clients, it is going safe you a lot of time.

I hope you enjoyed it as much as I did.

Greets
Oliver

 

 


Posted by Anonymous (194.65.xx.xx) on Fri 9 Sep 2005 at 14:42
I have been using fai for some time, and i think it is great.
I used fai to install a huge number of machines and works better then i ever expected.

try it :)

[ Parent | Reply to this comment ]

Posted by Anonymous (80.224.xx.xx) on Wed 14 Sep 2005 at 12:56
¡A las barricadas! ¡A las barricadas! Por el triunfo de la Confederación. (CNT/FAI)

[ Parent | Reply to this comment ]

Posted by Anonymous (203.177.xx.xx) on Wed 21 Sep 2005 at 13:29
It's nice to see that other people are also using FAI and spreading the good news to others. I gave a talk about FAI at the recently-concluded LinuxWorld Philippines 2005 conference and expo. My talk was entitled "Standardizing and Automating Enterprise Deployments of Debian GNU/Linux". If anybody is interested, I have copies of my slides available on my website as an OpenOffice.org Impress presentation and as a PDF file.

--> Jijo

[ Parent | Reply to this comment ]

Posted by Mrfai (134.95.xx.xx) on Thu 29 Sep 2005 at 16:40
[ Send Message ]
FAI means Fully Automatic Installation, not automated.

[ Parent | Reply to this comment ]

Posted by nevermind (213.153.xx.xx) on Fri 4 Jul 2008 at 09:58
[ Send Message ]
Thank you for the information, i have updated the Headline.

[ Parent | Reply to this comment ]

Posted by Ntsakzin (146.141.xx.xx) on Fri 4 Jul 2008 at 08:57
[ Send Message ]
Hi I am newbie- sounds a bit like an AA meeting :). I'd like to know if you can use FAI with thin clients? If not, which is the best tool? Currently I am using Knoppix's terminalserver and its givingn me problems because I can not configure it to boot my thin clients from a xp image. TIA.

[ Parent | Reply to this comment ]

Posted by nevermind (213.153.xx.xx) on Fri 4 Jul 2008 at 10:04
[ Send Message ]
Hello Ntsakzin

I have not yet tried an xp boot from an image on the network, i dont think though, that this would be easily possible...

I have googled a bit around, and found the following article for peoples that live in a windows world:

http://juice.altiris.com/article/3239/managing-and-imaging-hp-thi n-clients-running-xpe

This might be helpful with what youre trying.

[ Parent | Reply to this comment ]

Posted by Anonymous (134.95.xx.xx) on Fri 16 Apr 2010 at 14:22
The links to the different chapter of the FAI guide are broken. The FAI guide is now availabe at:
http://www.informatik.uni-koeln.de/fai/fai-guide/

[ Parent | Reply to this comment ]

Posted by Mrfai (213.168.xx.xx) on Thu 21 Oct 2010 at 04:12
[ Send Message ]
The FAI project moved its $HOME. Now it's

http://fai-project.org

[ Parent | Reply to this comment ]

Posted by nevermind (81.223.xx.xx) on Thu 21 Oct 2010 at 07:20
[ Send Message ]
Thanks alot Mrfai for the information.

I have basically updated the links, and gonna have a look at the new things in the FAI Framework soon.

[ Parent | Reply to this comment ]

Sign In

Username:

Password:

[Register|Advanced]

 

Flattr

 

Current Poll

Which init system are you using in Debian?






( 1637 votes ~ 7 comments )

 

 

Related Links