你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

收集 Azure Stack Edge Pro GPU 设备上的 VM 来宾日志

适用于:Yes for Pro GPU SKUAzure Stack Edge Pro - GPUYes for Pro 2 SKUAzure Stack Edge Pro 2Yes for Pro R SKUAzure Stack Edge Pro RYes for Mini R SKUAzure Stack Edge Mini R

若要诊断 Azure Stack Edge Pro GPU 设备上的任何 VM 预配失败,请查看故障虚拟机的来宾日志。 本文介绍如何收集支持包中的 VM 来宾日志。

注意

你还可以在 Azure 门户中监视虚拟机的活动日志。 有关详细信息,请参阅在设备上监视 VM 活动

在支持包中收集 VM 来宾日志

若要为 Azure Stack Edge Pro GPU 设备上的故障虚拟机收集来宾日志,请执行以下步骤:

  1. 连接到设备的 PowerShell 界面

  2. 通过运行以下命令,收集故障 VM 的来宾内日志,并将这些日志包括到支持包中:

    Get-VMInGuestLogs -FailedVM
    Get-HcsNodeSupportPackage -Path “\\<network path>” -Include InGuestVMLogFiles -Credential “domain_name\user”
    

    可在 hcslogs\VmGuestLogs 文件夹中找到这些日志。

  3. 若要获取 VM 预配历史记录详细信息,请查看以下日志:

    Linux VM

    • /var/log/cloud-init-output.log
    • /var/log/cloud-init.log
    • /var/log/waagent.log

    Windows VM:

    • C:\Windows\Azure\Panther\WaSetup.xml

后续步骤