PXE Boot

Benutzeravatar
SisterOfMercy
Beiträge: 1524
Registriert: 22 Jun 2012, 19:18

Re: PXE Boot

Beitrag von SisterOfMercy »

Maybe increase the verbosity of the tftp service:

Edit the systemd service file, /usr/lib/systemd/system/opsi-tftpd-hpa.service (location may depend on distro).

Code: Alles auswählen

ExecStart=/usr/sbin/in.tftpd -v –ipv4 –listen –address :69 –secure –blocksize 1024 /tftpboot/
In this line either remove the -v and add –verbosity value, or just add the -v a couple of times.

It will then become either this:

Code: Alles auswählen

ExecStart=/usr/sbin/in.tftpd -v -v -v –ipv4 –listen –address :69 –secure –blocksize 1024 /tftpboot/
or this:

Code: Alles auswählen

ExecStart=/usr/sbin/in.tftpd –verbosity 9 –ipv4 –listen –address :69 –secure –blocksize 1024 /tftpboot/
The other parameters given here are of course just an example.

After editing execute: # systemctl daemon-reload and restart the opsi-tftpd-hpa service.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
michaelortner
Beiträge: 11
Registriert: 12 Jul 2022, 07:24

Re: PXE Boot

Beitrag von michaelortner »

Hallo,

leider das selbe problem erneut.


Jul 12 11:16:43 opsi systemd[1]: Stopped Opsi TFTPD HPA Configuration Service.
Jul 12 11:16:43 opsi systemd[1]: Starting Opsi TFTPD HPA Configuration Service...
Jul 12 11:16:44 opsi systemd[1]: Started Opsi TFTPD HPA Configuration Service.
Jul 12 11:17:01 opsi CRON[12894]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jul 12 11:17:12 opsi in.tftpd[12897]: RRQ from 172.16.0.134 filename linux/pxelinux.cfg/shimx64.efi.signed
Jul 12 11:17:12 opsi in.tftpd[12897]: tftp: client does not accept options
Jul 12 11:17:12 opsi in.tftpd[12899]: RRQ from 172.16.0.134 filename linux/pxelinux.cfg/shimx64.efi.signed
Jul 12 11:17:12 opsi in.tftpd[12900]: RRQ from 172.16.0.134 filename grubx64.efi
Benutzeravatar
SisterOfMercy
Beiträge: 1524
Registriert: 22 Jun 2012, 19:18

Re: PXE Boot

Beitrag von SisterOfMercy »

The directory /tftpboot/ is filled, right?

Have you tried setting the dhcp server back to linux/pxelinux.0 in combination with a legacy client?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
michaelortner
Beiträge: 11
Registriert: 12 Jul 2022, 07:24

Re: PXE Boot

Beitrag von michaelortner »

Hallo,

ja ist gefüllt. Ich habe es mal bei dem selben Gerät nochmal probiert mit linux/pxelinux.0, hierbei kommt ein ähnlicher Fehler:


Jul 12 15:47:27 opsi in.tftpd[13355]: RRQ from 172.16.0.134 filename linux/pxelinux.0
Jul 12 15:47:27 opsi in.tftpd[13355]: tftp: client does not accept options
Jul 12 15:47:27 opsi in.tftpd[13356]: RRQ from 172.16.0.134 filename linux/pxelinux.0
michaelortner
Beiträge: 11
Registriert: 12 Jul 2022, 07:24

Re: PXE Boot

Beitrag von michaelortner »

Ich habe aus Interesse nun bisschen weiter geschaut und habe nochmal Anpassungen an der /usr/lib/systemd/system/opsi-tftpd-hpa.service durchgeführt.

Nun kommt dieser Fehler:


Jul 12 15:51:53 opsi in.tftpd[13475]: RRQ from 172.16.0.134 filename linux/pxelinux.cfg/shimx64.efi.signed
Jul 12 15:51:53 opsi in.tftpd[13475]: tftp: client does not accept options
Jul 12 15:51:53 opsi in.tftpd[13476]: RRQ from 172.16.0.134 filename linux/pxelinux.cfg/shimx64.efi.signed
Jul 12 15:51:53 opsi in.tftpd[13478]: RRQ from 172.16.0.134 filename grubx64.efi
Jul 12 15:51:53 opsi in.tftpd[13478]: sending NAK (1, File not found) to 172.16.0.134
Benutzeravatar
SisterOfMercy
Beiträge: 1524
Registriert: 22 Jun 2012, 19:18

Re: PXE Boot

Beitrag von SisterOfMercy »

It says there is a file requested by the client.

Code: Alles auswählen

Jul 12 15:51:53 opsi in.tftpd[13478]: sending NAK (1, File not found) to 172.16.0.134
Now we're getting somewhere. Does /tftpboot/linux/pxelinux.cfg/grubx64.efi
Does it have the correct rights?

# opsi-setup --set-rights
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
michaelortner
Beiträge: 11
Registriert: 12 Jul 2022, 07:24

Re: PXE Boot

Beitrag von michaelortner »

Guten Morgen,

ja hat es. Zu sehen hier:

total 2220
drwxrwxr-x 2 opsiconfd opsifileadmins 4096 Jul 12 08:40 .
drwxrwxr-x 3 opsiconfd opsifileadmins 4096 Jul 5 11:27 ..
-rw-rw-r-- 1 opsiconfd opsifileadmins 665 Jul 5 10:41 default
-rw-rw-r-- 1 opsiconfd opsifileadmins 665 Jul 12 08:40 default.menu
-rw-rw-r-- 1 opsiconfd opsifileadmins 34 Jul 5 10:41 default.nomenu
-rw-rw-r-- 1 opsiconfd opsifileadmins 43 Jul 5 10:41 elilo.conf
-rw-rw-r-- 1 opsiconfd opsifileadmins 236130 Mai 16 09:00 elilo.efi
-rw-rw-r-- 1 opsiconfd opsifileadmins 787944 Mai 16 09:00 grubx64.efi
-rw-rw-r-- 1 opsiconfd opsifileadmins 299 Jul 5 10:41 install3264
-rw-rw-r-- 1 opsiconfd opsifileadmins 198 Jul 5 10:41 install-elilo-x64
-rw-rw-r-- 1 opsiconfd opsifileadmins 238 Jul 5 10:41 install-grub-x64
-rw-rw-r-- 1 opsiconfd opsifileadmins 178 Jul 5 10:41 install-x64
-rw-rw-r-- 1 opsiconfd opsifileadmins 60 Aug 11 2015 memtest86
-rw-rw-r-- 1 opsiconfd opsifileadmins 56 Sep 2 2021 pcmemtest
-rw-rw-r-- 1 opsiconfd opsifileadmins 101 Sep 2 2021 pcmemtest.efi
-rw-rw-r-- 1 opsiconfd opsifileadmins 1191448 Mai 16 09:00 shimx64.efi.signed
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1534
Registriert: 10 Jun 2015, 12:19

Re: PXE Boot

Beitrag von m.radtke »

Moin,

aus irgendeinem Grund wird versucht die grubx64.efi von /tftpboot/ auszuliefern und nicht wie üblich aus dem relativem Pfad von der shimx64.efi.signed

so sieht es bei uns von unserer Hauptmaschine aus, auf der auch der dhcp läuft

Code: Alles auswählen

Jul 13 00:00:32 opsi in.tftpd[29134]: RRQ from 192.168.2.30 filename linux/pxelinux.cfg/shimx64.efi.signed
Jul 13 00:00:32 opsi in.tftpd[29135]: RRQ from 192.168.2.30 filename linux/pxelinux.cfg/grubx64.efi
Ich schätze das hängt mit dem externem DHCP zusammen.

Testweise kannst du die grubx64.efi von /tftpboot/linux/pxelinux.cfg/ nach /tftpboot/ kopieren und weiter schauen. Dennoch sollte die Ursache gefunden werden.

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
michaelortner
Beiträge: 11
Registriert: 12 Jul 2022, 07:24

Re: PXE Boot

Beitrag von michaelortner »

Hallo @m.radtke,

vielen Dank für diese nützliche Information. Tatsächlich funktioniert es nun so. Jedoch ist nun die Frage, wie ich das mache, dass es auch so läuft wie gewollt. Wir nutzen Unifi, gibt es da andere Einstellungen die hierbei vorgenommen werden müssen?
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1534
Registriert: 10 Jun 2015, 12:19

Re: PXE Boot

Beitrag von m.radtke »

Hi

Was man da umstellen muss kann ich dir nicht genau sagen, da ich Unifi nicht kenne.
Mit dem standart isc dhcp server und einem windows DHCP funktioniert das so wie es soll.

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Antworten