Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

关于telsa p4安装vgpu驱动后,虚拟机无法使用的问题求解

Featured Replies

按教程安装了https://github.com/stl88083365/unraid-nvidia-vgpu-driver 这个vgpu驱动,驱动状态貌似也正常,见下:

root@MoeNas:~# lsmod |grep vfio 
nvidia_vgpu_vfio       77824  0
mdev                   16384  1 nvidia_vgpu_vfio
kvm                   983040  2 nvidia_vgpu_vfio,kvm_intel
root@MoeNas:~# nvidia-smi vgpu
Tue Mar  5 19:31:39 2024       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 535.129.03             Driver Version: 535.129.03                |
|---------------------------------+------------------------------+------------+
| GPU  Name                       | Bus-Id                       | GPU-Util   |
|      vGPU ID     Name           | VM ID     VM Name            | vGPU-Util  |
|=================================+==============================+============|
|   0  Tesla P4                   | 00000000:01:00.0             |   0%       |
+---------------------------------+------------------------------+------------+
root@MoeNas:~# mdevctl list
470ea4b5-0f16-4df7-aff2-4fb4cec610c7 0000:01:00.0 nvidia-65 manual (defined)
55bc5668-d75c-44a4-9b95-23ce403fd153 0000:01:00.0 nvidia-65 manual (defined)

但给虚拟机修改xml,增加如下内容:

    <hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci' display='off'>
      <source>
        <address uuid='470ea4b5-0f16-4df7-aff2-4fb4cec610c7'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </hostdev>

来给虚拟机添加vgpu,此时出现报错:

XML error: Attempted double use of PCI Address 0000:00:01.0

 

请求知道的大佬指教一下,谢谢!

 

Solved by CXFUXI

将你的虚拟机 XML 配置贴上来。

  • Solution

xml里pci地址重复了,和显卡没有关系,手动改下就行了

p4直通虚拟机,不需要在unraid里安装驱动,驱动说明中有提及

  • Author
On 3/17/2024 at 5:53 PM, PG3rd said:

p4直通虚拟机,不需要在unraid里安装驱动,驱动说明中有提及

我不是要直通,我要用vgpu,这样宿主机和虚拟机都能使用这张显卡

  • Author
On 3/12/2024 at 4:06 PM, CXFUXI said:

xml里pci地址重复了,和显卡没有关系,手动改下就行了

谢谢,确实是这样,我随便改了一下pci地址,就成功了。所以这些PCI地址也是虚拟的吗?我刚开始以为是要通过这个寻址显卡的真实PCI位置

  • 2 years later...

请问这边遇到过虚拟机内显卡code 43的情况吗,我这边是2060,用vgpu unlock在windows里看已经是rtx 6000-2q了,但是显示设备异常code 43

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.