我尝试从网络成功启动 Windows 7 (x64) 安装,但失败。我使用的PXE服务器基于pxelinux
和tftp-hda
.
我遵循这个指南https://blog.hmkruse.de/2016/01/28/Installing-Windows-7-with-a-PXE-boot-server/但我收到以下错误
那是File: \Boot\BCD , Status: 0xc0000001
此错误确实在互联网上弹出,但没有任何解决方案有帮助。所以我开始tcpdump port 69
检查正在发生的事情:
03:04:54.438733 IP <...>: 41 RRQ "message.txt" octet tsize 0 blksize 1408
03:04:58.845116 IP <...>: 45 RRQ "Boot/startrom.0" octet tsize 0 blksize 1408
03:04:58.868300 IP <...>: 33 RRQ "bootmgr.exe" octet blksize 1456
03:04:59.942315 IP <...>: 42 RRQ "\Boot\Fonts\wgl4_boot.ttf" octet tsize 0
03:04:59.972947 IP <...>: 26 RRQ "\boot.ini" octet tsize 0
03:05:15.217769 IP <...>: 26 RRQ "\Boot\BCD" octet tsize 0
03:05:15.224985 IP <...>: 39 RRQ "\Boot\BCD" octet tsize 0 blksize 1420
03:05:15.239790 IP <...>: 42 RRQ "\Boot\Fonts\wgl4_boot.ttf" octet tsize 0
我的 Windows 启动文件夹中绝对没有“boot.ini”文件。不过,我确实有其余的文件(链接中也有解释)。
你有遇到过这个问题吗?它响了吗?为什么引导程序可以完成?
预先感谢您的帮助
答案1
/etc/xinetd.d/tftpd 文件进行此更改
server_args = -vvv -m /etc/remap.cfg
然后创建文件/etc/remap.cfg
# The purpose of this file is to do some remapping of the incoming
# tftp requests in the cases where we can identify the incoming client
# (i.e. in the case of Windows). This helps us achieve a better organization
# in the tftp directory structure.
#
# Remap all paths starting with \ to lowercase. This normalizes
# all windows tftp requests to lowercase files.
# We also prefix "\winpe" to the request.
r ^\\(.*)$ \\\Lwinpe\\\1
# Remap all \ path separators to / (Windows to Unix style)
rg \\ /