Skip to content

Commit b69a525

Browse files
authored
Merge pull request #109636 from TobyTu/zhanguo03
new azure article according to ci 115926
2 parents f2a59c7 + 6ead43b commit b69a525

File tree

3 files changed

+115
-0
lines changed

3 files changed

+115
-0
lines changed
Loading

articles/virtual-machines/troubleshooting/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
href: troubleshoot-vm-boot-configure-update.md
9191
- name: VM cannot boot due to windows boot manager
9292
href: troubleshoot-guide-windows-boot-manager-menu.md
93+
- name: VM is unresponsive due to updating
94+
href: unresponsive-vm-apply-windows-update.md
9395
- name: Cannot connect to my VM
9496
items:
9597
- name: RDP
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
---
2+
title: Azure VM is unresponsive with C01A001D error when applying Windows Update
3+
description: This article provides steps to resolve issues where Windows update generates an error and becomes unresponsive in an Azure VM.
4+
services: virtual-machines-windows
5+
documentationcenter: ''
6+
author: TobyTu
7+
manager: dcscontentpm
8+
editor: ''
9+
tags: azure-resource-manager
10+
ms.assetid: a97393c3-351d-4324-867d-9329e31b3528
11+
ms.service: virtual-machines-windows
12+
ms.workload: infrastructure-services
13+
ms.tgt_pltfrm: na
14+
ms.topic: troubleshooting
15+
ms.date: 03/31/2020
16+
ms.author: v-mibufo
17+
---
18+
19+
# VM is unresponsive with "C01A001D" error when applying Windows Update
20+
21+
This article provides steps to resolve issues where Windows Update (KB) generates an error and becomes unresponsive in an Azure VM.
22+
23+
## Symptoms
24+
25+
When using [Boot diagnostics](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/boot-diagnostics) to view the screenshot of the VM, the Windows Update (KB) in progress is displayed, but fails with error code: 'C01A001D'.
26+
27+
![unresponsive Windows Update](./media/unresponsive-vm-apply-windows-update/unresponsive-windows-update.png)
28+
29+
## Cause
30+
31+
A core file can't be created in the file system. The operating system is unable to write files to the disk.
32+
33+
## Resolution
34+
35+
### Process overview
36+
37+
1. [Create and access a repair VM](#create-and-access-a-repair-vm).
38+
2. [Free up space on the hard disk](#free-up-space-on-the-hard-disk).
39+
3. [Recommended: Before rebuilding the VM, enable serial console and memory dump collection](#recommended-before-rebuilding-the-vm-enable-serial-console-and-memory-dump-collection).
40+
4. [Rebuild the VM](#rebuild-the-vm).
41+
42+
> [!NOTE]
43+
> When this error occurs, the Guest OS isn't operational. You must troubleshoot in offline mode to resolve this issue.
44+
45+
### Create and access a repair VM
46+
47+
1. Follow [steps 1-3 of the VM Repair Commands](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/repair-windows-vm-using-azure-virtual-machine-repair-commands) to prepare a Repair VM.
48+
2. Connect to the Repair VM using Remote Desktop Connection.
49+
50+
### Free up space on the hard disk
51+
52+
If the disk isn't already 1 Tb, you must resize it. Once the disk is 1 TB, perform a disk cleanup and a defragmentation of the drive.
53+
54+
1. Check if the disk is full. If the disk is below 1 Tb, [expand it to a maximum of 1 Tb using PowerShell](https://docs.microsoft.com/azure/virtual-machines/windows/expand-os-disk?toc=%2Fazure%2Fvirtual-machines%2Fwindows%2Ftoc.json).
55+
2. Once the disk is 1 Tb, perform a disk cleanup.
56+
- [Detach the data disk from the broken VM](https://docs.microsoft.com/azure/virtual-machines/windows/detach-disk).
57+
- [Attach the data disk to a functioning VM](https://docs.microsoft.com/azure/virtual-machines/windows/attach-disk-ps#attach-an-existing-data-disk-to-a-vm).
58+
- Use the [Disk Cleanup tool](https://support.microsoft.com/help/4026616/windows-10-disk-cleanup) to free up space.
59+
3. After resizing and cleanup, defragment the drive:
60+
61+
```
62+
defrag <LETTER ASSIGN TO THE OS DISK>: /u /x /g
63+
```
64+
Depending on the level of fragmentation, this could take hours.
65+
66+
### Recommended: Before rebuilding the VM, enable serial console and memory dump collection
67+
68+
1. Open an elevated command prompt session (Run as administrator).
69+
2. Run the following commands:
70+
71+
Enable Serial Console:
72+
73+
```
74+
bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /ems {<BOOT LOADER IDENTIFIER>} ON
75+
bcdedit /store <VOLUME LETTER WHERE THE BCD FOLDER IS>:\boot\bcd /emssettings EMSPORT:1 EMSBAUDRATE:115200
76+
```
77+
3. Make sure the free space on the OS disk is at least equal to the VM memory (RAM) size.
78+
79+
If there isn't enough space on the OS disk, change the location where the memory dump file will be created and refer it to a data disk attached to the VM and with sufficient free space. To change the location, replace `%SystemRoot%` with the drive letter (for example "F:") of the data disk in the below commands:
80+
81+
**Enable OS dump suggested configuration:**
82+
83+
Load Broken OS Disk:
84+
85+
```
86+
REG LOAD HKLM\BROKENSYSTEM <VOLUME LETTER OF BROKEN OS DISK>:\windows\system32\config\SYSTEM
87+
```
88+
89+
Enable on ControlSet001:
90+
91+
```
92+
REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 1 /f
93+
REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "%SystemRoot%\MEMORY.DMP" /f
94+
REG ADD "HKLM\BROKENSYSTEM\ControlSet001\Control\CrashControl" /v NMICrashDump /t REG_DWORD /d 1 /f
95+
```
96+
97+
Enable on ControlSet002:
98+
99+
```
100+
REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v CrashDumpEnabled /t REG_DWORD /d 1 /f
101+
REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v DumpFile /t REG_EXPAND_SZ /d "%SystemRoot%\MEMORY.DMP" /f
102+
REG ADD "HKLM\BROKENSYSTEM\ControlSet002\Control\CrashControl" /v NMICrashDump /t REG_DWORD /d 1 /f
103+
```
104+
105+
Unload broken OS disk:
106+
107+
```
108+
REG UNLOAD HKLM\BROKENSYSTEM
109+
```
110+
111+
### Rebuild the VM
112+
113+
Use [step 5 of the VM repair commands](https://docs.microsoft.com/azure/virtual-machines/troubleshooting/repair-windows-vm-using-azure-virtual-machine-repair-commands#repair-process-example) to reassemble the VM.

0 commit comments

Comments
 (0)