排查 Azure 中的 Linux 虚拟机部署问题Troubleshoot deploying Linux virtual machine issues in Azure

若要排查 Azure 中虚拟机 (VM) 的部署问题,请查看常见问题了解常见故障和解决方法。To troubleshoot virtual machine (VM) deployment issues in Azure, review the top issues for common failures and resolutions.

如果对本文中的任何观点存在疑问,可以联系 Azure 支持上的 Azure 专家。If you need more help at any point in this article, you can contact the Azure experts on Azure support. 或者,也可以提出 Azure 支持事件。Alternatively, you can file an Azure support incident. 请转到 Azure 支持站点提交请求。Go to the Azure support site and submit your request.

常见问题Top issues

以下常见问题可能对解决你的问题有帮助。The following top issues may help resolve your issue. 若要开始故障排除,请查看以下步骤:To start troubleshooting, review these steps:

群集不支持请求的 VM 大小The cluster cannot support the requested VM size

<properties supportTopicIds="123456789" resourceTags="windows" productPesIds="1234, 5678" />

  • 使用更小的 VM 大小来重试请求。Retry the request using a smaller VM size.
  • 如果无法更改请求的 VM 大小:If the size of the requested VM cannot be changed:
    • 停止可用性集中的所有 VM。Stop all the VMs in the availability set. 依次单击“资源组”> 资源组 >“资源”> 可用性集 >“虚拟机”> 虚拟机 >“停止”。Click Resource groups > your resource group > Resources > your availability set > Virtual Machines > your virtual machine > Stop.
    • 在所有 VM 都停止后,创建相应大小的 VM。After all the VMs stop, create the VM in the desired size.
    • 先启动新 VM,再选择所有已停止的 VM 并单击“启动”。Start the new VM first, and then select each of the stopped VMs and click Start.

群集没有可用资源The cluster does not have free resources

<properties supportTopicIds="123456789" resourceTags="windows" productPesIds="1234, 5678" />

  • 请稍后重试请求。Retry the request later.
  • 如果新 VM 属于不同的可用性集If the new VM can be part of a different availability set
    • 在不同的可用性集(位于同一区域)中创建 VM。Create a VM in a different availability set (in the same region).
    • 将新 VM 添加到同一虚拟网络。Add the new VM to the same virtual network.

为什么我无法为 Ubuntu NV VM 安装 GPU 驱动程序?Why can I not install the GPU driver for an Ubuntu NV VM?

目前,仅在运行 Ubuntu Server 16.04 LTS 的 Azure NC VM 上提供 Linux GPU 支持。Currently, Linux GPU support is only available on Azure NC VMs running Ubuntu Server 16.04 LTS. 有关详细信息,请参阅在运行 Linux 的 N 系列 VM 上安装 GPU 驱动程序For more information, see Set up GPU drivers for N-series VMs running Linux.

我的 Linux N 系列 VM 缺少驱动程序My drivers are missing for my Linux N-Series VM

有关安装基于 Linux 的 VM 的驱动程序的简介,请单击此处Instructions to install drivers for Linux-based VMs are located here.

在我的 N 系列 VM 中找不到 GPU 实例I can't find a GPU instance within my N-Series VM

若要利用 Azure N 系列 VM 的 GPU 功能,部署后必须在每个 VM 上安装图形驱动程序。To take advantage of the GPU capabilities of Azure N-series VMs, you must install graphics drivers on each VM after deployment. 驱动程序安装的信息可以在这里找到。Driver setup information is available here.

我所在的地区是否提供 N 系列 VM?Are N-Series VMs available in my region?

可以从可用产品(按区域) 以及此处的定价来查看可用性。You can check the availability from the Products available by region table, and pricing here.

重设 VM 大小时,看不到所需的 VM 大小系列。I am not able to see VM Size family that I want when resizing my VM.

当 VM 正在运行时,将其部署到物理服务器。When a VM is running, it is deployed to a physical server. Azure 区域中的物理服务器被分在常见物理硬件群集组中。The physical servers in Azure regions are grouped in clusters of common physical hardware. 需要将 VM 移到其他硬件群集才能重设 VM 大小,具体操作因部署 VM 所用部署模型而异。Resizing a VM that requires the VM to be moved to different hardware clusters is different depending on which deployment model was used to deploy the VM.

  • 对于在经典部署模型中部署的 VM,必须删除并重新部署云服务部署,才能将 VM 大小更改为其他大小系列。VMs deployed in Classic deployment model, the cloud service deployment must be removed and redeployed to change the VMs to a size in another size family.

  • 对于在资源管理器部署模型中部署的 VM,必须先停止可用性集中的所有 VM,然后才能更改可用性集中任何 VM 的大小。VMs deployed in Resource Manager deployment model, you must stop all VMs in the availability set before changing the size of any VM in the availability set.

在可用性集中部署时,列出的 VM 大小不受支持。The listed VM size is not supported while deploying in Availability Set.

请选择可用性集的群集支持的大小。Choose a size that is supported on the availability set's cluster. 建议在创建可用性集时选择所需的最大 VM 大小,并将它率先部署到可用性集。It is recommended when creating an availability set to choose the largest VM size you think you need, and have that be your first deployment to the Availability set.

Azure 支持哪些 Linux 发行版/版本?What Linux distributions/versions are supported on Azure?

有关列表,可以参阅 Azure 认可的 Linux 发行版You can find the list at Linux on Azure-Endorsed Distributions.

能否将现有经典 VM 添加到可用性集?Can I add an existing Classic VM to an availability set?

是的。Yes. 可以将现有经典 VM 添加到新的或现有的可用性集。You can add an existing classic VM to a new or existing Availability Set. 有关详细信息,请参阅将现有虚拟机添加到可用性集For more information see Add an existing virtual machine to an availability set.

重要

经典 VM 将于 2023 年 3 月 1 日停用。Classic VMs will be retired on March 1, 2023.

如果从 ASM 使用 IaaS 资源,请在 2023 年 3 月 1 日之前完成迁移。If you use IaaS resources from ASM, please complete your migration by March 1, 2023. 我们建议你尽快进行切换,以利用 Azure 资源管理器中的许多增强功能。We encourage you to make the switch sooner to take advantage of the many feature enhancements in Azure Resource Manager.

有关详细信息,请参阅在 2023 年 3 月 1 日之前将 IaaS 资源迁移到 Azure 资源管理器For more information, see Migrate your IaaS resources to Azure Resource Manager by March 1, 2023.

后续步骤Next steps

如果对本文中的任何观点存在疑问,可以联系 Azure 支持上的 Azure 专家。If you need more help at any point in this article, you can contact the Azure experts on Azure support.

或者,也可以提出 Azure 支持事件。Alternatively, you can file an Azure support incident. 请转到 Azure 支持站点提交请求。Go to the Azure support site and submit your request.