Skip to content

Commit 14be1de

Browse files
fix(setup): show ARM64-appropriate virtualization message on ARM64
When preflight-wsl fails with 'virtualization is not enabled' on an ARM64 device, the previous message told users to enable 'VT-x/AMD-V (Intel VT or AMD SVM)' — terminology that doesn't exist on ARM64. Branch the remediation text on RuntimeInformation.OSArchitecture: - Arm64 → generic UEFI / Intune / HVCI wording - x64/x86 → existing VT-x/AMD-V text (unchanged) Closes #593 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent eb06fba commit 14be1de

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/OpenClaw.SetupEngine/SetupSteps.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Net;
33
using System.Net.Http;
44
using System.Net.Sockets;
5+
using System.Runtime.InteropServices;
56
using System.Text.Json;
67
using OpenClaw.Connection;
78
using OpenClaw.Shared;
@@ -93,15 +94,21 @@ public static bool TryGetEnvironmentIssue(string output, out string message)
9394
{
9495
var text = Normalize(output);
9596

96-
// Firmware virtualization off (VT-x/AMD-V disabled in BIOS/UEFI).
97+
// Firmware virtualization off (VT-x/AMD-V or ARM EL2 disabled).
9798
// wsl.exe emits this when the Windows feature is installed but the
9899
// CPU virtualization extension is turned off; remediation requires
99100
// a trip into firmware settings, not `wsl --install`.
100101
if (Contains(text, "virtualization is not enabled"))
101102
{
102-
message = "WSL2 requires hardware virtualization, but it is disabled in firmware. "
103-
+ "Enable VT-x/AMD-V (Intel VT or AMD SVM) in your computer's BIOS/UEFI settings, "
104-
+ "reboot, then retry setup.";
103+
message = RuntimeInformation.OSArchitecture == Architecture.Arm64
104+
? "WSL2 requires hardware virtualization, but it is disabled in firmware. "
105+
+ "Enable virtualization in your device's UEFI settings (look for "
106+
+ "'Virtualization Support' or similar). On managed devices this may be "
107+
+ "controlled by your organization's Intune policy (Memory Integrity / HVCI). "
108+
+ "Reboot, then retry setup."
109+
: "WSL2 requires hardware virtualization, but it is disabled in firmware. "
110+
+ "Enable VT-x/AMD-V (Intel VT or AMD SVM) in your computer's BIOS/UEFI settings, "
111+
+ "reboot, then retry setup.";
105112
return true;
106113
}
107114

0 commit comments

Comments
 (0)