You are currently offline, waiting for your internet to reconnect

How to enable debug logging in Virtual Machine Manager

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: 03/17/2014 17:01:00 - Revision: 2.0

Microsoft System Center 2012 R2 Virtual Machine Manager

  • KB2913445
Feedback