PXE UEFI dhcpd.conf

Antworten
jannik_do
Beiträge: 2
Registriert: 07 Sep 2021, 11:25

PXE UEFI dhcpd.conf

Beitrag von jannik_do »

Hallo zusammen,

ich bin gerade dabei OPSI zu evaluieren, um uns die Arbeit beim Aufsetzen von Clients per PXE zu erleichtern. Leider bootet der Client nicht im PXE, da er immer wieder die Legacy Datei (pxelinux.0) bekommt.
Meine dhcpd.conf sieht derzeit so aus:

Code: Alles auswählen

default-lease-time 600;
max-lease-time 7200;
authoritative ;
allow unknown-clients;
allow booting;
allow bootp;

subnet 10.128.1.0 netmask 255.255.255.0 {
        option subnet-mask 255.255.255.0;
        option routers 10.128.1.202;

        pool {
                range dynamic-bootp 10.128.1.191 10.128.1.199;
        }

        next-server 10.128.1.190;
        filename "linux/pxelinux.cfg/shimx64.efi.signed";

        host esl-test {
                fixed-address 10.128.1.191;
                hardware ethernet 00:15:5d:01:97:0b;
                filename "linux/pxelinux.0";
        }

        host esl-buero {
                fixed-address 10.128.1.192;
                hardware ethernet a4:bb:6d:4d:b1:a8;
                filename "linux/pxelinux.0";
        }
}
use-host-decl-names on;
Sobald ich in opsi einen neuen Client anlege, wird ein neuer Host-Eintrag mit filename pxelinux.0 erfasst. Wie kann ich das abstellen? Ich vermute, dass das Problem daher kommt...
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1528
Registriert: 10 Jun 2015, 12:19

Re: PXE UEFI dhcpd.conf

Beitrag von m.radtke »

Hi,

normalerweise sollte der DHCP laut unserer Empfehlung so konfiguriert sein

Code: Alles auswählen

next-server 10.100.1.70;
                filename "linux/pxelinux.0";
                if substring (option vendor-class-identifier , 19,1 ) = "0" {
                        log (info, "pxe client");                       filename "linux/pxelinux.0";
                }
                else if substring (option vendor-class-identifier , 19,1 ) = "6" {
                        log (info, "efi32 client");                     filename "linux/pxelinux.cfg/elilo-x86.efi";
                }
                else if substring (option vendor-class-identifier , 19,1 ) = "7" {
                        log (info, "efi64 client");                     filename "linux/pxelinux.cfg/shimx64.efi.signed";
                }
                else {
                        log (info, concat ( "Unhandled vendor class Arch: ", substring (option vendor-class-identifier , 19,1 )));
                }
 
Ich bin mir aktuell nicht sicher wie das dhcp Backend die prüfung mache, aber ich kann mir vorstellen das es pxelinux.0 fest reinsetzt, da nicht pxelinux.0 das default filename ist.

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
jannik_do
Beiträge: 2
Registriert: 07 Sep 2021, 11:25

Re: PXE UEFI dhcpd.conf

Beitrag von jannik_do »

Hallo Mathias,

hat super funktioniert, danke!

Gruß
Jannik
Antworten