大网数据广告活动
启动与系统组件

Enable debug logging in Virtual Machine Manager

· 52CE 我爱测

Describes how to enable debug logging in Microsoft System Center Virtual Machine Manager.

This article describes how to enable debug logging in Microsoft System Center 2016 Virtual Machine Manager (SC 2016 VMM), System Center 2019 Virtual Machine Manager (SC 2019 VMM), and System Center 2022 Virtual Machine Manager (SC 2022 VMM). VMM Event Trace Log (ETL) files provide useful debug logging for troubleshooting many different VMM issues.

Original product version:   Microsoft System Center Virtual Machine Manager
Original KB number:   2913445

Steps to enable VMM debug logging

  1. Create a folder that's named C:\vmmlogs.

  2. Open an elevated Windows PowerShell window on the VMM server or host computer, and then run the following command:

    logman delete VMM
    

    The command above deletes any existing definitions of the trace. You can safely ignore any "Data Collector Set was not found" errors 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 running 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 running the following command:

    logman stop VMM
    

    [!NOTE] You can find the ETL file in C:\vmmlogs.

  6. To convert the trace file, run the following command from a command prompt:

    Netsh trace convert <filename>
    

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

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 04/09/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。