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 解决了
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 日编辑
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 的残留引用。
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
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。这里还有其他问题吗?
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。这里还有其他问题吗?
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 明晰
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 未检测到不再安装硬件,并忽略该设置。他们甚至可以在启动时向我们提供一些警告消息,但完全阻止我们启动虚拟机对我来说听起来没什么用,但也许你们中的一些人知道这样做的一个很好的理由。
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都必须重新编辑。
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. 注意:您的帖子需要版主批准才能可见。