排查 Windows 无法完成系统配置的问题Troubleshoot Windows could not finish configuring the system

本文介绍了如何解决 Sysprep 进程阻止 Azure 虚拟机 (VM) 启动的问题。This article provides steps to resolve issues where the Sysprep process prevents the booting of an Azure virtual machine (VM).

症状Symptom

使用启动诊断查看 VM 的屏幕截图时,你会看到 Windows 安装程序启动服务时,该屏幕截图显示“安装 Windows”错误。When you use Boot diagnostics to view the screenshot of the VM, you will see that the screenshot displays an Install Windows error while Windows setup is starting services. 此错误将显示消息:The error will display the message:

Windows could not finish configuring the system. To attempt to resume configuration, restart the computer. Setup is starting services

图 1 显示了“安装 Windows 错误”,其消息如下:“Windows 无法完成系统配置。

原因Cause

当操作系统 (OS) 无法完成 Sysprep 进程时,则会导致此错误。This error is caused when the operating system (OS) is unable to complete the Sysprep process. 尝试初次启动通用 VM 时,将发生此错误。This error will occur when you attempt an initial boot of a generalized VM. 如果遇到此问题,请重新创建通用映像,因为该映像处于不可部署状态且无法恢复。If you encounter this issue, recreate the generalized image, as the image is in an un-deployable state and cannot be recovered.

解决方案Solution

要修复此问题,请按照有关准备/捕获映像的 Azure 指南操作,并准备新的通用映像。To fix this issue, follow the Azure guidance on preparing/capturing an image and prepare a new generalized image.