我发现 Windows 10 1909 VM 的 Windows sysprep 进程失败。使用 Vmware 克隆技术从父 VM 克隆 VM,然后在这些克隆上调用 sysprep。我可以看到 sysprep 正确启动 -
2020-07-16 07:24:37, Info SYSPRP ========================================================
2020-07-16 07:24:37, Info SYSPRP === Beginning of a new sysprep run ===
2020-07-16 07:24:37, Info SYSPRP ========================================================
2020-07-16 07:24:37, Info [0x0f004d] SYSPRP The time is now 2020-07-16 07:24:37
2020-07-16 07:24:37, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\windows\system32\sysprep\Panther
2020-07-16 07:24:37, Info [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
然而,它失败了——
2020-07-16 07:24:47, Info SYSPRP SPPNP: Started task '\Microsoft\Windows\Plug and Play\Sysprep Generalize Drivers'...
2020-07-16 07:24:47, Info SYSPRP SPPNP: Task state changed to TASK_STATE_READY.
2020-07-16 07:24:51, Info SYSPRP SPPNP: Task state changed to TASK_STATE_UNKNOWN.
如上所示,没有错误,“Sysprep Generalize Drivers”任务已启动,但任务进入未知状态,之后 sysprep 日志中没有任何条目。看起来 sysprep 只是挂起了。在 Windows 事件日志中没有得到任何线索。任何关于如何调试和解决这个问题的想法都将不胜感激