简体   繁体   English

Nutanix VM 迁移到 Azure - VM 创建超时

[英]Nutanix VM migration to Azure - VM creation timed out

In the process of Nuntanix Virtual Machine migration to Azure, I had copied ral-rdmbuild-02 copy.ova file into a windows machine and extracted to get.vmdk and.mf.在Nuntanix虚拟机迁移到Azure的过程中,我将ral-rdmbuild-02 copy.ova文件复制到一台windows的机器上,解压成get.vmdk和.mf。 From the extracted file the.vhd file was created, later it was resized on a ubuntu to meet 1MB requirement.从提取的文件中创建了 .vhd 文件,后来将其大小调整为 ubuntu 以满足 1MB 的要求。

Subsequently, the.vhd was copied to azure and attempted to create a vm to face the following error.随后将.vhd复制到azure,尝试创建vm,出现如下错误。 Could someone can help me to overcome this issue.有人可以帮助我解决这个问题。

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"OSProvisioningTimedOut","message":"OS Provisioning for VM '' 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).\r\n * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/ \r\n * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/ \r\n * If you are deploying more than 20 Virtual Machines concurrently, consider moving your custom image to shared image gallery. Please refer to https://aka.ms/movetosig for the same."}]} {"code":"DeploymentFailed","message":"至少有一个资源部署操作失败。请列出部署操作以获取详细信息。使用详情请参阅https://aka.ms/DeployOperations 。","details": [{"code":"OSProvisioningTimedOut","message":"VM 的 OS 配置未在分配的时间内完成。VM 可能仍会成功完成配置。请稍后检查配置 state。此外,请确保映像具有已正确准备(通用化)。\r\n * Windows 的说明:https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/ \r\n * Linux 的说明:https ://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/ \r\n * 如果您同时部署超过 20 个虚拟机,请考虑将您的自定义图像移动到共享图像库。请请参阅 https://aka.ms/movetosig。”}]}

• Please check whether the Nutanix VM hard disk is configured as a dynamic disk or not because dynamic disks don't work with Azure, and they can't be migrated. • 请检查Nutanix VM 硬盘是否配置为动态磁盘,因为动态磁盘不适用于Azure,并且无法迁移。 Also, the image of the Nutanix VM may not be prepared correctly, thus would suggest you recreate the image of the Nutanix VM and try migrating it to Azure once again.另外,Nutanix VM 的镜像可能没有准备好,因此建议您重新创建 Nutanix VM 的镜像,并再次尝试将其迁移到 Azure。

• To convert the dynamic disk to fixed type of virtual disk, kindly refer to the below documentation link that guides to use the appropriate command for converting the same: - • 要将动态磁盘转换为固定类型的虚拟磁盘,请参考以下文档链接,该链接指导您使用适当的命令进行转换:-

Convert-VHD -Path c:\test\child1vhdx.vhdx -DestinationPath c:\test\child1vhd.vhd -VHDType Fixed

https://learn.microsoft.com/en-us/powershell/module/hyper-v/convert-vhd?view=windowsserver2019-ps https://learn.microsoft.com/en-us/powershell/module/hyper-v/convert-vhd?view=windowsserver2019-ps

• Also, based on the error message that you are encountering, the OS deployment might have also failed from the Portal side as it was unable to pass on some of the required parameters which is why you got 'TimeOut' message. • 此外,根据您遇到的错误消息,操作系统部署也可能从门户端失败,因为它无法传递某些必需的参数,这就是您收到“TimeOut”消息的原因。 The VM also didn't finish the deployment correctly. VM 也没有正确完成部署。 I would recommend trying stop(deallocate) and start the VM and see if that resolves the issue.我建议尝试停止(取消分配)并启动 VM ,看看是否可以解决问题。

I would recommend you delete the VM and its related resources if created and take a snapshot of the OS disk , create a disk from the snapshot and then create the machine from that disk.我建议您删除 VM 及其相关资源(如果已创建)并拍摄操作系统磁盘的快照,从快照创建磁盘,然后从该磁盘创建机器。 Please refer to the link below for creating a VM from a 'VHD' by using the Azure portal: -请参考以下链接,使用 Azure 门户从“VHD”创建 VM:-

https://learn.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-centos https://learn.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-centos

• Finally, to generalize the VM and execute 'sysprep' on a VM to take its correct reference image such that it can be successfully migrated to another environment, please refer to the below link that explains the correct steps to perform for generalizing the VM: - • 最后,要通用化 VM 并在 VM 上执行“sysprep”以获取其正确的参考映像,以便它可以成功迁移到另一个环境,请参考下面的链接,其中解释了为通用化 VM 执行的正确步骤: -

https://portal.nutanix.com/page/documents/details?targetId=Web-Console-Guide-Prism-v6_1:wc-windows-vm-customize-with-sysprep-clone-vm-wc-t.html https://portal.nutanix.com/page/documents/details?targetId=Web-Console-Guide-Prism-v6_1:wc-windows-vm-customize-with-sysprep-clone-vm-wc-t.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM