"Inteligenten" PXE/TFTP-Boot

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
poncho
Beiträge: 106
Registriert: 23.12.2007 19:22:35

"Inteligenten" PXE/TFTP-Boot

Beitrag von poncho » 22.07.2014 09:36:14

Hallo Gemeinde,

ich boote derzeit etwa 250 Clients per PXE-Boot. Die Zahl wird noch steigen.
Mein Problem ist, dass das ganze mit dem standard tftpd-hpa TFTP-Server mit der Zeit etwas unkomfortabel wird. Ich hab aktuell 11 verschiedene PXE-Konfigs. Um es ein bisschen übersichtlicher zu machen, setze ich für jeden Host einen Symlink auf die entsprechende Konfig und von jeder MAC einen Symlink zum jeweiligen Host. Das sieht dann etwa so aus (gekürzt):
Erst kommen die Mappings von MAC zu Hostname, dann die PXE-Profile und dann die Mappings von Hostname zu Profil.

Code: Alles auswählen

root@ubsrvapp11:/var/lib/tftpboot/pxelinux.cfg# ll
total 52
drwxr-xr-x  2 root root    4096 Jul 22 08:50 ./
drwxr-xr-x 14 root nogroup 4096 Jun  5 16:52 ../
lrwxrwxrwx  1 root root      12 Dez  3  2013 -29-d8 -> pc031
lrwxrwxrwx  1 root root      12 Dez  3  2013 -2a-3d -> pc032
lrwxrwxrwx  1 root root      12 Mai 20 12:38 -2a-46 -> pc084
lrwxrwxrwx  1 root root      12 Mär 20 13:47 -2a-57 -> pc082
lrwxrwxrwx  1 root root      12 Dez  3  2013 -a5-34 -> pc026
lrwxrwxrwx  1 root root      12 Dez  3  2013 -ab-67 -> pc009
lrwxrwxrwx  1 root root      12 Dez  3  2013 -ab-a6 -> pc044
lrwxrwxrwx  1 root root      12 Jun  4 12:58 -ab-b5 -> pc083
lrwxrwxrwx  1 root root      12 Dez  3  2013 -ac-36 -> pc029
lrwxrwxrwx  1 root root      12 Mai 13 09:09 -ac-57 -> pc019
lrwxrwxrwx  1 root root      12 Jul 22 08:50 -ac-7a -> pc005
lrwxrwxrwx  1 root root      12 Dez  3  2013 -ac-dc -> pc013
lrwxrwxrwx  1 root root      12 Dez  3  2013 -ac-ec -> pc020
lrwxrwxrwx  1 root root      12 Mai 14 09:31 -ac-ef -> pc092
lrwxrwxrwx  1 root root      12 Dez  3  2013 -ac-fa -> pc038
lrwxrwxrwx  1 root root      12 Jul 18 14:55 -ad-06 -> pc090
lrwxrwxrwx  1 root root      12 Apr 14 14:10 -c9-d6 -> pc174
lrwxrwxrwx  1 root root      12 Mai 16 09:14 -0d-35 -> pc156
lrwxrwxrwx  1 root root      12 Mai 16 09:56 -10-da -> pc155
lrwxrwxrwx  1 root root      12 Mai 16 09:57 -4d-f1 -> pc121
lrwxrwxrwx  1 root root      12 Jun  5 09:17 -10-37 -> pc008
lrwxrwxrwx  1 root root      12 Mai 13 15:57 -ca-d6 -> bi020
lrwxrwxrwx  1 root root      12 Jan 13  2014 -9d-57 -> rm071
lrwxrwxrwx  1 root root      12 Jan 13  2014 -40-c3 -> rm072
lrwxrwxrwx  1 root root      12 Jan 13  2014 -41-67 -> rm090
lrwxrwxrwx  1 root root      12 Jan 13  2014 -41-a4 -> rm100
lrwxrwxrwx  1 root root      12 Jan 13  2014 -41-e2 -> rm074
lrwxrwxrwx  1 root root      12 Jan 13  2014 -41-f9 -> rm099
lrwxrwxrwx  1 root root      12 Jan 13  2014 -42-47 -> rm073
lrwxrwxrwx  1 root root      12 Dez  3  2013 -59-b7 -> rm220
lrwxrwxrwx  1 root root      12 Jun  5 14:33 -c8-c3 -> pc239
lrwxrwxrwx  1 root root       6 Dez  3  2013 default -> system
-rw-r--r--  1 root root     156 Jan 13  2014 gast
-rw-r--r--  1 root root     134 Apr 15 13:17 ma
-rw-r--r--  1 root root     137 Jun  5 16:52 ma-nvidia
-rw-r--r--  1 root root     177 Feb 14 16:44 printcampus
-rw-r--r--  1 root root     170 Dez 18  2013 system
-rw-r--r--  1 root root     168 Mär 21 13:27 testgast
-rw-r--r--  1 root root     139 Jun  5 11:12 testma-ati
-rw-r--r--  1 root root     143 Jun  5 09:35 testma-intel
-rw-r--r--  1 root root     145 Jun  5 17:02 testma-nvidia
-rw-r--r--  1 root root     189 Jan 13  2014 testprintcampus
-rw-r--r--  1 root root     174 Dez 17  2013 testsystem
lrwxrwxrwx  1 root root       4 Jan 13  2014 rm071 -> gast
lrwxrwxrwx  1 root root       4 Jan 13  2014 rm072 -> gast
lrwxrwxrwx  1 root root       4 Jan 13  2014 rm073 -> gast
lrwxrwxrwx  1 root root       4 Jan 13  2014 rm074 -> gast
lrwxrwxrwx  1 root root       4 Jan 13  2014 rm090 -> gast
lrwxrwxrwx  1 root root       4 Jan 13  2014 rm099 -> gast
lrwxrwxrwx  1 root root       4 Jan 13  2014 rm100 -> gast
lrwxrwxrwx  1 root root      10 Apr  9 11:32 rm220 -> testsystem
lrwxrwxrwx  1 root root       9 Jul 22 08:50 pc005 -> ma-nvidia
lrwxrwxrwx  1 root root      10 Jun  5 11:12 pc008 -> testma-ati
lrwxrwxrwx  1 root root      11 Dez  3  2013 pc009 -> printcampus
lrwxrwxrwx  1 root root      11 Dez  3  2013 pc013 -> printcampus
lrwxrwxrwx  1 root root       9 Jun  5 16:52 pc019 -> ma-nvidia
lrwxrwxrwx  1 root root      11 Dez  3  2013 pc020 -> printcampus
lrwxrwxrwx  1 root root      11 Dez  3  2013 pc026 -> printcampus
lrwxrwxrwx  1 root root      13 Jul  7 11:22 pc029 -> testma-nvidia
lrwxrwxrwx  1 root root      11 Dez  3  2013 pc031 -> printcampus
lrwxrwxrwx  1 root root      11 Dez  3  2013 pc032 -> printcampus
lrwxrwxrwx  1 root root      11 Dez  3  2013 pc038 -> printcampus
lrwxrwxrwx  1 root root      11 Dez  3  2013 pc044 -> printcampus
lrwxrwxrwx  1 root root      13 Jul  7 11:21 pc082 -> testma-nvidia
lrwxrwxrwx  1 root root       6 Jun  4 12:58 pc083 -> testma
lrwxrwxrwx  1 root root       2 Mai 20 12:37 pc084 -> ma
lrwxrwxrwx  1 root root       2 Jul 18 14:54 pc090 -> ma
lrwxrwxrwx  1 root root      13 Jul 17 09:59 pc092 -> testma-nvidia
lrwxrwxrwx  1 root root       2 Mai 16 09:56 pc121 -> ma
lrwxrwxrwx  1 root root       2 Jun 27 15:39 pc155 -> ma
lrwxrwxrwx  1 root root       2 Mai 16 08:41 pc156 -> ma
lrwxrwxrwx  1 root root       2 Apr 15 13:17 pc174 -> ma
lrwxrwxrwx  1 root root      12 Jun  6 09:54 pc239 -> testma-intel
lrwxrwxrwx  1 root root      13 Jun  5 09:37 bi020 -> testma-nvidia
Ich wollte nun eigentlich auf iPXE umsteigen um das komfortabler zu gestalten aber das ist mit unserem DHCP-Server (wird nicht von uns administriert) und der Konfiguration nicht machbar.

Habt ihr eine Idee, wie ich das auf TFTP-Seite noch verbessern kann? gibt es einen TFTP-Server, der vielleicht auf PXE optimiert ist und sich in die Richtung einfacher konfigurieren lässt? Oder gibt es sonst noch Möglichkeiten das zu vereinfachen?

Benutzeravatar
habakug
Moderator
Beiträge: 4313
Registriert: 23.10.2004 13:08:41
Lizenz eigener Beiträge: MIT Lizenz

Re: "Inteligenten" PXE/TFTP-Boot

Beitrag von habakug » 22.07.2014 09:46:25

Hallo!

Es gibt noch Debiandnsmasq. Hier [1] ganz unten "Another Way - use Dnsmasq".

Gruss, habakug

[1] https://wiki.debian.org/PXEBootInstall
( # = root | $ = user | !! = mod ) (Vor der PN) (Debianforum-Wiki) (NoPaste)

poncho
Beiträge: 106
Registriert: 23.12.2007 19:22:35

Re: "Inteligenten" PXE/TFTP-Boot

Beitrag von poncho » 22.07.2014 09:48:39

OK aber der bietet ja, soweit ich das sehen kann, auch keine komfortablere Lösung für mein PXE-Problem. Es wird genauso ein Verzeichnis angegeben, in dem die PXE-Konfigs liegen. Oder weißt du da mehr?

Benutzeravatar
ThorstenS
Beiträge: 2875
Registriert: 24.04.2004 15:33:31

Re: "Inteligenten" PXE/TFTP-Boot

Beitrag von ThorstenS » 25.10.2014 13:45:58

probiers doch mit chainloading: erst normales pxe und dann kommt über tftp der ipxe.
Die Auslieferung der einzelnen #!ipxe Scripte kann dann ein php-Script mit infos aus einer Datenbank on-the-fly generieren.
Das ist doch die Stärke von ipxe - ich an deiner Stelle würde einen gangbaren Weg für ipxe suchen. Alles andere ist sowas von out und unflexibel ;-)

BTW: Sehr lesenswert:
http://blog.schlomo.schapiro.org/2014/0 ... oader.html
http://www.linux-magazin.de/Ausgaben/2014/08/I-PXE

poncho
Beiträge: 106
Registriert: 23.12.2007 19:22:35

Re: "Inteligenten" PXE/TFTP-Boot

Beitrag von poncho » 25.10.2014 21:31:54

Ja, wie geschrieben, ist das mit unserem DHCP-Server leider nicht machbar.

Antworten