V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
chenyiping1995
V2EX  ›  Linux

Linux 开源软件 (dnsmasq) 取代 Windows Deployment Services (WDS) 的讨论

  •  
  •   chenyiping1995 ·
    chenyiping1995 · 2017-04-30 21:20:26 +08:00 · 1052 次点击
    这是一个创建于 2525 天前的主题,其中的信息可能已经有所发展或是发生改变。
    开门见山的说的话,就是如何 [完全实现] 用 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
    6 条回复    2017-05-01 08:32:53 +08:00
    flynaj
        1
    flynaj  
       2017-05-01 00:40:15 +08:00 via Android
    不是已经提示 tftp 了么,测试一下 tftp
    flynaj
        2
    flynaj  
       2017-05-01 00:41:33 +08:00 via Android
    文件名跟配置里面一致就行
    deyu260
        3
    deyu260  
       2017-05-01 06:58:43 +08:00
    199221212665
    deyu260
        4
    deyu260  
       2017-05-01 06:59:56 +08:00
    chenyiping1995
        5
    chenyiping1995  
    OP
       2017-05-01 07:32:17 +08:00
    @deyu260 现在的问题是我用的是 dnsmasq 的内置 TFTP, 没有办法实现"\\"到"/"的转置
    chenyiping1995
        6
    chenyiping1995  
    OP
       2017-05-01 08:32:53 +08:00 via Android
    @flynaj 我确定 TFTP 是好的,要不然根本不会跳转到这里
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2891 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:56 · PVG 21:56 · LAX 06:56 · JFK 09:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.