Skip to main content

Imaging - Debug

1. Récupération du boot

Passer le tftp en verbose:
Dans /etc/default/tftpd-hpa ajouter -v au paramètre TFTP_OPTIONS et redémarer le service tftpd-hpa
Dans les logs de tftp (/var/log/syslog ou journalctl --unit tftpd-hpa --follow) repérer ces lignes:
in.tftpd[491332]: RRQ from 10.104.108.113 filename bootloader-uefi64/ipxe.efi
in.tftpd[491333]: RRQ from 10.104.108.113 filename bootloader-uefi64/autoexec.ipxe
Si ces lignes n'existent pas, il s'agit d'un problème DHCP

Pour debuguer le TFTP, capturer les trames:
tcpdump -s 0 host <IP_DU_CLIENT> and udp
Pour tester une connexion tftp: 
tftp <IP_DU_SERVEUR> get bootloader-uefi64/ipxe.efi

2. Récupération du menu de boot
Dans les logs d'apache repérer cette ligne:
"GET /mmc/imaging/bootmenu.php?mac=54:bf:64:5c:77:25&uuid=4c4c4544-0057-3210-8053-c4c04f4b5132&srv=10.104.1.20 HTTP/1.1" 200 3717 "-" "iPXE/1.21.1+ (gdd35
)"
Si elle n'existe pas, il s'agit d'un problème d'accès vers le serveur Apache

3. Récupération de Davos
Dans les logs d'apache repérer ces lignes:
"GET /downloads/davos/ipxe.png HTTP/1.1" 404 489 "-" "iPXE/1.21.1+ (gdd35)"
"GET /downloads/davos/vmlinuz HTTP/1.1" 200 15403668 "-" "iPXE/1.21.1+ (gdd35)"
"GET /downloads/davos/initrd.img HTTP/1.1" 200 64921280 "-" "iPXE/1.21.1+ (gdd35)"
"GET /downloads/davos/fs.squashfs HTTP/1.1" 200 1041178859 "-" "Wget"
Si elles n'existent pas, il s'agit d'un problème d'accès vers le serveur Apache


Une fois ces étapes vérifiées, se reporter à "Debugger Davos"