Problem TFTPBOOT and UEFI

Antworten
o.ferre
Beiträge: 64
Registriert: 19 Nov 2010, 13:58
Wohnort: LYON - France

Problem TFTPBOOT and UEFI

Beitrag von o.ferre »

Hi All,

I use OPSI to only deploy Windows Operating System (no package deployement) ; for this, I use boot PXE with Syslinux Boot Loader.
I have the module UEFI/GPT install on the Opsi Server.
But I can't boot OPSI correctly. I think the TFTP load the miniroot and install-x64 files, but it stops after this. And the computer reboot after few minutes

Code: Alles auswählen

Nov 12 15:52:20 opsi-server in.tftpd[28072]: RRQ from client_ip filename efi64/opsi/install-x64
Nov 12 15:52:27 opsi-server in.tftpd[29497]: RRQ from client_ip1ilename efi64/opsi/miniroot-x64.bz2
If anyone has ever encoutered this problem, thanks for the help
Version :

Code: Alles auswählen

ii  opsi-configed                        4.0.7.6.34-2                     all          OPSI config editor
ii  opsi-depotserver                     4.1.0.0-3                        all          transitional package
ii  opsi-linux-bootimage                 20180813-1                       all          opsi bootimage for netboot tasks.
ii  opsi-server                          4.1.1.4-10                       all          opsi server configuration package
ii  opsi-tftpd-hpa                       5.2.8-47                         amd64        HPA's tftp server
ii  opsi-utils                           4.1.1.25-1                       all          utilites for working with opsi.
ii  opsiconfd                            4.1.1.10-7                       all          opsi configuration service
ii  opsipxeconfd                         4.1.1.13-1                       all          opsi pxe configuration daemon
ii  python-opsi                          4.1.1.47-1                       all          opsi python library
Olivier
O.Ferre
ENS de Lyon
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1517
Registriert: 10 Jun 2015, 12:19

Re: Problem TFTPBOOT and UEFI

Beitrag von m.radtke »

Hi

so the computer doesn't start the bootimage correctly?
Does this affect ony one specific type of PCs or all UEFI PCs in your setup?

Cheers
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
o.ferre
Beiträge: 64
Registriert: 19 Nov 2010, 13:58
Wohnort: LYON - France

Re: Problem TFTPBOOT and UEFI

Beitrag von o.ferre »

Hi Mathias,
thanks for your reply. All the computers are affected by the problem. I think it's a problem with SYSLINUX. So I would like to know if anyone succeed to boot OPSI in UEFI mode with PXE Syslinux ?

Thanks,
Olivier
O.Ferre
ENS de Lyon
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1517
Registriert: 10 Jun 2015, 12:19

Re: Problem TFTPBOOT and UEFI

Beitrag von m.radtke »

Hi Olivier,

If you have the UEFI opsi Module why aren't you using the elilo.efi provided by the opsi Package?
Did you set the proper DHCP settings for the UEFI module?

could you provide a full syslog view when the client 'speaks' to the tftpd?

Cheers
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: Problem TFTPBOOT and UEFI

Beitrag von SisterOfMercy »

m.radtke hat geschrieben:Did you set the proper DHCP settings for the UEFI module?
I would guess something like this too.

part of (ISC) dhcpd.conf:

Code: Alles auswählen

option client-arch code 93 = array of unsigned integer 16;
if not exists client-arch {
       filename "linux/pxelinux.0";
} elsif substring (option client-arch,0,0) = option client-arch {
       filename "linux/pxelinux.0";
} elsif option client-arch = encode-int (0,16) {       # 0 x86 BIOS
       filename "linux/pxelinux.0";
} elsif option client-arch = encode-int (6,16) {       # 6 x86 UEFI
       filename "linux/pxelinux.cfg/elilo-x86.efi";
} elsif option client-arch = encode-int (7,16) {       # 7 x64 UEFI
       filename "linux/pxelinux.cfg/elilo.efi";
} elsif option client-arch = encode-int (9,16) {       # 9 UEFI ByteCode
       filename "linux/pxelinux.cfg/elilo.efi";
}
In reality you only get 0 or 7, but this is the correct way to do it.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
o.ferre
Beiträge: 64
Registriert: 19 Nov 2010, 13:58
Wohnort: LYON - France

Re: Problem TFTPBOOT and UEFI

Beitrag von o.ferre »

Hi
the DHCP config is like this :

Code: Alles auswählen

  if option architecture-type = 0 {
         filename "path/to/BIOS/pxelinux.0";
     } elsif option architecture-type = 9 {
         filename "path/to/EFIx64/syslinux.efi";
     } elsif option architecture-type = 7 {
         filename "path/to/EFIx64/syslinux.efi";
     } elsif option architecture-type = 6 {
         filename "path/to/EFIia32/syslinux.efi";
     }
Why I don't use elilo.efi ? because the PXE was in place for other tools (like backup, livecd, linux deployement) before OSPI. And, in my institution, I don't manage the DHCP server ! but I can ask to modify this in a test VLAN to use elilo.efi.

thanks for your reply Mathias and SisterofMercy
Olivier
O.Ferre
ENS de Lyon
o.ferre
Beiträge: 64
Registriert: 19 Nov 2010, 13:58
Wohnort: LYON - France

Re: Problem TFTPBOOT and UEFI

Beitrag von o.ferre »

Hi,
after testing, I can install new computers with OPSI in UEFI mode with ELILO bootloader (with a small text menu)
this is the elilo.conf

Code: Alles auswählen


# force chooser to textmenu
chooser=textmenu

delay=20
prompt

#
# the files containing the text (with attributes) to display
#
message=textmenu-message.msg


image=/linux/install-x64
  label=opsi
  description="Installation Windows avec OPSI"
  append="initrd=/linux/miniroot-x64.bz2 debug video=vesa:ywrap,mtrr vga=normal --no-log console=tty1 console=ttyS0"
  initrd=/linux/miniroot-x64.bz2

But sadly, I think I lost some fonctions like graphical bootmenu (for example, the pxe menu of my establishment)
https://ibb.co/iArKX0
and the possibility to put a password on a sub-folder, and the possibility to do pxechain.

Olivier
O.Ferre
ENS de Lyon
Antworten