How to enable debug logging in Virtual Machine Manager

Article translations Article translations
Article ID: 2913445 - View products that this article applies to.
Expand all | Collapse all

Symptoms

This article describes how to enable debug logging in Microsoft System Center 2012 Virtual Machine Manager (SC 2012 VMM) Service Pack 1 (SP1) and System Center 2012 R2 Virtual Machine Manager (SC 2012 R2 VMM). VMM Event Trace Log (ETL) files provide useful debug logging for troubleshooting many different VMM issues.

Resolution

To enable VMM debug logging, follow these steps:
  1. Create a folder that is named "C:\Vmmlogs."
  2. Open an elevated Windows PowerShell window on the VMM server or host computer, and then run the following commands. (The second command may wrap in your display.)

    logman delete VMM

    This command deletes any existing definitions of the trace. You can safely ignore any "Data Collector Set was not found" errors that you receive.

    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
  3. Start the trace by typing the following command in the elevated Windows PowerShell window:

    logman start vmm
  4. Reproduce your issue.
  5. As soon as you reproduce your issue, stop the trace by typing the following command:

    logman stop vmm

    Note You can find the ETL file in C:\vmmlogs.
  6. To convert the trace, type the following command:

    Netsh trace convert <filename>

    Note In this command, the placeholder <filename> represents the name of the ETL that you found in step 5. The converted trace file will have a name in the format <filename>.txt.

Properties

Article ID: 2913445 - Last Review: March 17, 2014 - Revision: 2.0
Applies to
  • Microsoft System Center 2012 R2 Virtual Machine Manager
Keywords: 
KB2913445

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com