Windows 停止错误 - 0x00000074 错误系统配置信息Windows stop error - 0x00000074 Bad System Config Info

本文提供了相关步骤,用于解决由于 Azure 虚拟机 (VM) 中的系统配置信息不正确而导致 Windows 无法启动并且需要重启的问题。This article provides steps to resolve issues where Windows cannot boot and needs to restart due to bad system configuration information in an Azure Virtual Machine (VM).

症状Symptom

使用启动诊断查看 VM 的屏幕截图时,可看到屏幕截图显示 Windows 停止代码“#0x00000074”或“BAD_SYSTEM_CONFIG_INFO” 。When you use Boot diagnostics to view the screenshot of the VM, you'll see that the screenshot displays the Windows stop code #0x00000074 or BAD_SYSTEM_CONFIG_INFO.

你的电脑遇到问题,需要重启 。你可以重启。 有关此问题和可能的修补程序的详细信息,请访问 http://windows.com/stopcode 如果致电支持人员,请向他们提供以下信息: 停止代码 :BAD_SYSTEM_CONFIG_INFOYour PC ran into a problem and needs to restart. You can restart. For more information about this issue and possible fixes, visit http://windows.com/stopcode If you call a support person, give them this info: Stop code: BAD_SYSTEM_CONFIG_INFO

Windows 停止代码 0x00000074,也显示为“BAD_SYSTEM_CONFIG_INFO”。

原因Cause

如果“SYSTEM”注册表配置单元似乎已损坏,则会出现“BAD_SYSTEM_CONFIG_INFO”停止代码 。The BAD_SYSTEM_CONFIG_INFO stop code occurs if the SYSTEM registry hive appears to be corrupted. 此错误可能由以下原因引起:This error can be caused by any of these reasons:

  • 未正确关闭注册表配置单元。The registry hive wasn't closed properly.
  • 注册表配置单元损坏。The registry hive is corrupt.
  • 缺少注册表项或值。There are missing registry keys or values.

解决方案Solution

过程概述:Process overview:

  1. 创建和访问修复 VM。Create and Access a Repair VM.
  2. 检查配置单元损坏情况。Check for hive corruption.
  3. 启用串行控制台和内存转储收集。Enable serial console and memory dump collection.
  4. 重新生成 VM。Rebuild the VM.

备注

遇到此错误时,来宾操作系统 (OS) 无法正常运行。When encountering this error, the Guest operating system (OS) is not operational. 将在脱机模式下进行故障排除才能解决此问题。You'll troubleshoot in offline mode to resolve this issue.

创建和访问修复 VMCreate and access a Repair VM

  1. 使用 VM 修复命令 的步骤 1-3 准备一个修复 VM。Use steps 1-3 of the VM Repair Commands to prepare a Repair VM.
  2. 检查配置单元损坏情况。Check for hive corruption.
  3. 使用远程桌面连接来连接到修复 VM。Use Remote Desktop Connection to connect to the Repair VM.
  4. 复制 <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config 文件夹并将其保存在运行正常的磁盘分区或其他安全位置。Copy the <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config folder and save it in either your healthy disk partition, or in another safe location. 请备份此文件夹以防万一,因为你将编辑关键注册表文件。Back up this folder as a precaution, since you will edit critical registry files.

备注

复制 <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config 文件夹作为备份,以备你需要回退对注册表所做的任何更改。Make a copy of the <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config folder as a backup in case you need to roll back any changes you make to the registry.

检查配置单元损坏情况Check for hive corruption

以下说明将帮助你确定原因是配置单元损坏,还是配置单元未正确关闭。The instructions below will help you determine if the cause was due to hive corruption, or if the hive wasn't closed correctly. 如果配置单元未正确关闭,则可以解锁文件并修复 VM。If the hive wasn't closed correctly, then you'll be able to unlock the file and fix your VM.

  1. 在修复 VM 上,打开“注册表编辑器”应用程序。On your repair VM, open the Registry Editor application. 在 Windows 搜索栏中键入“REGEDIT”即可找到它。Type "REGEDIT" in the Windows search bar to find it.

  2. 在注册表编辑器中,选择“HKEY_LOCAL_MACHINE”以突出显示它,然后选择“文件”>“加载配置单元…” In Registry Editor, select HKEY_LOCAL_MACHINE to highlight it, then select File > Load Hive… from the menu.

  3. 浏览到 <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config\SYSTEM 并选择“打开”。Browse to <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config\SYSTEM and select Open.

  4. 系统提示输入名称时,请输入 BROKENSYSTEM。When prompted to enter a name, enter BROKENSYSTEM.

    1. 如果配置单元未能打开,或者为空,则说明配置单元已损坏。If the hive fails to open, or if it is empty, then the hive is corrupted. 如果配置单元已损坏,请开具支持工单If the hive has been corrupted, open a support ticket.

      出现错误,指出注册表编辑器无法加载配置单元。

    2. 如果配置单元正常打开,则说明配置单元未正确关闭。If the hive opens normally, then the hive wasn't closed properly. 继续执行步骤 5.Continue to step 5.

  5. 要修复未正确关闭的配置单元,请突出显示 BROKENSYSTEM,然后选择“文件”>“卸载配置单元…” To fix a hive that wasn't closed properly, highlight BROKENSYSTEM then select File > Unload Hive… 以解锁该文件。to unlock the file.

启用串行控制台和内存转储收集Enable the serial console and memory dump collection

建议 :在重新生成 VM 之前,通过运行以下脚本来启用串行控制台和内存转储收集:Recommended : Before you rebuild the VM, enable the Serial Console and memory dump collection by running the following script:

  1. 以管理员身份打开权限提升的命令提示符会话。Open an elevated command prompt session as an Administrator.

  2. 运行以下命令:Run the following commands:

    启用串行控制台Enable the Serial Console :

    bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /ems {<BOOT LOADER IDENTIFIER>} ON 
    bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /emssettings EMSPORT:1 EMSBAUDRATE:115200
    
  3. 验 OS 磁盘上的可用空间是否大于 VM 上的内存大小 (RAM)。Verify that the free space on the OS disk is larger than the memory size (RAM) on the VM.

    如果 OS 磁盘上没有足够的空间,请更改将要创建内存转储文件的位置,并将该位置引用到具有足够可用空间的 VM 上附加的任何数据磁盘。If there's not enough space on the OS disk, change the location where the memory dump file will be created, and refer that location to any data disk attached to the VM that has enough free space. 若要更改位置,请在以下命令中将 %SystemRoot% 替换为数据磁盘的驱动器号(例如,F:)。To change the location, replace %SystemRoot% with the drive letter of the data disk, such as F: , in the following commands.

    用于启用 OS 转储的建议配置:Suggested configuration to enable OS Dump:

    从损坏的 OS 磁盘加载注册表配置单元:Load Registry Hive from the broken OS Disk:

    REG LOAD HKLM\BROKENSYSTEM <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config\SYSTEM
    

    在 ControlSet001 上启用:Enable on ControlSet001:

    REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 1 /f 
    REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "%SystemRoot%\MEMORY.DMP" /f 
    REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v NMICrashDump /t REG_DWORD /d 1 /f 
    

    在 ControlSet002 上启用:Enable on ControlSet002:

    REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 1 /f 
    REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "%SystemRoot%\MEMORY.DMP" /f 
    REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v NMICrashDump /t REG_DWORD /d 1 /f 
    

    卸载损坏的 OS 磁盘:Unload Broken OS Disk:

    REG UNLOAD HKLM\BROKENSYSTEM
    

重新生成 VMRebuild the VM

使用 VM 修复命令的步骤 5 重新生成 VM。Use step 5 of the VM Repair Commands to rebuild the VM.