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


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