PXE boot fails with "Malformed binary"
Verfasst: 15 Dez 2021, 14:24
Hi, I am trying to debug a problem with PXE Boot not working.
I get the following error on an UEFI 64bit machine with secure boot disabled:
I have been trying to fix this for days to no avail. The BIOS of the client is on the latest version. Maybe somebody here knows what is happening here or can help me debug this?
See below for more information:
Opsi server version: 4.2 on Debian 10 with opsi-server-full package installed (opsi-tftpd-hpa is installed as well)
Log file /var/log/opsi/opsipxeconfd.log:
Config file /etc/opsi/opsipxeconfd.conf:
DHCP Settings (pfsense as DHCP, suppose that 10.10.1.1 is the IP of the OPSI server):
Client settings:
I followed the breaking change in Opsi 4.2 and changed the "uefi netboot config template x64" value in opsipxeconfd.conf as you can see above.
Also if I enable Secure boot, I instead get the following error: "Operating System Loader has no signature. Incompatible with SecureBoot."
Any ideas how I can debug this?
I get the following error on an UEFI 64bit machine with secure boot disabled:
Code: Alles auswählen
tftp://<private-ip>/linux/pxelinux.cfg/shimx64.efi.signed... ok
shimx64.efi.signed : 1191448 bytes [EFI]
dppath: shimx64.efi.signed
path: shimx64.efi.signed
Fetching Netboot Image
Malformed binary after Attribute Certificate Table
datasize: ? SumOfBytesHashed: ? SecDir->Size ?
hashsize: ? SecDir->VirtualAddress: 0x0034B8A18
Failed to load image: Invalid Parameter
start_image() returned Invalid Parameter
Could not boot image: Error 0x7f048282 (http://ipxe.org/7f048282)
No more network devices
See below for more information:
Opsi server version: 4.2 on Debian 10 with opsi-server-full package installed (opsi-tftpd-hpa is installed as well)
Log file /var/log/opsi/opsipxeconfd.log:
Code: Alles auswählen
[5] [2021-12-15 13:50:38.306] [Opsipxeconfd ] Got connection from client (opsipxeconfd.py:231)
[3] [2021-12-15 13:50:38.315] [ ] Cannot use more than one pxe config template, got: /tftpboot/linux/pxelinux.cfg/install-grub-x64, install3264 (opsipxeconfd.py:773)
[5] [2021-12-15 13:50:38.315] [ ] Did not find any alternate UEFI pxeConfigTemplate, will use the default UEFI template (opsipxeconfd.py:782)
[5] [2021-12-15 13:50:38.322] [ ] UEFI GRUB configuration detected for redacted.domain.de (pxeconfigwriter.py:146)
[5] [2021-12-15 13:50:38.326] [ ] PXE boot configuration for host redacted.domain.de is now set at '/tftpboot/linux/pxelinux.cfg/01-a4-4c-c8-14-47-67' (opsipxeconfd.py:630)
(Nothing after this, even when starting PXE on the client)
Code: Alles auswählen
backend config dir = /etc/opsi/backends
dispatch config file = /etc/opsi/backendManager/dispatch.conf
pid file = /var/run/opsipxeconfd/opsipxeconfd.pid
log file = /var/log/opsi/opsipxeconfd.log
log level = 5
log format = %(log_color)s[%(opsilevel)d] [%(asctime)s.%(msecs)03d]%(reset)s %(message)s (%(filename)s:%(lineno)d)
pxe config dir = /tftpboot/linux/pxelinux.cfg
pxe config template = /tftpboot/linux/pxelinux.cfg/install
uefi netboot config template x86 = /tftpboot/linux/pxelinux.cfg/install-elilo-x86
uefi netboot config template x64 = /tftpboot/linux/pxelinux.cfg/install-grub-x64
max control connections = 5
max pxe config writers = 100
Code: Alles auswählen
tftp-server: 10.10.1.1
next-server: 10.10.1.1
Standard BIOS filename: linux/pxelinux.0
UEFI 32Bit Filename: linux/pxelinux.cfg/elilo-x86.efi
UEFI 64Bit Filename: linux/pxelinux.cfg/shimx64.efi.signed
root-path: empty (I also tried using /tftpboot, but same error)
Code: Alles auswählen
UEFI Boot: enabled
clientconfig.dhcpd.filename: linux/pxelinux.cfg/elilo.efi
Also if I enable Secure boot, I instead get the following error: "Operating System Loader has no signature. Incompatible with SecureBoot."
Any ideas how I can debug this?