Präsentation herunterladen
Die Präsentation wird geladen. Bitte warten
Veröffentlicht von:Christin Bach Geändert vor über 7 Jahren
1
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Automatische Installation unter Linux
2
Motivation ● Langweilige Tätigkeiten vermeiden Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
3
Motivation ● Langweilige Tätigkeiten vermeiden ● Weniger Fehler Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
4
Motivation ● Langweilige Tätigkeiten vermeiden ● Weniger Fehler ● Früher Feierabend Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
5
Motivation ● Langweilige Tätigkeiten vermeiden ● Weniger Fehler ● Früher Feierabend ● Bessere Anpassung an unterschiedliche Kurse Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
6
Motivation ● Langweilige Tätigkeiten vermeiden ● Weniger Fehler ● Früher Feierabend ● Bessere Anpassung an unterschiedliche Kurse ● Schnellere Wiederherstellung Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
7
Motivation ● Langweilige Tätigkeiten vermeiden ● Weniger Fehler ● Früher Feierabend ● Bessere Anpassung an unterschiedliche Kurse ● Schnellere Wiederherstellung ● Dokumentation Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
8
Verfahren Images Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
9
Verfahren Images ● System Imager Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
10
Verfahren Images ● System Imager Installer ● Kickstart ● autoYaST ● debian-Installer Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
11
Verfahren Images ● System Imager Installer ● Kickstart ● autoYaST ● debian-Installer ● m23 Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
12
Verfahren Images ● System Imager ● FAI Installer ● Kickstart ● autoYaST ● debian-Installer ● m23 ● FAI Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
13
Verfahren Images ● System Imager ● FAI Installer ● Kickstart ● autoYaST ● debian-Installer ● m23 ● FAI Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
14
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Server Fahrplan
15
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Bootloader Server Netzwerk-Info Bootloader DHCP/BOOTP TFTP Fahrplan
16
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Bootloader Installer Server Netzwerk-Info Bootloader Installer DHCP/BOOTP TFTP Fahrplan
17
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Bootloader Installer Server Netzwerk-Info Bootloader Installer Antwort-Datei DHCP/BOOTP TFTP HTTP/NFS/FTP Fahrplan
18
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Bootloader Installer Server Netzwerk-Info Bootloader Installer Antwort-Datei rpm/deb-Pakete DHCP/BOOTP TFTP HTTP/NFS/FTP Fahrplan
19
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Dunkelheit
20
Mehr Licht! ● Floppy ● CD / DVD ● Festplatte ● Netzwerk Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
21
DHCP dhcpd.conf: use-host-decl-names on; host installclient { hardware ethernet 00:0c:29:d1:01:ea; fixed-address 192.168.1.60; } filename "pxelinux.0"; server-name bootserver; Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
22
DHCP dhcpd.conf: use-host-decl-names on; host installclient { hardware ethernet 00:0c:29:d1:01:ea; fixed-address 192.168.1.60; } filename "pxelinux.0"; server-name bootserver; Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
23
DHCP dhcpd.conf: use-host-decl-names on; host installclient { hardware ethernet 00:0c:29:d1:01:ea; fixed-address 192.168.1.60; } filename "pxelinux.0"; server-name bootserver; Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
24
DHCP dhcpd.conf: use-host-decl-names on; host installclient { hardware ethernet 00:0c:29:d1:01:ea; fixed-address 192.168.1.60; } filename "pxelinux.0"; server-name bootserver; Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
25
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Server Netzwerk-Info Bootloader DHCP/BOOTP TFTP 3... 2... 1... Boot!
26
Bootloader grub + Ein Bootloader für alles Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
27
Bootloader grub + Ein Bootloader für alles + flexibler Bootprompt Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
28
Bootloader grub + Ein Bootloader für alles + flexibler Bootprompt - pxe klappt noch nicht mit jedem Rechner - in der notwendigen Version noch nicht Teil gängiger Distributionen Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
29
Bootloader grub + Ein Bootloader für alles + flexibler Bootprompt - pxe klappt noch nicht mit jedem Rechner - in der notwendigen Version noch nicht Teil gängiger Distributionen isolinux / pxelinux Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
30
Bootloader grub + Ein Bootloader für alles + flexibler Bootprompt - pxe klappt noch nicht mit jedem Rechner - in der notwendigen Version noch nicht Teil gängiger Distributionen isolinux / pxelinux + funktioniert Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
31
pxelinux Für alle Rechner: pxelinux.cfg/default Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
32
pxelinux Für alle Rechner: pxelinux.cfg/default Für eine Mac-Adresse: pxelinux.cfg/01-00-0c-29-5f-ea-13 Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
33
pxelinux Für alle Rechner: pxelinux.cfg/default Für eine Mac-Adresse: pxelinux.cfg/01-00-0c-29-5f-ea-13 Für bestimmte IP-Adressen: pxelinux.cfg/AC10F0DD Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
34
pxelinux Für alle Rechner: pxelinux.cfg/default Für eine Mac-Adresse: pxelinux.cfg/01-00-0c-29-5f-ea-13 Für bestimmte IP-Adressen: pxelinux.cfg/AC10F0DD perl -e 'printf "\U%x", $_ for @ARGV' 192 168 23 15 Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
35
pxelinux kickstart LABEL centos42 KERNEL centos/vmlinuz APPEND initrd=centos/initrd.img ramdisk_size=9216 ksdevice=eth0 ks=http://sassa/centos/auto.ks resolution=1024x768 Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
36
pxelinux kickstart LABEL centos42 KERNEL centos/vmlinuz APPEND initrd=centos/initrd.img ramdisk_size=9216 ksdevice=eth0 ks=http://sassa/centos/auto.ks resolution=1024x768 Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
37
pxelinux kickstart LABEL centos42 KERNEL centos/vmlinuz APPEND initrd=centos/initrd.img ramdisk_size=9216 ksdevice=eth0 ks=http://sassa/centos/auto.ks resolution=1024x768 Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
38
pxelinux d-i LABEL deb31auto KERNEL deb31/2.6/linux APPEND initrd=deb31/2.6/initrd.gz ramdisk_size=10934 root=/dev/rd/0 rw languagechooser/language-name=German countrychooser/shortlist=DE console- keymaps-at/keymap=de-latin1-nodeadkeys DEBCONF_PRIORITY=critical preseed/url=http://sassa/debian/auto.cfg netcfg/choose_interface=eth0 -- Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
39
pxelinux d-i LABEL deb31auto KERNEL deb31/2.6/linux APPEND initrd=deb31/2.6/initrd.gz ramdisk_size=10934 root=/dev/rd/0 rw languagechooser/language-name=German countrychooser/shortlist=DE console- keymaps-at/keymap=de-latin1-nodeadkeys DEBCONF_PRIORITY=critical preseed/url=http://sassa/debian/auto.cfg netcfg/choose_interface=eth0 -- Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
40
pxelinux d-i LABEL deb31auto KERNEL deb31/2.6/linux APPEND initrd=deb31/2.6/initrd.gz ramdisk_size=10934 root=/dev/rd/0 rw languagechooser/language-name=German countrychooser/shortlist=DE console- keymaps-at/keymap=de-latin1-nodeadkeys DEBCONF_PRIORITY=critical preseed/url=http://sassa/debian/auto.cfg netcfg/choose_interface=eth0 -- Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
41
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Bootloader Installer Server Netzwerk-Info Bootloader Installer Antwort-Datei DHCP/BOOTP TFTP HTTP/NFS/FTP Bitte um Antwort.
42
kickstart - Partitionierung zerombr yes clearpart --all --initlabel part /boot --size=75 --fstype=ext3 part swap --size=200 part / --size=2700 --fstype=ext3 --grow Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
43
kickstart - Partitionierung zerombr yes clearpart --all --initlabel part /boot --size=75 --fstype=ext3 part swap --size=200 part / --size=2700 --fstype=ext3 --grow Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
44
kickstart - Partitionierung zerombr yes clearpart --all --initlabel part /boot --size=75 --fstype=ext3 part swap --size=200 part / --size=2700 --fstype=ext3 --grow Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
45
kickstart - Partitionierung zerombr yes clearpart --all --initlabel part /boot --size=75 --fstype=ext3 part swap --size=200 part / --size=2700 --fstype=ext3 --grow Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
46
kickstart - Partitionierung zerombr yes clearpart --all --initlabel part /boot --size=75 --fstype=ext3 part swap --size=200 part / --size=2700 --fstype=ext3 --grow Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
47
autoYaST /dev/hda swap true swap 130 1 Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
48
debian-installer d-i partman-auto/expert_recipe string \ boot-root :: \ 40 50 100 ext3 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /boot } \. \ 500 10000 1000000000 ext3 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ / } \. \ 64 512 300% linux-swap \ method{ swap } format{ } \ Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
49
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Bootloader Installer Server Netzwerk-Info Bootloader Installer Antwort-Datei rpm/deb-Pakete DHCP/BOOTP TFTP HTTP/NFS/FTP Fertig!
50
Und wenns nicht klappt? ● Logdateien auf dem Client ● Post-Mortem Untersuchung YaST per SSH erreichbar ● Interaktive Installation Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
51
pxelinux debug LABEL pxelinux KERNEL pxelinux.0 Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
52
Mehr Flexibilität bitte! ● unterschiedliche Hardware ● unterschiedliche Einsatzzwecke Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
53
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Server Netzwerk-Info DHCP/BOOTP Wo einstellen? Client
54
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Server Netzwerk-Info Bootloader DHCP/BOOTP TFTP Wo einstellen? Client
55
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Server Netzwerk-Info Bootloader Antwort-Datei DHCP/BOOTP TFTP HTTP/NFS/FTP Wo einstellen? Client
56
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Server Netzwerk-Info Bootloader Antwort-Datei DHCP/BOOTP TFTP HTTP/NFS/FTP Wo einstellen? Client
57
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Server Netzwerk-Info Bootloader Antwort-Datei rpm/deb-Pakete DHCP/BOOTP TFTP HTTP/NFS/FTP Wo einstellen? Client Installer
58
post-Skripte ● Skripte in der Installer-Umgebung ausführen ● Skripte in chroot ausführen ● Dateien / Skripte nachladen Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
59
Zu kompliziert? Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann m23: ● CD einlegen ● ein paar Fragen beantworten m23 Installserver ist nach 10 Minuten fertig. ● Web-Browser starten ● ein paar Fragen beantworten Fertig für die automatische Debian Installation
60
Zu unflexibel? FAI (fully automatic install): ✔ durchdachtes Framework ✔ Debugging per ssh ✔ Logs jeder Installation auf dem Server ✗ komplizierte Einarbeitung Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
61
linuxhotel.de Dipl.-Ing. Ingo Wichmann Automatische Installation Client BIOS Bootloader Kernel Installer Server Netzwerk-Info Bootloader Kernel NFS-Root rpm/deb-Pakete DHCP/BOOTP TFTP NFS HTTP/NFS/FTP FAI
62
FAI Tasks ● System klassifizieren ● Partitionieren ● Image aufspielen ● Software-Pakete installieren ● Skripte
63
Infos zu FAI am Debian Stand
64
pxelinux autoYaST LABEL suse KERNEL suse100iso/linux APPEND initrd=suse100iso/initrd showopts insmod=via-rhine ip=bootp install=http://sassa/suse/i386/10.0 vga=0x317 lang=de splash=silent autoyast=http://sassa/suse/auto.xml Automatische Installation linuxhotel.de Dipl.-Ing. Ingo Wichmann
Ähnliche Präsentationen
© 2024 SlidePlayer.org Inc.
All rights reserved.