代码之家  ›  专栏  ›  技术社区  ›  VAfran

Azure中的激活密钥提示中出现自定义通用VHD

  •  0
  • VAfran  · 技术社区  · 7 年前

    我已通过以下方式将hyper-v VHD上载到azure this link .

    VHD映像在上载到azure之前已通用化。上载后,尝试使用上载的VHD映像创建VM,而VM在超时后未完成设置。查看VM的引导诊断,VM卡在产品密钥输入提示中。

    enter image description here .

    记录以下错误:

    New-AzureRmVM : Long running operation failed with status 'Failed'. Additional Info:'OS Provisioning for VM 'PSTACBUI'
    did not finish in the allotted time. The VM may still finish provisioning successfully. Please check provisioning
    state later. Also, make sure the image has been properly prepared (generalized).
     * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/
     * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/ '
    ErrorCode: OSProvisioningTimedOut
    ErrorMessage: OS Provisioning for VM 'PSTACBUI' did not finish in the allotted time. The VM may still finish
    provisioning successfully. Please check provisioning state later. Also, make sure the image has been properly prepared
    (generalized).
     * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/
     * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/
    StartTime: 2/2/2018 11:04:08 PM
    EndTime: 2/2/2018 11:50:59 PM
    OperationID: 0a4f1ac8-9274-4fa8-b396-71c8eb690653
    Status: Failed
    At line:1 char:1
    + New-AzureRmVM -VM $vm -ResourceGroupName tacoud -Location $location
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [New-AzureRmVM], ComputeCloudException
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.NewAzureVMCommand 
    

    如何跳过多个VM部署的产品激活提示?

    1 回复  |  直到 7 年前
        1
  •  2
  •   Micah_MSFT    7 年前

    这通常发生在VHD未正确通用化(缺少步骤)或在上载到Azure之前重新打开VHD时。

    确保在泛化过程中选择每个步骤:

    enter image description here

    然后确保在上载到Azure之前,VM没有再次打开。

    还要检查此链接,以确保您正确执行了所有正确的系统准备前步骤:

    https://docs.microsoft.com/en-us/azure/virtual-machines/windows/prepare-for-upload-vhd-image