Azure-有没有一种方法可以在捕获图像后对其进行概括?

Azure-有没有一种方法可以在捕获图像后对其进行概括?,azure,azure-virtual-machine,Azure,Azure Virtual Machine,最近,我尝试在Azure中概括一个特定的VM,以用作未来规模集的映像 在这样做(错误的方式)之后,我尝试使用此映像创建VM,但出现了以下错误- "OS Provisioning for VM 'MyVM_10' did not finish in the allotted time. However, the VM guest agent was detected running. This suggests the guest OS has not been properly prepared

最近,我尝试在Azure中概括一个特定的VM,以用作未来规模集的映像

在这样做(错误的方式)之后,我尝试使用此映像创建VM,但出现了以下错误-

"OS Provisioning for VM 'MyVM_10' did not finish in the allotted time. However, the VM
guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image
(with CreateOption=FromImage). To resolve this issue, either use the VHD as is with CreateOption=Attach or prepare it
properly for use as an image"
这意味着我没有正确地准备它。

现在有办法准备吗?或者我必须重新开始,并且在此过程中创建的映像文件没有任何用处吗?

您可以停止原始VM并使用此映像创建VM。那么我想你不会遇到这个错误日志。然后您可以登录此VM并对其进行sysprep,然后使用此VM创建新映像


如果它不起作用,我建议您可以将此映像的VHD下载到本地。使用此VHD在Hyper-V上创建VM并对其进行sysprep。然后将此VHD上载到Azure并使用此VHD创建映像。请参见此图。

问题在于虚拟机已被删除。。但是我会试着做第二部分。。很奇怪,Azure中没有这样的选项,我必须手动下载。。无论如何,谢谢。@Drxxd当您尝试使用此映像创建VM时,您会得到错误日志吗?删除原始VM时,可以使用此映像创建VM,但只能创建一个VM。@Drxxd如果仍遇到此错误,则需要将其下载到本地Hyper-V中的sysprep和sysprep。明白了。。谢谢是的,只有在创建一个缩放集时才会发生,现在尝试创建单个VMHi时,才会删除原始VM的VHD。如果没有,您最好使用这个VHD来创建一个新的VM。