Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to enable debug logging in Virtual Machine Manager


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2913445
Revision : 1
Created on : 1/7/2017
Published on : 3/17/2014
Exists online : False
Views : 438