Skip to content
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

Log manifest for ETL files? #4749

Closed
am11 opened this issue Dec 10, 2019 · 0 comments
Closed

Log manifest for ETL files? #4749

am11 opened this issue Dec 10, 2019 · 0 comments

Comments

@am11
Copy link

am11 commented Dec 10, 2019

While troubleshooting why CentOS6 image is crashing with exit code 1, I stumbled upon this guide, https://github.com/Microsoft/WSL/blob/master/CONTRIBUTING.md#8-detailed-logs, which gives instructions about log collection and submission.

Could manifest (<name>.etwManifest.man) file be published in this repo, so users can read the logs properly as well? rn, I am looking at this in MMA:

image

Steps to repro:

:: this is Windows Command Prompt

:: OS version
ver

> Microsoft Windows [Version 10.0.19033.1]

:: download tarball
powershell -c  $ProgressPreference='SilentlyContinue';curl -O centos6.tar.gz http://cloud.centos.org/centos/6/images/CentOS-6-x86_64-GenericCloud-1907.raw.tar.gz

:: create an install/import directory for subsystems
mkdir %USERPROFILE%\subsystems

:: import using wsl native functionality
wsl.exe --import CentOS6 %USERPROFILE%\subsystems\centos6 centos6.tar.gz

:: run it
wsl.exe -d CentOS6

:: it crashed (without any error message). check the exit code
echo %ERRORLEVEL%

> 1

:: collect logs

:: enable log collector
logman.exe create trace lxcore_kernel -p "{0CD1C309-0878-4515-83DB-749843B3F5C9}" -mode 0x00000008 -ft 10:00 -o .\lxcore_kernel.etl -ets
logman.exe create trace lxcore_user -p "{D90B9468-67F0-5B3B-42CC-82AC81FFD960}" -ft 1:00 -rt -o .\lxcore_user.etl -ets
logman.exe create trace lxcore_service -p "{B99CDB5A-039C-5046-E672-1A0DE0A40211}" -ft 1:00 -rt -o .\lxcore_service.etl -ets

:: execute command again
wsl.exe -d CentOS6

:: disable log collector
logman.exe stop lxcore_kernel -ets
logman.exe stop lxcore_user -ets
logman.exe stop lxcore_service -ets

:: now open *.etl in message analyzer or event viewer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants