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
Copy file name to clipboardExpand all lines: azure-stack/hci/migrate/migrate-enable-guest-management.md
+88-6Lines changed: 88 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,17 @@ All Hyper-V generation 1 VMs must be powered off before proceeding with the foll
89
89
az stack-hci-vm show --name $vmName --resource-group $rgName --query "properties.status"
90
90
```
91
91
92
-
:::image type="content" source="./media/migrate-enable-guest-management/vm-stopped.png" alt-text="Screenshot of window showing VM power state." lightbox="./media/migrate-enable-guest-management/vm-stopped.png":::
92
+
Sample output:
93
+
94
+
```azurecli
95
+
PS C : \Users\AzureStackAdminD> az stack-hci-vm show --name <VM name> --resource-group <resource group> --query "properties.status"
96
+
{
97
+
"errorCode":
98
+
"errorMessage" :
99
+
"powerstate": "Stopped",
100
+
"provisioningstatus": null
101
+
}
102
+
```
93
103
94
104
1. For Hyper-V generation 2 VMs, ensure the power status shown on Azure portal matches the actual power state of the migrated VM on Hyper-V Manager, regardless of whether it is **On** or **Off**:
:::image type="content" source="./media/migrate-enable-guest-management/vm-agent-true.png" alt-text="Screenshot of output showing ISO attached for guest agent." lightbox="./media/migrate-enable-guest-management/vm-agent-true.png":::
Sample state of the VM with the ISO attached, viewed from the Azure Stack HCI system:
117
143
@@ -129,7 +155,15 @@ Sample state of the VM with the ISO attached, viewed from the Azure Stack HCI sy
129
155
az stack-hci-vm show --name $vmName --resource-group $rgName --query “properties.status”
130
156
```
131
157
132
-
:::image type="content" source="./media/migrate-enable-guest-management/powerstate-stopped.png" alt-text="Screenshot showing VM Running status in Azure portal." lightbox="./media/migrate-enable-guest-management/powerstate-stopped.png":::
158
+
```azurecli
159
+
PS C: \Users\AzureStackAdminD> az stack-hci-vm show --name <Name> --resource-group <Resource group> --query "properties.status"
160
+
{
161
+
"errorCode":
162
+
"errorMessage":
163
+
"powerState": "Running",
164
+
"provisioningStatus": null
165
+
}
166
+
```
133
167
134
168
**Step 4**: Install the guest agent ISO on the migrated VM as follows:
135
169
@@ -147,7 +181,16 @@ Sample state of the VM with the ISO attached, viewed from the Azure Stack HCI sy
147
181
148
182
**Sample output (Linux):**
149
183
150
-
:::image type="content" source="./media/migrate-enable-guest-management/linux-output.png" alt-text="Screenshot of Linux output window showing guest agent enablement." lightbox="./media/migrate-enable-guest-management/linux-output.png":::
1. Check for guest management enablement status in Azure portal:
174
251
175
252
:::image type="content" source="./media/migrate-enable-guest-management/guest-management-enabled-portal.png" alt-text="Screenshot of guest management enablement in Azure portal." lightbox="./media/migrate-enable-guest-management/guest-management-enabled-portal.png":::
@@ -182,7 +259,12 @@ If you encounter any issues, contact Microsoft Support and provide your logs and
182
259
183
260
If you forgot to turn off Hyper-V Generation 1 VM before running the update command with `--enable-vm-config-agent true`, the update command will fail and the VM may become unmanageable from Azure portal:
0 commit comments