September 11, 20178 yr Hi guys, I'm trying to pass through a USB-controller as I've had issues with passing just the USB-unit to my VM. I'm following this guide by Spaceinvare1, and found out I had to buy a PCI-controller as all my other controllers were in IOMMU groups with devices I couldn't pass. So I've updated my config to look like this, and have edited the VM to pass the PCI-device. I rebooted the server after editing the config. default /syslinux/menu.c32 menu title Lime Technology, Inc. prompt 0 timeout 50 label unRAID OS menu default kernel /bzimage append vfio-pci.ids=1912:0015 initrd=/bzroot label unRAID OS GUI Mode kernel /bzimage append initrd=/bzroot,/bzroot-gui label unRAID OS Safe Mode (no plugins, no GUI) kernel /bzimage append initrd=/bzroot unraidsafemode label unRAID OS GUI Safe Mode (no plugins) kernel /bzimage append initrd=/bzroot,/bzroot-gui unraidsafemode label Memtest86+ kernel /memtest Unfortunately, when starting the VM I get the following error in the log: 2017-09-11T07:54:01.555885Z qemu-system-x86_64: -device vfio-pci,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x6: vfio: failed to set iommu for container: Operation not permitted 2017-09-11T07:54:01.555915Z qemu-system-x86_64: -device vfio-pci,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x6: vfio: failed to setup container for group 19 2017-09-11T07:54:01.555931Z qemu-system-x86_64: -device vfio-pci,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x6: vfio: failed to get group 19 2017-09-11T07:54:01.555947Z qemu-system-x86_64: -device vfio-pci,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x6: Device initialization failed 2017-09-11 07:54:01.596+0000: shutting down, reason=failed Why can't this device be initialized? EDIT: Just to be clear. The only device in IOMMU group 19 is the controller I'm trying to pass. Thanks! Edited September 11, 20178 yr by Fredrick
September 11, 20178 yr Author I found a solution, my current config looks like this, and seems to work well. default /syslinux/menu.c32 menu title Lime Technology, Inc. prompt 0 timeout 50 label unRAID OS menu default kernel /bzimage append vfio_iommu_type1.allow_unsafe_interrupts=1 pcie_acs_override=downstream vfio-pci.ids=1912:0015 initrd=/bzroot label unRAID OS GUI Mode kernel /bzimage append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui label unRAID OS Safe Mode (no plugins, no GUI) kernel /bzimage append pcie_acs_override=downstream initrd=/bzroot unraidsafemode label unRAID OS GUI Safe Mode (no plugins) kernel /bzimage append pcie_acs_override=downstream initrd=/bzroot,/bzroot-gui unraidsafemode label Memtest86+ kernel /memtest
Archived
This topic is now archived and is closed to further replies.