Installationen über PXE: Unterschied zwischen den Versionen
Aus revampedia
Zeile 1: | Zeile 1: | ||
− | Diese Seite dient als Anleitung zur Einrichtung eines Servers sowohl für [[Automatische_Linux_Installationen|automatisierte Linux-Installationen]] als auch dem booten von Live- und Installations-Medien über das Netzwerk. | + | Diese Seite dient als Anleitung zur Einrichtung eines Servers sowohl für [[Automatische_Linux_Installationen|automatisierte Linux-Installationen]] als auch dem booten von Live-, Test- und Installations-Medien über das Netzwerk. |
== Benötigte Pakete == | == Benötigte Pakete == | ||
Zeile 21: | Zeile 21: | ||
* '''/pxeboot/tftpboot''' | * '''/pxeboot/tftpboot''' | ||
: Unterverzeichnis für die ganzen Dateien, die per TFTP an den Client geschickt werden | : Unterverzeichnis für die ganzen Dateien, die per TFTP an den Client geschickt werden | ||
− | : '''memtest86+.bin''' | + | :: '''memtest86+.bin''' |
* '''/pxeboot/tftpboot/common''' | * '''/pxeboot/tftpboot/common''' | ||
Zeile 29: | Zeile 29: | ||
: Hintergrundbild | : Hintergrundbild | ||
:: [http://blacklite-teh-haxxor.deviantart.com/art/Tux-Button-302102059 tux_button.png] | :: [http://blacklite-teh-haxxor.deviantart.com/art/Tux-Button-302102059 tux_button.png] | ||
+ | |||
+ | * '''/pxeboot/tftpboot/debian-installer | ||
+ | |||
+ | === Syslinux Bootmenü === | ||
* '''/pxeboot/tftpboot/pxelinux.cfg''' | * '''/pxeboot/tftpboot/pxelinux.cfg''' | ||
Zeile 43: | Zeile 47: | ||
localboot 0 | localboot 0 | ||
TEXT HELP | TEXT HELP | ||
− | Lokal booten | + | Lokal installiertes System booten |
ENDTEXT | ENDTEXT | ||
− | LABEL | + | LABEL Debian Jessie no PAE |
− | MENU LABEL Debian Jessie 32-bit non-PAE (login/pw: | + | MENU LABEL Debian Jessie 32-bit non-PAE (login/pw: root/root) |
− | KERNEL vmlinuz-3.16.0-4-586 | + | TEXT HELP |
− | APPEND root=/dev/nfs initrd=initrd.img-3.16.0-4-586 init=/sbin/init ip=dhcp rw nfsroot=192.168.10. | + | |
+ | ENDTEXT | ||
+ | KERNEL debian8/vmlinuz-3.16.0-4-586 | ||
+ | APPEND root=/dev/nfs initrd=debian8/initrd.img-3.16.0-4-586 init=/sbin/init ip=dhcp rw nfsroot=192.168.10.51:/pxeboot/nfsroot/debian8 | ||
LABEL memtest86 | LABEL memtest86 | ||
MENU LABEL Memtest86+ | MENU LABEL Memtest86+ | ||
+ | TEXT HELP | ||
+ | Memtest86 ausführen | ||
+ | ENDTEXT | ||
LINUX memtest86+.bin | LINUX memtest86+.bin | ||
+ | |||
+ | LABEL Lubuntu 15.04 netinstall | ||
+ | MENU LABEL Lubuntu 15.04 netinstall | ||
+ | TEXT HELP | ||
+ | Lubuntu 15.04 Installieren | ||
+ | ENDTEXT | ||
+ | KERNEL lubuntu-15.04/linux | ||
+ | APPEND root=/dev/nfs netboot=nfs nfsroot=192.168.10.51:/pxeboot/nfsroot/lubuntu-15.04 initrd=lubuntu-15.04/initrd.gz forcepae -- forcepae | ||
+ | |||
+ | MENU BEGIN Debian Jessie amd64 Installer | ||
+ | MENU TITLE Debian Jessie amd64 Installer | ||
+ | LABEL Zurück | ||
+ | MENU LABEL Zurück zum vorherigen Menü | ||
+ | TEXT HELP | ||
+ | Zurück zum vorherigen Menü | ||
+ | ENDTEXT | ||
+ | MENU EXIT | ||
+ | MENU SEPARATOR | ||
+ | MENU INCLUDE common/debian-installer.menu | ||
+ | MENU END | ||
+ | </pre> | ||
+ | |||
+ | :: '''/pxeboot/tftpboot/common/debian-installer.menu''' | ||
+ | <pre> | ||
+ | PATH debian-installer/amd64 | ||
+ | INCLUDE debian-installer/amd64/boot-screens/menu.cfg | ||
+ | DEFAULT debian-installer/amd64/boot-screens/vesamenu.c32 | ||
+ | </pre> | ||
== Ablauf == | == Ablauf == | ||
Zeile 59: | Zeile 97: | ||
== Zu beachten == | == Zu beachten == | ||
+ | |||
+ | == To Do == | ||
+ | |||
+ | *Fertige Installations-Images |
Version vom 23. September 2015, 15:45 Uhr
Diese Seite dient als Anleitung zur Einrichtung eines Servers sowohl für automatisierte Linux-Installationen als auch dem booten von Live-, Test- und Installations-Medien über das Netzwerk.
Benötigte Pakete
Zur Ergänzung einer standard Debian-Installation werden folgende Pakete (und deren Abhängigkeiten) nachinstalliert:
tftpd-hpa nfs-kernel-server syslinux memtest86+
Konfiguration
IP des Installations-Servers (debian-jessie VM auf [[1]]: 192.168.10.51
Verzeichnisstruktur:
- /pxeboot
- Wurzelverzeichnis für die gesamte Struktur
- /pxeboot/tftpboot
- Unterverzeichnis für die ganzen Dateien, die per TFTP an den Client geschickt werden
- memtest86+.bin
- /pxeboot/tftpboot/common
- Dateien, die von mehreren Installations- und Livesystemen benutzt werden.
- Kopiert aus /usr/lib/syslinux/modules/bios:
- cmenu.c32, ldlinux32.c32, libcom32.c32, libmenu.c32, libutil.c32, menu.c32, vesamenu.c32
- Hintergrundbild
- /pxeboot/tftpboot/debian-installer
Syslinux Bootmenü
- /pxeboot/tftpboot/pxelinux.cfg
- Dateien zur Konfiguration des Boot-Menüs
- /pxeboot/tftpboot/pxelinux.cfg/default
MENU TITLE Boot Menu PROMPT 0 DEFAULT vesamenu.c32 TIMEOUT 100 MENU BACKGROUND tuxbutton.png LABEL BootLocal localboot 0 TEXT HELP Lokal installiertes System booten ENDTEXT LABEL Debian Jessie no PAE MENU LABEL Debian Jessie 32-bit non-PAE (login/pw: root/root) TEXT HELP ENDTEXT KERNEL debian8/vmlinuz-3.16.0-4-586 APPEND root=/dev/nfs initrd=debian8/initrd.img-3.16.0-4-586 init=/sbin/init ip=dhcp rw nfsroot=192.168.10.51:/pxeboot/nfsroot/debian8 LABEL memtest86 MENU LABEL Memtest86+ TEXT HELP Memtest86 ausführen ENDTEXT LINUX memtest86+.bin LABEL Lubuntu 15.04 netinstall MENU LABEL Lubuntu 15.04 netinstall TEXT HELP Lubuntu 15.04 Installieren ENDTEXT KERNEL lubuntu-15.04/linux APPEND root=/dev/nfs netboot=nfs nfsroot=192.168.10.51:/pxeboot/nfsroot/lubuntu-15.04 initrd=lubuntu-15.04/initrd.gz forcepae -- forcepae MENU BEGIN Debian Jessie amd64 Installer MENU TITLE Debian Jessie amd64 Installer LABEL Zurück MENU LABEL Zurück zum vorherigen Menü TEXT HELP Zurück zum vorherigen Menü ENDTEXT MENU EXIT MENU SEPARATOR MENU INCLUDE common/debian-installer.menu MENU END
- /pxeboot/tftpboot/common/debian-installer.menu
PATH debian-installer/amd64 INCLUDE debian-installer/amd64/boot-screens/menu.cfg DEFAULT debian-installer/amd64/boot-screens/vesamenu.c32
Ablauf
Zu beachten
To Do
- Fertige Installations-Images