Aufbau einer Testumgebung mit FAI

Alles in Virtualbox

1 Installation eines minimalen Debian in einer Virtualbox

2 Installation und Konfiguration eines fai-master FAI-Servers

Nach Anleitung Quickstart - For the impatient user

http://www.informatik.uni-koeln.de/fai/fai-guide/ar01s02.html

LOGUSER=fai

FAI_CONFIG_SRC=nfs://fai-master$FAI_CONFIGDIR

NFSROOT_ETC_HOSTS="192.168.1.250 fai-master"

FAI_DEBOOTSTRAP="lenny http://192.168.200.54/debian/"

#Defaults for tftpd-hpa geändert:
#RUN_DAEMON="no"
RUN_DAEMON="yes"
#OPTIONS="-l -s /var/lib/tftpboot"
OPTIONS="-l -s /srv/tftp/fai"

Eintragen:

fai-master:/etc/dhcp3# cat dhcpd.conf 
# dhcpd.conf for fai
# replace faiserver with the name of your install server

#deny unknown-clients;
option dhcp-max-message-size 2048; 
use-host-decl-names on;
#always-reply-rfc1048 on;

default-lease-time 600;
max-lease-time 7200;



subnet 192.168.1.0 netmask 255.255.255.0 {
   option routers 192.168.1.250;
   option domain-name "gramlich.localnet";
   option domain-name-servers 212.100.40.1;
   option time-servers fai-master;
   option ntp-servers fai-master;
   server-name fai-master;
   next-server fai-master;
   filename "pxelinux.0";
}

192.168.1.100   fai-client.gramlich.localnet    fai-client demohost
192.168.1.250   fai-master.gramlich.localnet    fai-master

 iptables -t nat -A POSTROUTING -s 192.168.1.0/255.255.255.0 -o eth0 -j MASQUERADE

3 Installation eines Fai-Clients via PXE

host demohost {
     hardware ethernet  08:00:27:3e:09:4e;
     fixed-address demohost;
}

und demohost ist schon mit ip in der /etc/hosts

# /etc/init.d/nfs-kernel-server reload

Fehlermeldung am Ende:

http://www.skolelinux.de/images/fai1.jpg

Nach manuellem Installieren von grub:

255 heads, 63 sectors/track, 2088 cylinders

# HINT: if grub-install fails you need to install grub with grub-shell  
#
# use:
#         fdisk -l <device>
#
# to read disc geomentry
#
#           - cylinder  C
#           - heads     H
#           - sectors   S
#
# now start grub, example:
#
#  grub --device-map=/dev/null
#     grub> device (hd0,0) /dev/sdb1
#     grub> device (hd0)   /dev/sdb
#     grub> geometry (hd0) <C> <H> <S>
#     grub> root (hd0,0)
#     grub> setup (hd0)
#     grub> quit 

Danach den fai-client herunterfahren und in der Virtualbox das Booten umstellen, so dass jetzt von Festplatte gebootet werden kann. Ergebnis: Ein erster Erfolg!

http://www.skolelinux.de/images/fai-success.jpg


Alle Inhalte in diesem Wiki stehen unter der Creative Commons SA 4.0 DE Lizenz