WDS 2008 R2 DHCP 错误

WDS 2008 R2 DHCP 错误

我遇到了一个问题,当从 Windows 7 DVD 中获取的标准 WDS boot.wim 映像启动时,出现错误“从 DHCP 服务器获取 IP 地址时发生错误。请检查以确保此网络段上有一个可运行的 DHCP 服务器”。

我正在使用 Server 2008 R2,并使用 WDS 将驱动程序添加到启动中,但如果事先使用 DISM 注入驱动程序,也会出现问题。

发生错误时,我可以按 shift + F10 和 IPCONFIG,然后看到它已从 DHCP 中获取内部 IP。似乎在获取 IP 之前超时了?DHCP 服务器不在 WDS 盒上,但位于同一子网中。

根据我读过的一些修复,我在交换机上启用了 RSTP,但这没有帮助。

我附上了 setupact.log 的结尾,看看你们是否有任何想法。似乎失败了,但正如我所说,网络已初始化,因为我可以在运行 IPCONFIG 时看到 DHCP 分配的内部 IP。

我认为没有什么办法可以增加超时时间吗?

谢谢。

2011-04-11 17:26:31, Info       [0x0b0022] WDS    StartNetworking: Trying to start networking.
2011-04-11 17:26:31, Info                  WDS    Network service dhcp not running or could not be queried: 264d00 1 1
2011-04-11 17:26:31, Info                  WDS    Network service lmhosts not running or could not be queried: 264e18 1 1
2011-04-11 17:26:31, Info                  WDS    Network service lanmanworkstation not running or could not be queried: 264d00 1 1
2011-04-11 17:26:31, Info                  WDS    Network service bfe not running or could not be queried: 264e18 1 1
2011-04-11 17:26:31, Info                  WDS    Network service ikeext not running or could not be queried: 264d00 1 1
2011-04-11 17:26:31, Info                  WDS    Network service mpssvc not running or could not be queried: 264e18 1 1
2011-04-11 17:27:24, Info                  WDS    Installing device pci\ven_14e4&dev_1691&subsys_04aa1028 X:\WINDOWS\INF\oem37.inf succeeded
2011-04-11 17:27:25, Info                  WDS    No computer name specified, generating a random name.
2011-04-11 17:27:25, Info                  WDS    Renaming computer to MININT-VN2P876.
2011-04-11 17:27:25, Info                  WDS    Acquired profiling mutex
2011-04-11 17:27:25, Info                  WDS    Service winmgmt disable: 0x00000000
2011-04-11 17:27:25, Info                  WDS    Service winmgmt stop: 0x00000000
2011-04-11 17:27:25, Info                  WDS    Service winmgmt enable: 0x00000000
2011-04-11 17:27:25, Info                  WDS    Released profiling mutex
2011-04-11 17:27:25, Info                  WDS    Acquired profiling mutex
2011-04-11 17:27:25, Info                  WDS    Install MS_MSCLIENT: 0x0004a020
2011-04-11 17:27:25, Info                  WDS    Install MS_NETBIOS: 0x0004a020
2011-04-11 17:27:25, Info                  WDS    Install MS_SMB: 0x0004a020
2011-04-11 17:27:25, Info                  WDS    Install MS_TCPIP6: 0x0004a020
2011-04-11 17:27:26, Info                  WDS    Install MS_TCPIP: 0x0004a020
2011-04-11 17:27:26, Info                  WDS    Service dhcp start: 0x00000000
2011-04-11 17:27:26, Info                  WDS    Service lmhosts start: 0x00000000
2011-04-11 17:27:26, Info                  WDS    Service ikeext start: 0x00000000
2011-04-11 17:27:26, Info                  WDS    Service mpssvc start: 0x00000000
2011-04-11 17:27:26, Info                  WDS    Released profiling mutex
2011-04-11 17:27:26, Info                  WDS    Spent 967ms installing network components
2011-04-11 17:27:28, Info                  WDS    Spent 2247ms installing network drivers
2011-04-11 17:27:38, Info                  WDS    QueryAdapterStatus: no operational adapters found.
2011-04-11 17:27:38, Info                  WDS    Spent 10140ms confirming network initialization; status 0x80004005
2011-04-11 17:27:38, Info                  WDS    WaitForNetworkToInitialize failed; ignoring error
2011-04-11 17:27:38, Info                  WDS    GetNetworkingInfo: WpeNetworkStatus returned [0x0]. Flags set:   
2011-04-11 17:27:38, Error      [0x0b003f] WDS    StartNetworking: Failed to start networking. Error code [0x800704C6].[gle=0x000000cb]
2011-04-11 17:27:38, Info       [0x0640ae] IBSLIB PublishMessage: Publishing message [WdsClient: An error occurred while obtaining an IP address from the DHCP server. Please check to ensure that there is an operational DHCP server on this network segment.]

答案1

虽然不是一个完美的答案,但可能会对其他人有所帮助。

  1. 已安装 boot.wim 文件的索引 2。

  2. 在图像的根目录中将setup.exe重命名为setupx.exe。

  3. 在已安装的映像中编辑 \windows\system32\startnet.cmd

@echo 关闭

@echo Loading WinPE...
wpeinit

@echo Starting networking...
:testagain
ping -n 1 SERVERNAME > NUL
if %errorlevel% == 0 goto pingok
REM wait 3 sec. and try it again
ping -n 3 127.0.0.1 >nul
goto testagain
:pingok

@echo Running Setup...
x:\setupx.exe /wds /wdsdiscover /wdsserver:SERVERNAME
  1. 已保存并卸载索引 2 并将其添加到 WDS。

在我看来,这是一种 hack,不应该被要求。网络初始化需要这么长时间肯定是有原因的,但目前这样就够了。

我很想知道是否有其他人有更优雅的解决方案。

相关内容