Skip to content

Update troubleshoot-arc-enabled-vms.md #3618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 23 additions & 15 deletions azure-local/manage/troubleshoot-arc-enabled-vms.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,30 +162,38 @@ If your environment fails to recognize Azure CLI after installing it, run the fo
}
```

## "Windows created a temporary paging file" message appears at startup
## Live migrations on Azure Local 2311.2 and later could fail without error

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the title to: Live migrations on Azure Local 2311.2 and later could fail without error

**Error:**

When you deploy an Azure Local VM using the SQL Server 2022 on Windows Server 2022 Azure marketplace images (Standard or Enterprise), you might see the following warning at startup:
After you upgrade to Azure Local 2311.2 or on a new deployment of 2311.2 or later, you could see issues where the Azure Local VMs fail to live migrate in an Azure Local instance.

*Windows created a temporary paging file...*
**Issue:** Live migration attempts may fail silently — no error messages are logged.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add: Cause:

**Resolution:**
Cause: This problem is caused by a known issue in Azure Local, version 2311.2 or later. This problem manifests under specific system configurations.

To resolve this issue, follow these steps:

1. Select **OK** on the warning popup. Or, go to **System Properties** > **Advanced** > **Performance** > **Settings** to open the **Performance Options** window.
1. In the **Performance Options** window, select **Change** under the **Virtual memory** section.
**Resolution:**

:::image type="content" source="./media/troubleshoot-arc-enabled-vms/temporary-paging-file-1.png" alt-text="Screenshot of the Performance Options window highlighting the Change button." lightbox="./media/troubleshoot-arc-enabled-vms/temporary-paging-file-1.png":::
Run the following PowerShell script locally on one of the Azure Local machines. This script applies a registry fix on all the machines of your Azure Local instance.

1. In the **Virtual Memory** window, select **System managed size**.  Also ensure that the **Automatically manage paging file size for all drives** checkbox is cleared.
After you have run the script, reboot each machine one at a time for the change to take effect.

:::image type="content" source="./media/troubleshoot-arc-enabled-vms/temporary-paging-file-2.png" alt-text="Screenshot of the Virtual Memory window showing options to configure the paging file size for each drive." lightbox="./media/troubleshoot-arc-enabled-vms/temporary-paging-file-2.png":::
```PowerShell
Get-ClusterNode | ForEach-Object {
Invoke-Command -ComputerName $_.Name -ScriptBlock {
$RegPath = "HKLM:\System\CurrentControlSet\Services\Vid\Parameters"
$ValueName = "SkipSmallLocalAllocations"
$ValueData = 0

# Create the key if it doesn't exist
if (-Not (Test-Path $RegPath)) {
New-Item -Path $RegPath -Force | Out-Null
}

1. Select **Set**, then select **OK** to apply the changes.
# Create or update the DWORD value
New-ItemProperty -Path $RegPath -Name $ValueName -Value $ValueData -PropertyType DWord -Force
}
}
```

1. Restart the VM. After the restart, the warning message should no longer appear.

## Next steps

Expand Down