Proxmox HBA passtrough to TrueNAS VM

Hi there,

I’m trying to pass an HBA controller (SAS to PCIe) to TrueNAS, but unfortunately I cannot manage to get it to work. The plan is to hand over the four connected HDDs directly to TrueNAS to have best usage of ZFS.

The Setup: The hardware is an HPE ProLiant DL830p Gen8 with a HP H221 HBA PCIe controller. (the HBA controller is only for TrueNAS, Proxmox and all VMs are located on different hardware) Proxmox VE9 is installed on the hardware, TrueNAS is installed on a VM (beside several other VMs). Proxmox is showing the following information about the HBA-controller:

Proxmox:~# lspci -nnk -s 27:00.0
27:00.0 Serial Attached SCSI controller [0107]: Broadcom / LSI SAS2308 PCI-Express Fusion-MPT SAS-2 [1000:0087] (rev 01)
DeviceName: Storage Controller
Subsystem: Hewlett Packard Enterprise H221 / 9207-8e [1590:0042]
Kernel driver in use: vfio-pci
Kernel modules: mpt3sas

The current situation: I’m facing the following message when trying to start the TrueNAS-VM:
Porxmox:~# qm start 130
kvm: -device vfio-pci,host=0000:27:00.0,id=hostpci0,bus=pci.0,addr=0x10,rombar=0: vfio 0000:27:00.0: failed to setup container for group 21: Failed to set group container: Invalid argument
start failed: QEMU exited with code 1

I’d highly appreciate any help getting my setup to work.

Best Regards Michael

You should blacklist the HBA driver on your Proxmox node so that it does not try to use the HBA. See this from the Proxmox forums. how to blacklist a pcie-hba

1 Like