February 9, 20251 yr Hello everyone! After installing a HomeAssistant VM (and the need for it to autostart after reboot) I'm facing the following error: Quote Vfio-pci-errors VM Autostart disabled due to vfio-bind error Spent the last couple of days trying to solve this issue: checked and unchecked IOMMU group on Tools - System Devices (bind to vfio and reboot). Currently I have 2 VM on my system: HA and W11 (which has my iGPU passed through). Here are some more information: Quote root@Tower:/var/log# cat vfio-pci Loading config from /boot/config/vfio-pci.cfg BIND=0000:00:02.1|8086:4692 0000:00:02.2|8086:4692--- Processing 0000:00:02.1 8086:4692 --- Processing 0000:00:02.2 8086:4692 --- Devices listed in /sys/bus/pci/drivers/vfio-pci: vfio-pci binding complete Quote root@Tower:/var/log# cat vfio-pci-errors Error: Device 0000:00:02.1 does not exist, unable to bind device Error: Device 0000:00:02.2 does not exist, unable to bind device Is there anything else to do to solve this issue? Thanks in advance Edit: Unraid 7.0.0 Edited February 9, 20251 yr by lsljunior add information
February 9, 20251 yr It looks like your trying to pass your igpu... passing the onboards graphic process is hard and not recommend... *As you essential will be cutting the processor in half to pass the gpu part which can be problematic... not impossible... you may need driver install: what is the output of the kernel driver in use for the uhd from command lspci -v as you want the bound device to say: you may need extra grub option to rip out and stop the frame buffers on the cpu. review some info here...
February 9, 20251 yr Author 56 minutes ago, bmartino1 said: It looks like your trying to pass your igpu... passing the onboards graphic process is hard and not recommend... *As you essential will be cutting the processor in half to pass the gpu part which can be problematic... not impossible... you may need driver install: what is the output of the kernel driver in use for the uhd from command lspci -v as you want the bound device to say: you may need extra grub option to rip out and stop the frame buffers on the cpu. review some info here... Hello! this is the output for the command: Also, the driver is already installed. In fact, W11 VM (which is the only one I have iGPU passed through) works perfect. The only problem is that I can't autostart VM because of this issue Quote 00:00.0 Host bridge: Intel Corporation Device 4630 (rev 05) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IOMMU group 1 00:02.0 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) (prog-if 00 [VGA controller]) DeviceName: Onboard - Video Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 137, IOMMU group 0 Memory at 6000000000 (64-bit, non-prefetchable) Memory at 4000000000 (64-bit, prefetchable) I/O ports at 4000 Expansion ROM at 000c0000 [virtual] [disabled] Capabilities: [40] Vendor Specific Information: Len=0c <?> Capabilities: [70] Express Root Complex Integrated Endpoint, IntMsgNum 0 Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit- Capabilities: [d0] Power Management version 2 Capabilities: [100] Process Address Space ID (PASID) Capabilities: [200] Address Translation Service (ATS) Capabilities: [300] Page Request Interface (PRI) Capabilities: [320] Single Root I/O Virtualization (SR-IOV) Kernel driver in use: i915 Kernel modules: i915 00:02.1 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) (prog-if 00 [VGA controller]) Subsystem: Zycoo Co., Ltd Device 0760 Flags: fast devsel, IOMMU group 15 Memory at 4010000000 (64-bit, non-prefetchable) [disabled] Memory at 4020000000 (64-bit, prefetchable) [virtual] Capabilities: [70] Express Root Complex Integrated Endpoint, IntMsgNum 0 Capabilities: [ac] MSI: Enable- Count=1/1 Maskable+ 64bit- Kernel driver in use: vfio-pci Kernel modules: i915 00:02.2 VGA compatible controller: Intel Corporation Alder Lake-S GT1 [UHD Graphics 730] (rev 0c) (prog-if 00 [VGA controller]) Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IOMMU group 16 Memory at 4011000000 (64-bit, non-prefetchable) [disabled] Memory at 4040000000 (64-bit, prefetchable) [virtual] Capabilities: [70] Express Root Complex Integrated Endpoint, IntMsgNum 0 Capabilities: [ac] MSI: Enable- Count=1/1 Maskable+ 64bit- Kernel driver in use: vfio-pci Kernel modules: i915 00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 05) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: fast devsel, IRQ 255, IOMMU group 2 Memory at 6001133000 (64-bit, non-prefetchable) [disabled] Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [a0] Vendor Specific Information: Len=14 <?> Capabilities: [dc] Power Management version 2 Capabilities: [f0] PCI Advanced Features 00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01) DeviceName: Onboard - Other Flags: fast devsel, IOMMU group 3 Memory at 6001110000 (64-bit, non-prefetchable) Capabilities: [70] Express Root Complex Integrated Endpoint, IntMsgNum 0 Capabilities: [d0] Power Management version 3 Capabilities: [100] Designated Vendor-Specific: Vendor=8086 ID=0002 Rev=1 Len=16 <?> Capabilities: [110] Designated Vendor-Specific: Vendor=8086 ID=0003 Rev=1 Len=16 <?> Capabilities: [120] Designated Vendor-Specific: Vendor=8086 ID=0004 Rev=1 Len=16 <?> 00:14.0 USB controller: Intel Corporation Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller (rev 11) (prog-if 30 [XHCI]) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, medium devsel, latency 0, IRQ 124, IOMMU group 4 Memory at 6001100000 (64-bit, non-prefetchable) Capabilities: [70] Power Management version 2 Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+ Capabilities: [90] Vendor Specific Information: Len=14 <?> Capabilities: [b0] Vendor Specific Information: Len=00 <?> Kernel driver in use: xhci_hcd 00:14.2 RAM memory: Intel Corporation Alder Lake-S PCH Shared SRAM (rev 11) DeviceName: Onboard - Other Flags: fast devsel, IOMMU group 4 Memory at 6001124000 (64-bit, non-prefetchable) [disabled] Memory at 6001132000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 00:15.0 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #0 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 5 Memory at 4017000000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 Capabilities: [90] Vendor Specific Information: Len=14 <?> 00:15.1 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #1 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 5 Memory at 4017001000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 Capabilities: [90] Vendor Specific Information: Len=14 <?> 00:15.2 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #2 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 5 Memory at 4017002000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 Capabilities: [90] Vendor Specific Information: Len=14 <?> 00:15.3 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #3 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 5 Memory at 4017003000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 Capabilities: [90] Vendor Specific Information: Len=14 <?> 00:16.0 Communication controller: Intel Corporation Alder Lake-S PCH HECI Controller #1 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 126, IOMMU group 6 Memory at 600112d000 (64-bit, non-prefetchable) Capabilities: [50] Power Management version 3 Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [a4] Vendor Specific Information: Len=14 <?> Kernel driver in use: mei_me Kernel modules: mei_me 00:17.0 SATA controller: Intel Corporation Alder Lake-S PCH SATA Controller [AHCI Mode] (rev 11) (prog-if 01 [AHCI 1.0]) DeviceName: Onboard - SATA Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 125, IOMMU group 7 Memory at 80a00000 (32-bit, non-prefetchable) Memory at 80a03000 (32-bit, non-prefetchable) I/O ports at 4090 I/O ports at 4080 I/O ports at 4060 Memory at 80a02000 (32-bit, non-prefetchable) Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [70] Power Management version 3 Capabilities: [a8] SATA HBA v1.0 Kernel driver in use: ahci Kernel modules: ahci 00:19.0 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #4 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 8 Memory at 4017004000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 Capabilities: [90] Vendor Specific Information: Len=14 <?> 00:19.1 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO I2C Controller #5 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 8 Memory at 4017005000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 Capabilities: [90] Vendor Specific Information: Len=14 <?> 00:1c.0 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #1 (rev 11) (prog-if 00 [Normal decode]) Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 122, IOMMU group 9 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 3000-3fff [16-bit] Memory behind bridge: 80900000-809fffff [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: [40] Express Root Port (Slot+), IntMsgNum 0 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [98] Subsystem: Zycoo Co., Ltd Device 0760 Capabilities: [a0] Power Management version 3 Capabilities: [100] Advanced Error Reporting Capabilities: [220] Access Control Services Capabilities: [150] Precision Time Measurement Capabilities: [a30] Secondary PCI Express Capabilities: [a90] Data Link Feature <?> Kernel driver in use: pcieport 00:1c.4 PCI bridge: Intel Corporation Alder Lake-S PCH PCI Express Root Port #5 (rev 11) (prog-if 00 [Normal decode]) Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IRQ 123, IOMMU group 10 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: [disabled] [16-bit] Memory behind bridge: 80800000-808fffff [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: [40] Express Root Port (Slot+), IntMsgNum 0 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [98] Subsystem: Zycoo Co., Ltd Device 0760 Capabilities: [a0] Power Management version 3 Capabilities: [100] Advanced Error Reporting Capabilities: [220] Access Control Services Capabilities: [150] Precision Time Measurement Capabilities: [a30] Secondary PCI Express Capabilities: [a90] Data Link Feature <?> Kernel driver in use: pcieport 00:1e.0 Communication controller: Intel Corporation Alder Lake-S PCH Serial IO UART #0 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: fast devsel, IRQ 255, IOMMU group 11 Memory at 4017006000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 Capabilities: [90] Vendor Specific Information: Len=14 <?> 00:1e.3 Serial bus controller: Intel Corporation Alder Lake-S PCH Serial IO SPI Controller #1 (rev 11) DeviceName: Onboard - Other Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 11 Memory at 4017007000 (64-bit, non-prefetchable) [disabled] Capabilities: [80] Power Management version 3 Capabilities: [90] Vendor Specific Information: Len=14 <?> 00:1f.0 ISA bridge: Intel Corporation Device 7a87 (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: bus master, fast devsel, latency 0, IOMMU group 12 00:1f.3 Audio device: Intel Corporation Alder Lake-S HD Audio Controller (rev 11) DeviceName: Onboard - Sound Subsystem: Realtek Semiconductor Co., Ltd. Device 0897 Flags: fast devsel, IRQ 255, IOMMU group 12 Memory at 6001120000 (64-bit, non-prefetchable) [disabled] Memory at 6001000000 (64-bit, non-prefetchable) [disabled] Capabilities: [50] Power Management version 3 Capabilities: [80] Vendor Specific Information: Len=14 <?> Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+ 00:1f.4 SMBus: Intel Corporation Alder Lake-S PCH SMBus Controller (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: medium devsel, IRQ 18, IOMMU group 12 Memory at 6001128000 (64-bit, non-prefetchable) I/O ports at efa0 Kernel driver in use: i801_smbus Kernel modules: i2c_i801 00:1f.5 Serial bus controller: Intel Corporation Alder Lake-S PCH SPI Controller (rev 11) DeviceName: Onboard - Other Subsystem: Zycoo Co., Ltd Device 0760 Flags: fast devsel, IOMMU group 12 Memory at 80a04000 (32-bit, non-prefetchable) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. Device 0123 Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 13 I/O ports at 3000 Memory at 80900000 (64-bit, non-prefetchable) Memory at 80910000 (64-bit, non-prefetchable) Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+ Capabilities: [70] Express Endpoint, IntMsgNum 1 Capabilities: [b0] MSI-X: Enable+ Count=32 Masked- Capabilities: [d0] Vital Product Data Capabilities: [100] Advanced Error Reporting Capabilities: [148] Virtual Channel Capabilities: [168] Device Serial Number 01-00-00-00-68-4c-e0-00 Capabilities: [178] Transaction Processing Hints Capabilities: [204] Latency Tolerance Reporting Capabilities: [20c] L1 PM Substates Capabilities: [21c] Vendor Specific Information: ID=0002 Rev=4 Len=100 <?> Kernel driver in use: r8169 Kernel modules: r8169 02:00.0 Non-Volatile memory controller: Silicon Motion, Inc. SM2263EN/SM2263XT (DRAM-less) NVMe SSD Controllers (rev 03) (prog-if 02 [NVM Express]) Subsystem: Silicon Motion, Inc. SM2263EN/SM2263XT (DRAM-less) NVMe SSD Controllers Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 14 Memory at 80800000 (64-bit, non-prefetchable) Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=1/8 Maskable+ 64bit+ Capabilities: [70] Express Endpoint, IntMsgNum 0 Capabilities: [b0] MSI-X: Enable+ Count=16 Masked- Capabilities: [100] Advanced Error Reporting Capabilities: [158] Secondary PCI Express Capabilities: [178] Latency Tolerance Reporting Capabilities: [180] L1 PM Substates Kernel driver in use: nvme Kernel modules: nvme Edited February 9, 20251 yr by lsljunior formatting
February 9, 20251 yr Then how is it running and on? what do you do to get it to turn on? As you may need to sh script it and not use the auto start toggle... In Unraid, QEMU and libvirt manage virtual machines. You can start a VM using the virsh command, which interacts with libvirt. ?have you tried a user script at first array start to call the vm and start the vm. with the user script plugin: Here’s the general command to start a VM: virsh start Windows11 Other useful virsh commands: List VMs (running and inactive): virsh list --all Shutdown a VM: virsh shutdown <vm-name> Force stop (destroy) a VM: virsh destroy <vm-name> Reboot a VM: virsh reboot <vm-name> Autostart a VM (automatically start on Unraid boot): virsh autostart <vm-name> View VM status: virsh domstate <vm-name> View VM logs or console output: virsh console <vm-name>
February 9, 20251 yr we may need to script somehting else to help asssit or fix the problem... sh script to unbind the card thanks to the lspci dta given: #!/bin/bash # List of PCI addresses for the devices PCI_ADDRESSES=("0000:00:02.0" "0000:00:02.1" "0000:00:02.2") # Function to unbind a device unbind_device() { local pci_address=$1 # Check if the device exists if [ -e "/sys/bus/pci/devices/$pci_address" ]; then echo "Unbinding device $pci_address..." # Attempt to unbind the device from its current driver if [ -e "/sys/bus/pci/devices/$pci_address/driver" ]; then echo -n "$pci_address" > "/sys/bus/pci/devices/$pci_address/driver/unbind" echo "Device $pci_address unbound." else echo "No driver found for device $pci_address." fi else echo "Device $pci_address does not exist." fi } # Function to bind a device to vfio-pci (optional) bind_to_vfio() { local pci_address=$1 # Bind the device to vfio-pci driver if [ -e "/sys/bus/pci/drivers/vfio-pci" ]; then echo -n "$pci_address" > "/sys/bus/pci/drivers/vfio-pci/bind" echo "Device $pci_address bound to vfio-pci." else echo "vfio-pci driver not found." fi } # Loop through each PCI address to unbind and bind (if needed) for pci_address in "${PCI_ADDRESSES[@]}"; do unbind_device "$pci_address" # Uncomment the following line if you want to bind the devices to vfio-pci # bind_to_vfio "$pci_address" done echo "All devices processed." in unraid 7 we can leverage udev rules. mkdir /boot/config/udev touch /boot/config/udev/99-vfio-pci.rules nano /boot/config/udev/99-vfio-pci.rules udev example ACTION=="add", SUBSYSTEM=="pci", DRIVERS=="", ATTR{vendor}=="0x8086", ATTR{device}=="0x4692", \ ATTR{driver_override}="vfio-pci" we may need to fix FB and add adition vfio settings to grub: WebUI > Main > Flash > scroll to bottom syslinx options... example: I would have you run: kernel /bzimage append initrd=/bzroot video=vesafb:off,efifb:off,simplefb:off,astdrmfb initcall_blacklist=sysfb_init acpi=force acpi_osi=Linux pci=nocrs irqpoll vfio-pci.ids=8086:4692 with VM Settings: potentail run a sh script to help the vm instance: at array start run #!/bin/bash sleep 5 # Allow time for devices to appear echo "0000:00:02.1" > /sys/bus/pci/drivers/vfio-pci/bind echo "0000:00:02.2" > /sys/bus/pci/drivers/vfio-pci/bind
February 9, 20251 yr also review video and confirm vm xml is not breaking the gcards into multiple pcie devices...
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.