Single SAS Port Passthrough (Dual Port HBA)

mhert

Well-Known Member
Jul 5, 2017
87
1
48
44
Hello Guys.

Is it possible to passthroug the ports of a dual sas hba to two different vm's?

Code:
root@prox11:~# lspci -s 19:00.0 -v
19:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)
        Subsystem: Broadcom / LSI SAS9300-8e
        Flags: bus master, fast devsel, latency 0, IRQ 36, NUMA node 0, IOMMU group 8
        I/O ports at 5000 [disabled] [size=256]
        Memory at aae40000 (64-bit, non-prefetchable) [size=64K]
        Memory at aae00000 (64-bit, non-prefetchable) [size=256K]
        Expansion ROM at aad00000 [disabled] [size=1M]
        Capabilities: [50] Power Management version 3
        Capabilities: [68] Express Endpoint, MSI 00
        Capabilities: [a8] MSI: Enable- Count=1/1 Maskable+ 64bit+
        Capabilities: [c0] MSI-X: Enable+ Count=96 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [1e0] Secondary PCI Express
        Capabilities: [1c0] Power Budgeting <?>
        Capabilities: [190] Dynamic Power Allocation <?>
        Capabilities: [148] Alternative Routing-ID Interpretation (ARI)
        Kernel driver in use: vfio-pci
        Kernel modules: mpt3sas
 
do they report as different pci devices? if yes, are they in different iommu groups? if no to any of those questions, the i fear it's not possible.
you can "passthrough" the individual disks though, it's not as elegant, and you don't get direct access to the hw in the guest (so no smart, etc.) but should perform ok
 
thank you for reply.

there is only one device reported (19:00.0) but as i saw meanwhile it's an eight-port-controller (with two external connectors).

i want to attach an dual-partition tape library connected to the server with two sas-cables to two different vm's (no disks).
 
thats in fact the status quo.

i have already passed the whole controller to a vm in my current setup.

but after partitioning (2) of the tape libray i want to pass each partition to a different vm...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!