FAI Ubuntu: Unterschied zwischen den Versionen

Aus Doku-Wiki
Zur Navigation springenZur Suche springen
Zeile 5: Zeile 5:
 
  vi /etc/exports
 
  vi /etc/exports
 
  /srv/fai/config 172.27.0.0/16(async,ro,no_subtree_check,no_root_squash)
 
  /srv/fai/config 172.27.0.0/16(async,ro,no_subtree_check,no_root_squash)
* /etc/fai/make-fai-nfsroot.conf anpassen
+
* make-fai-nfsroot.conf anpassen
 
  vi /etc/fai/make-fai-nfsroot.conf
 
  vi /etc/fai/make-fai-nfsroot.conf
 
  NFSROOT=/srv/fai/nfsroot
 
  NFSROOT=/srv/fai/nfsroot
Zeile 13: Zeile 13:
 
  FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
 
  FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
 
  FAI_DEBOOTSTRAP_OPTS="--exclude=info,dhcp-client --include=aptitude,grub-pc"
 
  FAI_DEBOOTSTRAP_OPTS="--exclude=info,dhcp-client --include=aptitude,grub-pc"
* /etc/fai/apt/sources.list anpassen
+
* Fai sources.list anpassen
 
  vi /etc/fai/apt/sources.list
 
  vi /etc/fai/apt/sources.list
 
  deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
 
  deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
 
  deb http://archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
 
  deb http://archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
 
  deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
 
  deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
* /etc/default/tftpd-hpa anpassen
+
* TFTP anpassen
 
  vi /etc/default/tftpd-hpa
 
  vi /etc/default/tftpd-hpa
 
  TFTP_USERNAME="tftp"
 
  TFTP_USERNAME="tftp"
Zeile 24: Zeile 24:
 
  TFTP_ADDRESS="[::]:69"
 
  TFTP_ADDRESS="[::]:69"
 
  TFTP_OPTIONS="--secure"
 
  TFTP_OPTIONS="--secure"
* /etc/dhcp/dhcpd.conf anpassen
+
* DHCP anpassen
 
  vi /etc/dhcp/dhcpd.conf
 
  vi /etc/dhcp/dhcpd.conf
deny unknown-clients;
+
  deny unknown-clients;
option dhcp-max-message-size 2048;
+
  option dhcp-max-message-size 2048;
use-host-decl-names on;
+
  use-host-decl-names on;
 
   
 
   
subnet 172.27.0.0 netmask 255.255.0.0 {
+
  subnet 172.27.0.0 netmask 255.255.0.0 {
 
   
 
   
  # Network Settings
+
    # Network Settings
  option routers 172.27.0.254;
+
    option routers 172.27.0.254;
  option domain-name "blb-intranet.de";
+
    option domain-name "blb-intranet.de";
  option domain-name-servers 172.27.100.20;
+
    option domain-name-servers 172.27.100.20;
  #option time-servers faiserver;
+
    #option time-servers faiserver;
  #option ntp-servers faiserver;
+
    #option ntp-servers faiserver;
  server-name fai-ubuntu;
+
    server-name fai-ubuntu;
  # PXE boot Server
+
    # PXE boot Server
  next-server 172.27.1.10;
+
    next-server 172.27.1.10;
  filename "pxelinux.0";
+
    filename "pxelinux.0";
}
+
  }
 
   
 
   
host demohost {hardware ethernet b8:ca:3a:be:17:74;fixed-address 172.27.11.251;}
+
  host demohost {hardware ethernet b8:ca:3a:be:17:74;fixed-address 172.27.11.251;}
 +
* Zu installierenden Kernel eintragen
 +
vi /srv/fai/config/package_config/DEFAULT
 +
  PACKAGES aptitude
 +
  linux-image-generic
 +
  memtest86+
  
  
 
[[Kategorie:Linux]]
 
[[Kategorie:Linux]]
 
[[Kategorie:FAI]]
 
[[Kategorie:FAI]]

Version vom 8. Mai 2014, 12:48 Uhr

Installation der FAI Komponenten

  • Fai Pakete instalieren
aptitude install fai-quickstart
  • NFS Export freigeabe eintragen
vi /etc/exports
/srv/fai/config 172.27.0.0/16(async,ro,no_subtree_check,no_root_squash)
  • make-fai-nfsroot.conf anpassen
vi /etc/fai/make-fai-nfsroot.conf
NFSROOT=/srv/fai/nfsroot
TFTPROOT=/srv/tftp/fai
FAI_CONFIGDIR=/srv/fai/config
FAI_DEBOOTSTRAP="trusty http://gb.archive.ubuntu.com/ubuntu"
FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
FAI_DEBOOTSTRAP_OPTS="--exclude=info,dhcp-client --include=aptitude,grub-pc"
  • Fai sources.list anpassen
vi /etc/fai/apt/sources.list
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
  • TFTP anpassen
vi /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="[::]:69"
TFTP_OPTIONS="--secure"
  • DHCP anpassen
vi /etc/dhcp/dhcpd.conf
  deny unknown-clients;
  option dhcp-max-message-size 2048;
  use-host-decl-names on;

  subnet 172.27.0.0 netmask 255.255.0.0 {

    # Network Settings
    option routers 172.27.0.254;
    option domain-name "blb-intranet.de";
    option domain-name-servers 172.27.100.20;
    #option time-servers faiserver;
    #option ntp-servers faiserver;
    server-name fai-ubuntu;
    # PXE boot Server
    next-server 172.27.1.10;
    filename "pxelinux.0";
  }

  host demohost {hardware ethernet b8:ca:3a:be:17:74;fixed-address 172.27.11.251;}
  • Zu installierenden Kernel eintragen
vi /srv/fai/config/package_config/DEFAULT
  PACKAGES aptitude
  linux-image-generic
  memtest86+