Sometimes Microsoft support will ask you to provide the VMM debug trace logs if you encounter issues with your VMM deployment. Today I’m going to simply explain the process of collecting debug logs for VMM and prasing them to text files.
- First of all create a flder to store your VMM log files. I prefer to save them on C:\VMMLogs path.
- Delete any existing VMM logs if present. In order to do this open up a PowerShell window as an administrator on your VMM server and type logman delete VMM and press enter. There will be warnings such as “Data Collector Set was not found” and you can safetly ignore same.
- Create a VMM trace. You can use the following command to that.
logman create trace VMM -v mmddhhmm -o $env:SystemDrive\VMMlogs\VMMLog_$env:computername.ETL -cnf 01:00:00 -p Microsoft-VirtualMachineManager-Debug -nb 10 250 -bs 16 -max 512
- Start the VMM trace by entering logman start vmm in the same PowerShell window.
- Now you can reproduce the VMM issue that you have faced (i.e a job failure)
- Immediately after reproducing the iussue you need to stop the VMM strace by entering logman stop vmm
- The log files you created will be of ETL file format.The ETL is a log file created by Microsoft Tracelog, a program that creates logs using the events from the kernel in Microsoft operating systems and are machine readable. So next step is to convert same to text format.
- You can convert the collected ETL log by entering Netsh trace convert <Path to file name>
I find these logs very useful specially when the errors in Windows Event Viewer are too generic. In fact debug trace can provide more information if you are encountering bizarre issues in your VMM deployment.