nayr Posted December 5, 2018 Share Posted December 5, 2018 see: https://github.com/andre-richter/vfio-pci-bind/blob/master/vfio-pci-bind.sh I'm using above script on boot to rebind a mpt3sas controller to vfio-pci so it can be passed through to a VM, works great.. would be nice if UI had similar functionality, where you could select devices to rebind to vfio-pci based upon address so they can be reclaimed from kernel modules that might grab em and prevent em from being passed through.. In my case I have 2 identical cards, one for UnRaid, one for a VM (FreeNAS) so blacklisting mpt3sas would not be desired. I'd expect it to work for PCIe SSD's too since I didnt see any of them available to be passed through.. tho im not needing em, yet. Cheers, -nayr Quote Link to comment
saarg Posted December 5, 2018 Share Posted December 5, 2018 You don't need the script for it. Simply add xen-pciback.hide=(pci number)(next PCI number) in the syslinux.cfg. Quote Link to comment
nayr Posted December 6, 2018 Author Share Posted December 6, 2018 (edited) ah I did not find that option, everything I found was trying to use PCI ID's and that was not gonna work since they were both the same. # lspci -nn |grep SAS 09:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios Logic SAS2308 PCI-Express Fusion-MPT SAS-2 [1000:0087] (rev 05) 42:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios Logic SAS2308 PCI-Express Fusion-MPT SAS-2 [1000:0087] (rev 05) Thank you, I dont like this script solution im using now.. felt like a big hack waiting to break on update.. I still feel it would be a useful UI feature, I'm happy editing boot options to get devices to passthrough, but I get a feeling a large part of the unraid audience are more windows users (or at least SMB gets more love than NFS) Edited December 6, 2018 by nayr i was wrong 1 Quote Link to comment
limetech Posted January 23, 2019 Share Posted January 23, 2019 On 12/4/2018 at 11:22 PM, nayr said: I'm using above script on boot to rebind a mpt3sas controller to vfio-pci We integrated this script in 6.7.0-rc1, check it out! Quote Link to comment
Recommended Posts
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.