Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste ÜberarbeitungBeide Seiten der Revision | ||
centos:pxe:pxe_2 [01.02.2012 17:19. ] – [manuelle Bearbeitung] django | centos:pxe:pxe_2 [15.07.2014 09:33. ] – Im Kapitel "PXE-Server unter CentOS 6.x optimieren" link korrigiert. #PXE #CentOS django | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== PXE-Server unter CentOS 6.x optimieren ====== | ====== PXE-Server unter CentOS 6.x optimieren ====== | ||
+ | ===== Installationsscript für CentOS Installation ===== | ||
Für die weitgehende Automatisierung der Installation unserer Rechner greifen wir auf ein Installationsscript zurück, welches uns entsprechend unterstützen wird. Diese Datei enthält Angaben zu den einzelnen Installationschritten, | Für die weitgehende Automatisierung der Installation unserer Rechner greifen wir auf ein Installationsscript zurück, welches uns entsprechend unterstützen wird. Diese Datei enthält Angaben zu den einzelnen Installationschritten, | ||
* **Systemsprache** | * **Systemsprache** | ||
Zeile 8: | Zeile 9: | ||
* **Paketauswahl** | * **Paketauswahl** | ||
* //u.s.w.// | * //u.s.w.// | ||
- | ===== Dateierstellung mit Hilfe eines GUI ===== | + | ==== Dateierstellung mit Hilfe eines GUI ==== |
Eine Variante zur Erstellung eines Installationsscriptes kann die Verwendung der **GUI** // | Eine Variante zur Erstellung eines Installationsscriptes kann die Verwendung der **GUI** // | ||
Zeile 19: | Zeile 20: | ||
{{ : | {{ : | ||
- | ===== manuelle Bearbeitung | + | ==== manuelle Bearbeitung ==== |
Die Konfigurationsdatei für die automatisierte Installation können wir natürlich auch selbst erstellen, oder eine vorhandene Datei weiter bearbeiten. Bei der Installation eines unserer Linux-/ | Die Konfigurationsdatei für die automatisierte Installation können wir natürlich auch selbst erstellen, oder eine vorhandene Datei weiter bearbeiten. Bei der Installation eines unserer Linux-/ | ||
Zeile 143: | Zeile 144: | ||
{{ : | {{ : | ||
+ | ===== Festplatten sicher löschen mit DBAN ===== | ||
+ | {{: | ||
+ | Zum sicheren Löschen und Vernichten der Inhalte von Datenträgern greifen wir daher auf **[[http:// | ||
+ | |||
+ | ==== Download ==== | ||
+ | Bevor wir uns das aktuelle ISO-Image herunter laden, erstellen wir uns im Verzeichnis // | ||
+ | # mkdir -p / | ||
+ | Als nächstes holen wir uns von der [[http:// | ||
+ | # wget http:// | ||
+ | |||
+ | Anschließend erstellen wir uns im Verzeichnis // | ||
+ | # mkdir -p / | ||
+ | |||
+ | Dieses ISO-Image mounten wir nun über das Loopback-Device: | ||
+ | # mount -o loop dban-2.2.8_i586.iso /mnt/data/ | ||
+ | |||
+ | Nun können wir das zu bootende DBAN-Image wie auch die Hilfetexte in unser Zielverzeichnis kopieren | ||
+ | # cp / | ||
+ | # cp / | ||
+ | |||
+ | Ist dies erledigt, können wir das ISO-Image wieder unmounten, da wir dieses nicht mehr benötigen. | ||
+ | # umount /mnt/data/ | ||
+ | |||
+ | ==== Konfiguration ==== | ||
+ | Damit wir bei einem PXE-Boot DBAN auch als Option im Bootmenü auftaucht, müssen wir noch die Konfigurationsdatei **/ | ||
+ | |||
+ | Da es für **DBAN** sehr viele Optionen beim Laden und ausführen gibt, werden wir all diese Optionen nicht direkt in das Hauptmenü unseres **PXE-Bootservers** ein, sondern werden diese in ein eigenes Untermenü auslagern. | ||
+ | |||
+ | Hierzu werden wir nun mit dem Editor unserer Wahl, als z.B. **vim**, einfach den folgenden Block am Ende der Konfigurationsdatei " | ||
+ | < | ||
+ | MENU LABEL ^A) Untermenue DBAN: Festplatten sicher loeschen | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Die Bezeichnung **LABEL** passen wir natürlich den eigenen Begebenheiten nach an! | ||
+ | # vim / | ||
+ | |||
+ | <file bash / | ||
+ | # erstes einfaches Bootmenü für PXE-Boot | ||
+ | |||
+ | # Einbinden des User-Interface-Module vesamenu.c32 | ||
+ | default vesamenu.c32 | ||
+ | # starten des Standardeintrages nach 10 Sekunden | ||
+ | timeout 100 | ||
+ | # [0] Boot-Prompt ausblenden [1] Boot-Prompt standardmäßig angezeigen | ||
+ | prompt 0 | ||
+ | # [0] Öffnen des Boot mit ESC ermöglichen [1] Funktion deaktivieren. | ||
+ | noescape 0 | ||
+ | |||
+ | # Definition der Überschrift unseres Bootmenüs | ||
+ | menu title *** PXE Boot-Auswahl Menue *** | ||
+ | # Definition einer Hintergrundgraphik für das Bootmenü (Größe: 640x480 Format: PNG) | ||
+ | menu background bootgraphik.png | ||
+ | |||
+ | menu color title 1; | ||
+ | menu color sel * #00000000 #0824b5 * | ||
+ | menu color hotsel 1; | ||
+ | menu color unsel 1; | ||
+ | menu color hotkey 1; | ||
+ | menu color tabmsg 1; | ||
+ | menu color cmdline 1; | ||
+ | menu color timeout_msg 1; | ||
+ | menu color timeout 1; | ||
+ | |||
+ | # Definition der einzelnen Booteinträge: | ||
+ | # LABEL : Eindeutige Bezeichnung eines Booteintrages | ||
+ | # MENU LABEL : Aussagekräftige Beschreibung des LABELs, welche im Mootmenü angezeigt werden soll | ||
+ | # KERNEL | ||
+ | # APPEND | ||
+ | |||
+ | LABEL 1 | ||
+ | MENU LABEL ^1) Boot from ^HD (default) | ||
+ | | ||
+ | |||
+ | LABEL 2 | ||
+ | MENU LABEL ^2) CentOS 6.x (64 Bit) Installation (Intranet) | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 3 | ||
+ | MENU LABEL ^3) CentOS 6.x (64 Bit) Desktop-Installation (Intranet) | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 4 | ||
+ | MENU LABEL ^4) CentOS 6.x (64 Bit) Installation (DMZ) | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 5 | ||
+ | MENU LABEL ^5) CentOS 6.x (32 Bit) Installation (Intranet) | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 6 | ||
+ | MENU LABEL ^6) CentOS 6.x (32 Bit) Desktop-Installation (Intranet) | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 7 | ||
+ | MENU LABEL ^7) CentOS 6.x (32 Bit) Installation (DMZ) | ||
+ | | ||
+ | | ||
+ | |||
+ | # Django : 2014-02-28 Fedora 20 angefügt | ||
+ | LABEL 8 | ||
+ | MENU LABEL ^8) Fedora 20 (32 Bit) Installation (Intranet) | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 9 | ||
+ | MENU LABEL ^9) Fedora 20 (64 Bit) Installation (Intranet) | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | LABEL A | ||
+ | MENU LABEL ^A) Untermenue DBAN: Festplatten sicher loeschen | ||
+ | | ||
+ | | ||
+ | | ||
+ | LABEL C | ||
+ | MENU LABEL ^C) Clonezilla (i686-PAE) | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL D | ||
+ | MENU LABEL ^D) Clonezilla (AMD-64) | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Das eigentliche Auswahlmenü der einzelnen Boot-Parameter von **DBAN** lagern wir, wie Eingangs schon angeschnitten in eine eigene Konfigurationsdatei **dban** aus. | ||
+ | Diese Datei legen wir uns nun an. | ||
+ | # vim / | ||
+ | |||
+ | <file bash / | ||
+ | # verschachteltes Bootmenü ( Baumstruktur) für PXE-Boot | ||
+ | |||
+ | # Einbinden des User-Interface-Module vesamenu.c32 | ||
+ | default vesamenu.c32 | ||
+ | # starten des Standardeintrages nach 60 Sekunden | ||
+ | timeout 600 | ||
+ | # [0] Boot-Prompt ausblenden [1] Boot-Prompt standardmäßig angezeigen | ||
+ | prompt 0 | ||
+ | # [0] Öffnen des Boot mit ESC ermöglichen [1] Funktion deaktivieren. | ||
+ | noescape 0 | ||
+ | |||
+ | # Definition der Überschrift unseres Bootmenüs | ||
+ | menu title *** DBAN - Festplatten/ | ||
+ | # Definition einer Hintergrundgraphik für das Bootmenü (Größe: 640x480 Format: PNG) | ||
+ | menu background bootgraphik.png | ||
+ | |||
+ | menu color title 1; | ||
+ | menu color sel * #00000000 #0824b5 * | ||
+ | menu color hotsel 1; | ||
+ | menu color unsel 1; | ||
+ | menu color hotkey 1; | ||
+ | menu color tabmsg 1; | ||
+ | menu color cmdline 1; | ||
+ | menu color timeout_msg 1; | ||
+ | menu color timeout 1; | ||
+ | |||
+ | # Definition der einzelnen Booteinträge: | ||
+ | # LABEL : Eindeutige Bezeichnung eines Booteintrages | ||
+ | # MENU LABEL : Aussagekräftige Beschreibung des LABELs, welche im Mootmenü angezeigt werden soll | ||
+ | # KERNEL | ||
+ | # APPEND | ||
+ | |||
+ | LABEL 1 | ||
+ | MENU LABEL ^1) Zurueck zum Hauptmenue | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 2 | ||
+ | MENU LABEL ^2) DBAN - Standard: autonuke | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 3 | ||
+ | MENU LABEL ^3) DBAN - Standard: mit Auswahl der Methode | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 4 | ||
+ | MENU LABEL ^4) DBAN - Standard: Methode " | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 5 | ||
+ | MENU LABEL ^5) DBAN - Standard: Methode " | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 6 | ||
+ | MENU LABEL ^6) DBAN - Standard: Methode " | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 7 | ||
+ | MENU LABEL ^7) DBAN - Standard: Methode " | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 8 | ||
+ | MENU LABEL ^8) DBAN - Standard: Methode " | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL 9 | ||
+ | MENU LABEL ^9) DBAN - Standard: Methode " | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL A | ||
+ | MENU LABEL ^A) DBAN - Standard: Metode " | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL B | ||
+ | MENU LABEL ^B) DBAN - Standard: Methode " | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL C | ||
+ | MENU LABEL ^C) DBAN - Standard: Methode " | ||
+ | | ||
+ | | ||
+ | |||
+ | # Troubleshooting Labels | ||
+ | |||
+ | LABEL D | ||
+ | MENU LABEL ^D) DBAN - Troubleshooting - Option: nofloppy | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL E | ||
+ | MENU LABEL ^E) DBAN - Troubleshooting - Option: | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL F | ||
+ | MENU LABEL ^F) DBAN - Troubleshooting - Option: | ||
+ | | ||
+ | | ||
+ | |||
+ | # Debugging Labels | ||
+ | |||
+ | LABEL G | ||
+ | MENU LABEL ^G) DBAN - Debugging - Option: debug | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL H | ||
+ | MENU LABEL ^H) DBAN - Debugging - Option: shell | ||
+ | | ||
+ | | ||
+ | |||
+ | LABEL I | ||
+ | MENU LABEL ^I) DBAN - Debugging - Option: verbose | ||
+ | | ||
+ | | ||
+ | |||
+ | # Print the product banner and liability disclaimer. | ||
+ | DISPLAY mages/ | ||
+ | |||
+ | # Extra screens. | ||
+ | F1 images/ | ||
+ | F2 images/ | ||
+ | F3 images/ | ||
+ | F4 images/ | ||
+ | |||
+ | |||
+ | # The Boot Prompt | ||
+ | # --------------- | ||
+ | # | ||
+ | # Usage: [label [kernel options] [nuke=" | ||
+ | # | ||
+ | # Dwipe Options: | ||
+ | # | ||
+ | # | ||
+ | # -m --method | ||
+ | # -r --rounds | ||
+ | # | ||
+ | # | ||
+ | # Dwipe Methods: | ||
+ | # | ||
+ | # dod522022m | ||
+ | # dodshort dod3pass | ||
+ | # gutmann | ||
+ | # ops2 RCMP TSSIT OPS-II standard wipe. | ||
+ | # prng random | ||
+ | # quick zero Quick erase. | ||
+ | # | ||
+ | # Verification Levels: | ||
+ | # | ||
+ | # 0 off Do not read anything back from the device. | ||
+ | # 1 last Check whether the device is empty after wiping. | ||
+ | # 2 all Check whether all passes were written properly. | ||
+ | # | ||
+ | # Notes: | ||
+ | # | ||
+ | # * The rounds option does not apply to to the quick method. This method | ||
+ | # always runs one round. | ||
+ | # | ||
+ | # * Use at least four rounds with the prng method. Using eight rounds with | ||
+ | # the prng method is recommended. | ||
+ | # | ||
+ | # * The last pass of every method fills the device with zeros, except the | ||
+ | # ops2 method which fills the device with a random stream on its last pass. | ||
+ | # | ||
+ | </ | ||
+ | ==== Test ==== | ||
+ | An dem fraglichen Rechner führen wir einen Netzwerk-Boot aus. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Hier wählen wir dann den Menüpunkt **// | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Nach Anwahl des Untermenüs bzw durch Eingabe des Buchstabens " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Wählen wir die Option **// | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Nachdem DBAN gebootet wurde, erfolgt auch gleich das Löschen. Je nach Festplattengröße kann dies durchaus mehrere Stunden betragen! | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Am Ende der erfolgreichen Datenverbichtung, | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Haben wir die Option **DBAN - Standard: mit Auswahl der Methode** beim PXE-Auswahlmenü ausgewählt, | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Mit **[F2]** werden uns weitere Informationen zu DBAN angezeigt. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Mit Drücken der Taste **[F3]** erhalten wir weitere Informationen zu den einzelnen Löschoptionen. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Spezielle Hinweise zu RAID-Controllern erhalten wir, sofern wir die Taste **[F4]** drücken. | ||
+ | |||
+ | {{ : | ||
+ | ===== Festplatten/ | ||
====== Links ====== | ====== Links ====== | ||
- | * **[[centos:pxe_c6|Zurück zum Kapitel >> | + | * **[[centos:pxe:start|Zurück zum Kapitel >> |
* **[[wiki: | * **[[wiki: | ||
* **[[http:// | * **[[http:// | ||
~~DISCUSSION~~ | ~~DISCUSSION~~ | ||
+ | |||
+ | |||
+ | ~~AUTOTWEET: |