打开虚拟机电源时报错:无法为 vGPU "profile_name" 初始化插件 "/usr/lib64/vmware/plugin/libnvidia-vgx.so" (Could not initialize plugin '/usr/lib64/vmware/plugin/libnvidia-vgx.so' for vGPU "profile_name")
search cancel

打开虚拟机电源时报错:无法为 vGPU "profile_name" 初始化插件 "/usr/lib64/vmware/plugin/libnvidia-vgx.so" (Could not initialize plugin '/usr/lib64/vmware/plugin/libnvidia-vgx.so' for vGPU "profile_name")

book

Article ID: 301293

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:
免责声明:本文为 “Could not initialize plugin '/usr/lib64/vmware/plugin/libnvidia-vgx.so' for vGPU "profile_name"” error when powering on the VM (2149193) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。

  • 无法使用 nvidia 显卡打开虚拟机的电源。
  • 您会看到以下错误:

    父资源池中的可用图形资源不足,无法执行该操作
    (The amount of graphics resource available in the parent resource pool is insufficient for the operation)。

    打开虚拟机 <vm_name> 的电源时,从 ESX 主机接收到错误
    (An error was received from the ESX host while powering on VM <VM_name>)

    无法启动虚拟机
    (Failed to start the virtual machine)。

    打开模块“DevicePowerOn”的电源失败
    (Module 'DevicePowerOn' power on failed)。

    无法为 vGPU“Profile_name”初始化插件 “/usr/lib64/vmware/plugin/libnvidia-vgx.so”
    (Could not initialize plugin '/usr/lib64/vmware/plugin/libnvidia-vgx.so' for vGPU 'Profile_name')。

    没有可用于 vGPU “Profile_name” 的图形设备
    (No graphics device is available for vGPU 'Profile_name')。


Environment

VMware vSphere ESXi 6.5
VMware vCenter Server 6.5.x

Cause

当默认 GPU 模式为共享 (vSGA) 而不是直接共享 (vGPU) 时,会出现此问题。

Resolution

要解决此问题,请通过 vCenter Server 将 GPU 模式由共享 (vSGA) 更改为直接共享 (vGPU):

要将 GPU 模式更改为直接共享 (vGPU),请执行以下操作:
  1. 在 vCenter Server 6.5 中,选择ESXi 6.5 主机。
  2. 选择配置选项卡。
  3. 单击图形
  4. 选择必须使用 vGPU 的每个 GPU。
  5. 单击编辑以修改图形设备设置。
  6. 为 vGPU 选择直接共享
  7. 重新启动 xorg 服务或重新引导 ESXi 以便更改生效。

    通过 SSH 运行以下命令以重新启动 xorg 服务:

    #/etc/init.d/xorg restart

注意:vGPU 虚拟机正常启动。


Additional Information

“Could not initialize plugin '/usr/lib64/vmware/plugin/libnvidia-vgx.so' for vGPU "profile_name"” error when powering on the VM