@samitouri / QOSAMI-WSL / commits / 8c9883fb

Add WTI logic to identify when VirtualMachinePlatform needs to be enabled (#11438)

Blue committed Apr 9, 2024 at 21:17 UTC 8c9883fb4da72d3427a84a026eaf03c7bfc31417
2 files changed +28 -2
.github/actions/triage/action.yml
+1 -1
@@ -39,6 +39,6 @@ runs:
39 $maybe_comment = @("--comment", "${{ inputs.comment }}")
40 }
41
42 - curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.4/wti.exe -o triage/wti.exe
42 + curl.exe -L https://github.com/OneBlue/wti/releases/download/v0.1.5/wti.exe -o triage/wti.exe
43
44 cd triage && echo -n $message | .\wti.exe --issue ${{ inputs.issue }} --config config.yml --github-token "${{ inputs.token }}" --ignore-tags @maybe_message @maybe_comment
\ No newline at end of file
triage/config.yml
+27 -1
@@ -31,6 +31,13 @@ logs_rules:
31 missing_logs_add_tags: ['needs-author-feedback']
32 skip_tags: ['feature', 'question', 'emailed-logs', 'network']
33
34 +optional_component_rules:
35 + - name: VirtualMachinePlatform
36 + set: vmp-oc-enabled
37 +
38 + - name: Microsoft-Windows-Subsystem-Linux
39 + set: wsl-oc-enabled
40 +
41 tags_rules:
42 - contains: '/question'
43 tag: 'question'
@@ -97,7 +104,16 @@ rules:
104 name: vm-failed-to-start
105 capture:
106 field4: error
100 -
107 +
108 + - logline:
109 + provider: Microsoft.Windows.Lxss.Manager
110 + task: Error
111 + field8: '0x8004032D' # 0x8004032D = WSL_E_VIRTUAL_MACHINE_PLATFORM_REQUIRED
112 + set:
113 + name: vmp-required
114 + capture:
115 + field8: error
116 +
117 - logline:
118 provider: Microsoft.Windows.Lxss.Manager
119 set: service-running
@@ -232,3 +248,13 @@ actions:
248 debug_message: 'Found no WSL traces in the logs'
249 tag: 'needs-author-feedback'
250 skip_similar_issues: false
251 +
252 + - when:
253 + condition:
254 + and:
255 + - vmp-required
256 + - not: vmp-oc-enabled
257 + debug_message: 'Found evidence of virtual machine platform component missing: $error'
258 + user_message: 'It appears that the VirtualMachinePlatform optional component is not enabled. Please try running: `dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart`, then reboot and see if that solves the issue.'
259 + skip_similar_issues: false
260 + tag: 'needs-author-feedback'