Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unraid 6.12 RC3 #3

Open
kingjoydom opened this issue Apr 22, 2023 · 10 comments
Open

unraid 6.12 RC3 #3

kingjoydom opened this issue Apr 22, 2023 · 10 comments

Comments

@kingjoydom
Copy link

重启之后报错

VM Autostart disabled due to vfio-bind error

@zhtengw
Copy link
Owner

zhtengw commented Apr 22, 2023

您好,有没有在tools->system device里面把设备绑定到vfio-pci,要去那里绑定了才能每次启动都生效。

@kingjoydom
Copy link
Author

image
我时在这边绑定了重启后报的错

@zhtengw
Copy link
Owner

zhtengw commented Apr 22, 2023

那查一查日志,看看提示的vfio-bind错误是哪些设备导致的

@kingjoydom
Copy link
Author

Loading config from /boot/config/vfio-pci.cfg
BIND=0000:05:00.0|8086:1528 0000:05:00.1|8086:1528 0000:08:00.0|8086:125c 0000:09:00.0|8086:125c 0000:00:02.1|8086:4692 0000:00:02.2|8086:4692---
Processing 0000:05:00.0 8086:1528
Vendor:Device 8086:1528 found at 0000:05:00.0

IOMMU group members (sans bridges):
/sys/bus/pci/devices/0000:05:00.0/iommu_group/devices/0000:05:00.0

Binding...

success...

Device 8086:1528 at 0000:05:00.0 bound to vfio-pci

Processing 0000:05:00.1 8086:1528
Vendor:Device 8086:1528 found at 0000:05:00.1

IOMMU group members (sans bridges):
/sys/bus/pci/devices/0000:05:00.1/iommu_group/devices/0000:05:00.1

Binding...

success...

Device 8086:1528 at 0000:05:00.1 bound to vfio-pci

Processing 0000:08:00.0 8086:125c
Vendor:Device 8086:125c found at 0000:08:00.0

IOMMU group members (sans bridges):
/sys/bus/pci/devices/0000:08:00.0/iommu_group/devices/0000:08:00.0

Binding...

success...

Device 8086:125c at 0000:08:00.0 bound to vfio-pci

Processing 0000:09:00.0 8086:125c
Vendor:Device 8086:125c found at 0000:09:00.0

IOMMU group members (sans bridges):
/sys/bus/pci/devices/0000:09:00.0/iommu_group/devices/0000:09:00.0

Binding...

success...

Device 8086:125c at 0000:09:00.0 bound to vfio-pci

Processing 0000:00:02.1 8086:4692

Processing 0000:00:02.2 8086:4692

Devices listed in /sys/bus/pci/drivers/vfio-pci:
lrwxrwxrwx 1 root root 0 Apr 21 16:36 0000:05:00.0 -> ../../../../devices/pci0000:00/0000:00:1c.4/0000:05:00.0
lrwxrwxrwx 1 root root 0 Apr 21 16:36 0000:05:00.1 -> ../../../../devices/pci0000:00/0000:00:1c.4/0000:05:00.1
lrwxrwxrwx 1 root root 0 Apr 21 16:36 0000:08:00.0 -> ../../../../devices/pci0000:00/0000:00:1d.0/0000:06:00.0/0000:07:03.0/0000:08:00.0
lrwxrwxrwx 1 root root 0 Apr 21 16:36 0000:09:00.0 -> ../../../../devices/pci0000:00/0000:00:1d.0/0000:06:00.0/0000:07:07.0/0000:09:00.0
vfio-pci binding complete

看这个日志,好像没有啥错误

@kingjoydom
Copy link
Author

Issue is VFIO check is completed before plugin is loaded so 2.1 and 2.2 don't exist. You don't need to bind them to VFIO.

unraid 上面的一个老哥给的反馈
Uploading tower-diagnostics-20230422-1733.zip…

@zhtengw
Copy link
Owner

zhtengw commented Apr 22, 2023

看起来没问题,手动启动VM应该是正常的,可能是6.12.0-rc3里加载插件和启动VM的顺序变了,在加载插件之前先尝试启动VM,所以找不到绑定的设备了。我升级个rc3试一下,看看有没有办法。

@zhtengw
Copy link
Owner

zhtengw commented Apr 22, 2023

Issue is VFIO check is completed before plugin is loaded so 2.1 and 2.2 don't exist. You don't need to bind them to VFIO.

unraid 上面的一个老哥给的反馈 Uploading tower-diagnostics-20230422-1733.zip…

他是Unraid认证的社区开发者,跟我想的差不多。

@kingjoydom
Copy link
Author

kingjoydom commented Apr 22, 2023

我换了个方式,虚拟出来的显卡不绑定直通,直接在VM里面用就好了。

@zhtengw
Copy link
Owner

zhtengw commented Apr 22, 2023

我换了个方式,虚拟出来的显卡不绑定直通,直接在VM里面用就好了。

对,也可以,启动虚拟机的时候会自动把直通的pci设备用vfio-pci去驱动,而虚拟的vf显卡主机用不上的,直接虚拟机里用就行。

@Anoyou
Copy link

Anoyou commented Apr 28, 2023

我换了个方式,虚拟出来的显卡不绑定直通,直接在VM里面用就好了。

哇 cool 我这两天也因此困扰,导致我openwrt 都不能在重启后自启动。都不绑定后啥问题都没了 该调用还是调用 舒服了~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants