在我的ltsp-build-client -arch i386之后一切顺利,但由于某些原因tftpd-hpa没有安装,因此没有/ var / lib / tftpboot文件夹。
所以我必须手动安装tftpd-hpa。 DHCP工作正常,但找不到pxelinux.0文件(它不存在)。
这是我的DHCP服务器conf。
authoritative; subnet 10.10.10.0 netmask 255.255.255.0 { range 10.10.10.20 10.10.10.250; option domain-name "example.net"; option domain-name-servers 10.10.10.1; option broadcast-address 10.10.10.255; option routers 10.10.10.1; option subnet-mask 255.255.255.0; option root-path "/opt/ltsp/i386"; if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" { filename "/ltsp/i386/pxelinux.0"; } else { filename "/ltsp/i386/nbi.img"; } }
客户端机器说:
PXE-T01: File not found PXE-E3B: TFTP Error - File Not Found PXE-MOF: Exiting Intel PXE ROM.
问题:如何生成pxelinux.0文件和/或nbi.img文件? 有图像,但在/opt/ltsp/i386/images/i386.img但我不知道这是什么形象。
TFTP服务器正在运行:/usr/sbin/in.tftpd –listen –user tftp –address 0.0.0.0:69 –secure / var / lib / tftpboot
/ var / lib / tftpboot文件夹是空的。
或者另一个问题 。 如何再次生成pxelinux.0和nbi.img文件?
PXE引导从xinetd或其他超级服务器中指定的tftp目录的父级开始。 这是我的:
[root@sl6 dhcp]# more /etc/xinetd.d/tftp # default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /var/lib/tftpboot per_source = 11 cps = 100 2 flags = IPv4 }
因此,您需要更改服务器argpath,以便指向图像的位置,或者移动图像以使其位于此处:
/var/lib/tftpboot/ltsp/i386/images/pxelinux.0 /var/lib/tftpboot/ltsp/i386/images/i386.img
我已将/ opt / ltsp / i386 / boot文件夹中的内容复制到/ var / lib / tftpboot / ltsp / i386。 事情现在工作正常