原文地址: https://forums.unraid.net/topic/91011-solved-unable-to-start-vm-after-removing-gpu/

收藏时间: 2023-12-10 18:54:54

文章分类: unraid

文章标签:


[SOLVED] Unable to start VM after removing GPU - VM Engine (KVM) - Unraid — [已解决] 删除 GPU 后无法启动 VM - VM Engine (KVM) - Unraid

[SOLVED] Unable to start VM after removing GPU

[已解决] 删除 GPU 后无法启动虚拟机


Underscoreus

By Underscoreus 通过下划线
April 14, 2020 in VM Engine (KVM)
2020 年 4 月 14 日在 VM 引擎 (KVM)

Followers 0 关注者 0

Underscoreus  下划线

  • Underscoreus
    Newbie

  • Members 会员

Posted April 14, 2020 (edited)
发布于 2020 年 4 月 14 日(已编辑)

Hey guys (and gals),
嘿伙计们(和姑娘们),
So I’ve just removed a graphics card from my Unraid box for use somewhere else since I was not really using it that much in any of the unraid VM’s or with any of the dockers. However after removing it and booting back up the tower I get this message when trying to start one of the VM’s:
因此,我刚刚从我的 Unraid 盒子中取出了一块显卡,以便在其他地方使用,因为我并没有在任何 Unraid 虚拟机或任何 Docker 中真正使用它。然而,在删除它并重新启动塔后,我在尝试启动其中一个虚拟机时收到此消息:
 

Execution error  执行错误

Device 0000:01:00.1 not found: could not access /sys/bus/pci/devices/0000:01:00.1/config: No such file or directory
找不到设备 0000:01:00.1: 无法访问 /sys/bus/pci/devices/0000:01:00.1/config: 没有这样的文件或目录

Presuming that this has something to do with the graphics card since its talking about PCI devices.
假设这与显卡有关,因为它谈论的是 PCI 设备。

I might have had the GPU checked in the VM’s settings but I did not think so.
我可能已经在虚拟机的设置中检查了 GPU,但我不这么认为。

Is there a way to fix this other than removing the GPU from the other machine, putting it back in the unraid tower and possibly unchecking that box then removing it again??
除了从另一台机器上移除 GPU,将其放回 unraid 塔中并可能取消选中该框然后再次将其移除之外,还有其他方法可以解决此问题吗?

Thanks for the read, any advice is greatly appriciated!
感谢您的阅读,任何建议都非常重要!

Edited April 15, 2020 by Underscoreus
编辑者:Underscoreus 2020 年 4 月 15 日

Solved  解决了

bastl  巴斯特尔

Posted April 14, 2020 (edited)
发布于 2020 年 4 月 14 日(已编辑)

  On 4/14/2020 at 12:41 PM, Underscoreus said:
Underscoreus 于 2020 年 4 月 14 日中午 12:41 说道:

I might have had the GPU checked
我可能检查过 GPU

You propably had. When editing your VM you can switch to xml view, top right corner, and remove the section. Post your xml and the VM logs. In case you don’t know which hostdev section to remove. Are there any other devices passed through to the VM?
你可能有。编辑虚拟机时,您可以切换到右上角的 xml 视图,然后删除该部分。发布您的 xml 和 VM 日志。如果您不知道要删除哪个 hostdev 部分。是否有任何其他设备通过该虚拟机?

Edited April 14, 2020 by bastl
bastl 于 2020 年 4 月 14 日编辑

Underscoreus  下划线

  • Underscoreus
    Newbie

  • Members 会员

  • Author 作者

Posted April 14, 2020 发表于 2020 年 4 月 14 日

  On 4/14/2020 at 4:22 PM, bastl said:
bastl 于 2020 年 4 月 14 日下午 4:22 说道:

You propably had. When editing your VM you can switch to xml view, top right corner, and remove the section. Post your xml and the VM logs. In case you don’t know which hostdev section to remove. Are there any other devices passed through to the VM?
你可能有。编辑虚拟机时,您可以切换到右上角的 xml 视图,然后删除该部分。发布您的 xml 和 VM 日志。如果您不知道要删除哪个 hostdev 部分。是否有任何其他设备通过该虚拟机?

Yeah probably gonna need someone to look over the xml to tell me exactly what to remove. Did not know that option was there!
是的,可能需要有人检查 xml 来告诉我到底要删除什么。不知道有这个选项!
There should not be anything else passed through to the VM right now. I was passing through a USB stick recently when upgrading the VM from Windows 7 to Windows 10 but I have unchecked the USB stick. I think I have expirienced this kind of issue before though when I unplugged the USB stick and it complained about not finding the USB stick. So maybe you can tell me if there are any lingering references to the USB in the XML here.
现在不应有任何其他内容传递到虚拟机。我最近在将虚拟机从 Windows 7 升级到 Windows 10 时通过了 USB 记忆棒,但我没有选中 USB 记忆棒。我想我以前也遇到过这种问题,但当我拔掉 USB 棒时,它抱怨找不到 USB 棒。因此,也许您可​​以告诉我此处的 XML 中是否有任何对 USB 的残留引用。

 

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>Windows VM</name>
  <uuid>2308a8fb-445b-d79a-f38a-f07fefc35db0</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 7" icon="windows7.png" os="windows7"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='6'/>
    <vcpupin vcpu='2' cpuset='3'/>
    <vcpupin vcpu='3' cpuset='7'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-3.1'>hvm</type>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor_id state='on' value='none'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='2' threads='2'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/disk3/Libraries/VM/Win7/Windows 7/vdisk1.img'/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/Win7_Pro_SP1_English_COEM_x64.iso'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <boot order='2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/virtio-win-0.1.171.iso'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:a4:03:ee'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </memballoon>
  </devices>
</domain>

bastl  巴斯特尔

Posted April 14, 2020 发表于 2020 年 4 月 14 日

Remove the following section
删除以下部分

1
2
3
4
5
6
7
8
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>
    

  On 4/14/2020 at 12:41 PM, Underscoreus said:
Underscoreus 于 2020 年 4 月 14 日中午 12:41 说道:

Device 0000:01:00.1 not found: could not access /sys/bus/pci/devices/0000:01:00.1/config: No such file or directory
找不到设备 0000:01:00.1: 无法访问 /sys/bus/pci/devices/0000:01:00.1/config: 没有这样的文件或目录

For explanation, the error is complaining to not find the device on bus 01, slot 00 with function 1. As you can see in the section above this is the culprit
作为解释,错误是抱怨在总线 01、插槽 00 上找不到具有功能 1 的设备。正如您在上面的 部分中看到的,这是罪魁祸首

Underscoreus  下划线

  • Underscoreus
    Newbie

  • Members 会员

  • Author 作者

Posted April 15, 2020 发表于 2020 年 4 月 15 日

  On 4/14/2020 at 4:39 PM, bastl said:
bastl 于 2020 年 4 月 14 日下午 4:39 说道:

Remove the following section
删除以下部分

1
2
3
4
5
6
7
8
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>
    

For explanation, the error is complaining to not find the device on bus 01, slot 00 with function 1. As you can see in the section above this is the culprit
作为解释,错误是抱怨在总线 01、插槽 00 上找不到具有功能 1 的设备。正如您在上面的 部分中看到的,这是罪魁祸首

Expand   扩张

Fantastic, it works!  太棒了,它有效!
Thanks for the help and the explanation!
感谢您的帮助和解释!

(Oops, forgot to press post on this yeaterday, sorry)
(哎呀,昨天忘记发帖了,抱歉)

vvolfpack  伏尔夫包

  • vvolfpack
    Newbie

  • Members 会员

Posted December 14, 2020 发表于 2020 年 12 月 14 日

I’m facing the same issue. I had a GPU passed through to the VM. Had to move it to a different system, and now the VM won’t start via VNC either. Getting a similar error to OP. fwiw, got the same error message when I removed my nvme drive too (which wasn’t passed through)
我面临着同样的问题。我有一个 GPU 传递到了虚拟机。必须将其移动到不同的系统,现在虚拟机也无法通过 VNC 启动。遇到与 OP 类似的错误。 fwiw,当我也删除我的 nvme 驱动器时收到相同的错误消息(未通过)

Execution error: Device 0000:05:00.1 not found: could not access /sys/bus/pci/devices/0000:05:00.1/config: No such file or directory
执行错误:找不到设备 0000:05:00.1:无法访问 /sys/bus/pci/devices/0000:05:00.1/config:没有这样的文件或目录

Unable to find Bus 05 Slot O1 in my XML. Could something else be the issue here?
在我的 XML 中找不到总线 05 插槽 O1。这里还有其他问题吗?

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>Gaming</name>
  <uuid>05a5b827-d0e0-6148-6908-a6cf7506671d</uuid>
  <description>Gaming and Plex</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>17301504</memory>
  <currentMemory unit='KiB'>17301504</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='10'/>
    <vcpupin vcpu='2' cpuset='4'/>
    <vcpupin vcpu='3' cpuset='12'/>
    <vcpupin vcpu='4' cpuset='5'/>
    <vcpupin vcpu='5' cpuset='13'/>
    <vcpupin vcpu='6' cpuset='6'/>
    <vcpupin vcpu='7' cpuset='14'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-4.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/05a5b827-d0e0-6148-6908-a6cf7506671d_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor_id state='on' value='none'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='2'/>
    <cache mode='passthrough'/>
    <feature policy='require' name='topoext'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/disk/by-id/ata-Samsung_SSD_860_PRO_1TB_S5HVNE0MA06968M'/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/Win10_1909_English_x64.iso'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <boot order='2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/user/isos/virtio-win-0.1.173-2.iso'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='usb' index='0' model='qemu-xhci' ports='15'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:ec:3e:28'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <sound model='ich9'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </sound>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x05' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x07' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x07' slot='0x00' function='0x3'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
    </memballoon>
  </devices>
</domain>

Joseph  约瑟夫

  • Joseph
    Enthusiast

  • Members 会员

Posted December 20, 2020 (edited)
发布于 2020 年 12 月 20 日(已编辑)

  On 12/14/2020 at 5:03 AM, vvolfpack said:
于 2020 年 12 月 14 日凌晨 5:03,vvolfpack 说道:

Execution error: Device 0000:05:00.1 not found: could not access /sys/bus/pci/devices/0000:05:00.1/config: No such file or directory
执行错误:找不到设备 0000:05:00.1:无法访问 /sys/bus/pci/devices/0000:05:00.1/config:没有这样的文件或目录

Unable to find Bus 05 Slot O1 in my XML. Could something else be the issue here?
在我的 XML 中找不到总线 05 插槽 O1。这里还有其他问题吗?

1
2
3
4
5
6
7
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x05' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </hostdev>

Expand   扩张

Here it is, no?
就在这里,不是吗?

I think the format is Bus:Slot.Function; so in your scenario the issue is on Bus 05, Slot 00 with Function 1
我认为格式是 Bus:Slot.Function;因此,在您的情况下,问题出在总线 05、插槽 00 和功能 1 上

Edited December 20, 2020 by Joseph
约瑟夫 于 2020 年 12 月 20 日编辑

clarity  明晰

nGran  格兰

  • nGran
    Newbie

  • Members 会员

Posted August 13, 2022 发表于 2022 年 8 月 13 日

I just had the same issue, and the fix work, but i have a question. Why we need to do this?
我刚刚遇到了同样的问题,并且修复工作有效,但我有一个问题。为什么我们需要这样做?
Is there any reason why unraid is not detecting that the hardware is no longer installed, and ignore the setting. They can even provide us with some warning message on start, but outright preventing us from starting the VM dose not sound useful for me, but maybe some of you know a good reason for that.
是否有任何原因导致 unraid 未检测到不再安装硬件,并忽略该设置。他们甚至可以在启动时向我们提供一些警告消息,但完全阻止我们启动虚拟机对我来说听起来没什么用,但也许你们中的一些人知道这样做的一个很好的理由。

ilarion  伊拉里翁

  • ilarion
    Rookie

  • Members 会员

Posted August 15, 2022 发表于 2022 年 8 月 15 日

  On 8/13/2022 at 12:13 AM, nGran said:
2022 年 8 月 13 日中午 12:13,nGran 说道:

I just had the same issue, and the fix work, but i have a question. Why we need to do this?
我刚刚遇到了同样的问题,并且修复工作有效,但我有一个问题。为什么我们需要这样做?
Is there any reason why unraid is not detecting that the hardware is no longer installed, and ignore the setting. They can even provide us with some warning message on start, but outright preventing us from starting the VM dose not sound useful for me, but maybe some of you know a good reason for that.
是否有任何原因导致 unraid 未检测到不再安装硬件,并忽略该设置。他们甚至可以在启动时向我们提供一些警告消息,但完全阻止我们启动虚拟机对我来说听起来没什么用,但也许你们中的一些人知道这样做的一个很好的理由。

It is exactly say in the VM log what device it is not present and you are trying to attach to VFIO.  As for automatic part.  It is pci address that you attach that mean if you swap a card it will be attached automatically. For unraid this is a slot that you redirect what is on it is for vm os concern. And if it is nothing for most case is, mess because when you remove device and it is alone in the ioumu group this group number is bean taken with the next inline. So all VM has to be reedited.
VM 日志中准确说明了不存在的设备以及您正在尝试连接到 VFIO 的设备。至于自动部分。这是您附加的 pci 地址,这意味着如果您交换卡,它将自动附加。对于 unraid,这是一个插槽,您可以重定向其上的内容以解决虚拟机操作系统问题。如果在大多数情况下什么都没有,那么会很混乱,因为当您删除设备并且它单独存在于 ioumu 组中时,该组编号将与下一个内联一起获取。所以所有的VM都必须重新编辑。

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…
回复本主题…

Go to topic listing
转到主题列表