You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collect logs and other files to identify and troubleshoot issues with Arc virtual machines (VMs) in your Azure Stack HCI system.
16
+
17
+
## Collect files when VM provisioning fails
18
+
19
+
Use these files to gather key information about a VM provisioning failure before you contact Microsoft Support for more help.
20
+
21
+
### Windows VMs
22
+
23
+
The Windows Panther folder contains Windows setup, installation, and upgrade log files. This folder also includes logs for all scripts used to customize the VM.
| SetupAct.log | C:\Windows\panther\| Contains information about setup actions during the installation. |
29
+
| SetupErr.log | C:\Windows\panther\| Contains information about setup errors during the installation. |
30
+
| SetupComplete.log | C:\Windows\panther\| Contains custom scripts that run during or after the Windows Setup process. For HCI, includes enabling WinRM, enabling ssh, and installing Microsoft On-premises Cloud (MOC) guest agent. |
31
+
| Script files | C:\Windows\setup\scripts\| Scripts from ISO |
32
+
| System.evtx | C:\Windows\system32\winevt\logs\| Windows event logs |
33
+
34
+
### Linux VMs
35
+
36
+
Examine these log files to investigate a VM provisioning failure:
| cloud-init-output.log | /var/log/ | Captures the output from each stage of cloud-init when it runs. |
41
+
| cloud-init.log | /var/log/ | A detailed log with debugging output, detailing each action taken. |
42
+
| log files | /run/cloud-init/ | Contains logs about how cloud-init decided to enable or disable itself, and what platforms/datasources were detected. These logs are most useful when trying to determine what cloud-init ran or didn't run. |
43
+
44
+
## Collect guest logs
45
+
46
+
Collect guest logs to gather information on Arc VM issues before you contact Microsoft Support.
For more information, see [Active Directory domain join troubleshooting guidance](/troubleshoot/windows-server/active-directory/active-directory-domain-join-troubleshooting-guidance).
58
+
59
+
### MOC guest agent logs
60
+
61
+
MOC guest agent logs are useful when Arc VM provisioning fails with the following error:
62
+
63
+
`Could not establish HyperV connection for VM ID...`
64
+
65
+
Example error:
66
+
67
+
`{"code":"moc-operator virtualmachine serviceClient returned an error while reconciling: rpc error: code = Unknown desc = Could not establish HyperV connection for VM ID [E5BF0FC3-DB6D-40AA-BB46-DD94E4E0719A] within [900] seconds, error: [<nil>]","message":"moc-operator virtualmachine serviceClient returned an error while reconciling: rpc error: code = Unknown desc = Could not establish HyperV connection for VM ID [E5BF0FC3-DB6D-40AA-BB46-DD94E4E0719A] within [900] seconds, error: [<nil>]","additionalInfo":[{"type":"ErrorInfo","info":{"category":"Uncategorized","recommendedAction":"","troubleshootingURL":""}}]}`
Copy file name to clipboardExpand all lines: azure-stack/hci/manage/troubleshoot-arc-enabled-vms.md
+7-36Lines changed: 7 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Troubleshoot Azure Arc VM management
3
3
description: Learn how to troubleshoot Azure Arc VM management
4
4
author: alkohli
5
5
ms.topic: how-to
6
-
ms.date: 07/10/2024
6
+
ms.date: 07/26/2024
7
7
ms.author: alkohli
8
8
ms.reviewer: vlakshmanan
9
9
---
@@ -14,46 +14,17 @@ ms.reviewer: vlakshmanan
14
14
15
15
This article provides guidance on how to collect logs and troubleshoot issues with Azure Arc virtual machines (VMs) in your Azure Stack HCI cluster. It also lists the limitations and known issues that currently exist with Azure Arc VM management.
16
16
17
-
18
-
## Collect logs
19
-
20
-
You can collect logs to identify and troubleshoot issues with Arc VMs in your Azure Stack HCI system. Use these logs to gather key information before you contact Microsoft support for additional help.
21
-
22
-
Make sure you have the latest PowerShell module for log collection. To update the PowerShell module, run the following command:
-**$csv_path** is the full path of the cluster shared volume provided for creating Arc Resource Bridge.
41
-
42
-
-**$VMIP_1** is the IP address of the Arc Resource Bridge VM.
43
-
44
-
- Optionally, set the `-logDir` parameter to specify the path to the directory where the generated logs are stored. If you don't specify the path or the parameter, by default the logs are stored in your current working directory.
45
-
46
17
## Troubleshoot Azure Arc VMs
47
18
48
19
This section describes the errors related to Azure Arc VM management and their recommended resolutions.
49
20
50
-
###Failure when trying to enable guest management
21
+
## Failure when trying to enable guest management
51
22
52
23
When trying to run the command to enable guest management, you see the following error:
53
24
54
25
**Error:**`Deployment failed. Correlation ID: 5d0c4921-78e0-4493-af16-dffee5cbf9d8. VM Spec validation failed for guest agent provisioning: Invalid managed identity. A system-assigned managed identity must be enabled in parent resource: Invalid Configuration`
55
26
56
-
The above failure is because the managed identity wasn't created for this VM. System-assigned Managed Identity is required to enable guest management.
27
+
This failure is because the managed identity wasn't created for this VM. System-assigned Managed Identity is required to enable guest management.
57
28
58
29
**Resolution:**
59
30
@@ -104,13 +75,13 @@ Follow these steps to verify that the Managed Identity isn't created for this VM
104
75
105
76
:::image type="content" source="./media/troubleshoot-arc-enabled-vms/managed-identity-missing-3.png" alt-text="Screenshot of JSON view when Managed Identity is enabled." lightbox="./media/troubleshoot-arc-enabled-vms/managed-identity-missing-3.png":::
106
77
107
-
### Failure deploying an Arc VM
78
+
## Failure deploying an Arc VM
108
79
109
80
You see the following error when trying to deploy an Arc VM on your Azure Stack HCI cluster:
110
81
111
82
**Error:** `{"code":"ConflictingOperation","message":"Unable to process request 'Microsoft.AzureStackHCI/virtualMachineInstances'. There is already a previous running operation for resource '/subscriptions/<subscription ID>/resourceGroups/<Resource group name>/providers/Microsoft.HybridCompute/machines/<VM name>/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default'. Please wait for the previous operation to complete."}`
112
83
113
-
The above failure is because the `SystemAssigned` managed identity object isn't under the `Microsoft.HybridCompute/machines` resource type.
84
+
This failure is because the `SystemAssigned` managed identity object isn't under the `Microsoft.HybridCompute/machines` resource type.
114
85
115
86
**Resolution:**
116
87
@@ -120,7 +91,7 @@ The `SystemAssigned` managed identity object is under `Microsoft.HybridCompute/m
120
91
121
92
The deployment template should match the provided sample template. For more information, see the sample template in [Create Arc virtual machines on Azure Stack HCI](./create-arc-virtual-machines.md).
122
93
123
-
### Failure deleting storage path
94
+
## Failure deleting storage path
124
95
125
96
When trying to delete a storage path on your Azure Stack HCI cluster, you might see an error similar to the following message. Resource numbers and versions may vary in your scenario.
126
97
@@ -140,7 +111,7 @@ Follow these steps before trying to remove a storage path:
140
111
1. Remove the associated workloads and the images present on the storage path you want to delete. Look for the following prefixes on the image names: `linux-cblmariner`, `windows-windows2019`, `windows-windows2022`, `windows_k8s`, `aks-image-merged`, `linux-K8s`.
141
112
1. File a [support ticket in the Azure portal](/azure/azure-portal/supportability/how-to-create-azure-support-request).
142
113
143
-
### Azure CLI installation isn't recognized
114
+
## Azure CLI installation isn't recognized
144
115
145
116
If your environment fails to recognize Azure CLI after installing it, run the following code block to add the Azure CLI installation path to the environment path.
0 commit comments