开门见山的说的话,就是如何 [完全实现] 用 dnsmasq 取代 Windows Server 里的 WDS 服务。我试着按照 (Microsoft 提供的 PXE 启动 Windows PE 文档)[https://docs.microsoft.com/windows/deploy/configure-a-pxe-server-to-load-windows-pe] 中提供的方法进行操作,**在最终实验中发现 BIOS 启动会出现 "TFTP download failed",UEFI 启动卡在 "Contacting Server (192.168.50.1)"**。我的 dnsmasq 配置文件内容如下,请问有何错误吗?
Google 了一下,说是要在 dhcpd 里把所有的 "\\" 换成 "/"。然而我似乎没有在 dnsmasq 的文档里找到相关设置。
```ini
enable-tftp
tftp-lowercase # 试过去掉这条,依然无效
tftp-root=/tmp/mnt/sda1/PXE
dhcp-match=set:bios,60,PXEClient:Arch:00000
dhcp-boot=tag:bios,Boot/pxeboot.0 # 官方教程给的是 pxeboot.n12,我后来度娘了一下,貌似要改名成 pxeboot.0
dhcp-match=set:efibc,60,PXEClient:Arch:00007
dhcp-boot=tag:efibc,Boot/wdsmgfw.efi
dhcp-match=set:efi64,60,PXEClient:Arch:00009
dhcp-boot=tag:efi64,Boot/wdsmgfw.efi
```
我试过使用 iPXE 进行启动,问题在于 iPXE 的兼容性真心堪忧,我在我的 2010 年产的 HP Presario CQ42-221AX 上会卡 "iPXE initialising devices..." 由于缺乏编译条件所以也没办法编译 debug 版本。
文件放置情况如下:
https://ooo.0o0.ooo/2017/04/30/5905e43c0d6e7.png 启动错误情况如下:
https://ooo.0o0.ooo/2017/04/30/5905e43c4a44f.png