我正在尝试通过工头将Ubuntu 16.04configuration到soekris net6501。 过程本身现在实际上工作得很好。
有一件事情没有做到我们想要的是configuration之后的一步。 这个想法是能够在任何阶段将新的镜像/操作系统部署到盒子上,并且默认尝试PXE启动,如果PXE没有发生,则转到本地磁盘。
所以,当工头设置build立主机的PXE引导工作正常(经过一些调整和实验),但在configuration完成后的第一次重新启动机器只是挂起。
PXE-M0F: Exiting Intel Boot Agent.
如果我更改BIOS以使本地磁盘一切正常。 但那不是我想要的; 一些机器将在数据中心,并在那里用笔记本电脑玩串行控制台是不可取的。
[编辑1下面]
从工头日志片段:
14:45:38 foreman dhcpd: DHCPDISCOVER from 00:00:24:d2:05:bc via eth1 14:45:38 foreman dhcpd: DHCPOFFER on 192.168.0.4 to 00:00:24:d2:05:bc via eth1 14:45:42 foreman dhcpd: Dynamic and static leases present for 192.168.0.4. 14:45:42 foreman dhcpd: Remove host declaration testkris or remove 192.168.0.4 14:45:42 foreman dhcpd: from the dynamic address pool for 192.168.0.0/23 14:45:42 foreman dhcpd: DHCPREQUEST for 192.168.0.4 (192.168.0.1) from 00:00:24:d2:05:bc via eth1 14:45:42 foreman dhcpd: DHCPACK on 192.168.0.4 to 00:00:24:d2:05:bc via eth1 14:45:43 foreman in.tftpd[15186]: tftp: client does not accept options
和机器的PXE.cfg:
SERIAL 0 19200 0 CONSOLE 0 DEFAULT menu PROMPT 0 MENU TITLE PXE Menu TIMEOUT 200 TOTALTIMEOUT 6000 ONTIMEOUT local LABEL local MENU LABEL (local) MENU DEFAULT LOCALBOOT 0
[编辑2下面](输出乱码,试图清理逃生序列尽我所能):
Intel(R) Boot Agent GE v1.3.72 Copyright (C) 1997-2010, Intel Corporation Initializing and establishing link... CLIENT MAC ADDR: 00 00 24 D2 05 BC DHCP.. CLIENT IP: 192.168.0.4 MASK: 255.255.254.0 DHCP IP: 192.168.0.1 GATEWAY IP: 192.168.0.1 TFTP. TFTP. !PXE entry point found (we hope) at 95D2:0106 via plan AUNDI code segment at 95D2 len 5210UNDI data segment at 8F97 len 63 Getting cached packet 01 02 03My IP address seems to be C0A80004 192.168.0.4ip=192.168.0.4:192.168.0.1:192.168.0.1:255.255.254.0BOOTIF=01-00-00-24-d2-05-bcTFTP prefix: Trying to load: pxelinux.cfg/01-00-00-24-d2-05-bc ok PXELINUX 4.05 20140113 Copyright (C) 1994-2011 H. Peter Anvin et al @lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqkx^O PXE Menu tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu x (local) x xx xx xx xx xx xx xx xx xx xx xx mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj Press [Tab] to edit options Automatic boot in 1 second... PXE-M0F: Exiting Intel Boot Agent.
然后它只是坐在那里。
通过反复试验,我发现使用LOCALBOOT 0
命令不适用于所有的硬件。
您需要针对不同的硬件有不同的磁盘引导命令。 阅读有关syslinux wiki上硬件兼容性问题的更多信息: http : //www.syslinux.org/wiki/index.php? title=Hardware_Compatibility#LOCALBOOT
以下是我们使用的3种不同的“硬盘”启动命令,并且没有一个命令适用于所有硬件。
KERNEL chain.c32 APPEND hd0 LOCALBOOT 0 LOCALBOOT -1
另外,我经历过的并不是所有的syslinux版本都能很好地工作。 所以尝试不同的版本,看看哪个最适合你的硬件。