Troubleshooting PCI Pass through in XCP-ng

Fellow forum users, lend me your brains.

It seems one of my HBAs isn’t being passed through properly to a TrueNAS VM I’m trying to get set up on XCP-ng.

[07:53 xcpng ~]# lspci
...
c1:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)
...
81:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)
[07:53 xcpng ~]# xl pci-assignable-list
0000:c1:00.0
0000:82:00.0
0000:81:00.0
0000:82:00.1

Ignore the 0000:82.* entries. That’s a GPU which is intended for another VM.

[08:17 xcpng ~]# xe vm-param-list uuid=cece8910-1139-12a9-4ec9-45760813b51e | grep other-config
other-config (MRW): pci: 0/0000:c1:00.0,0/0000:00:81:00.0; ...

But in the VM…

truenas% sudo lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:02.0 VGA compatible controller: Device 1234:1111
00:03.0 SCSI storage controller: XenSource, Inc. Xen Platform Device (rev 02)
00:05.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)

I see only one HBA, and drives connected to the other don’t show up in the VM. I’m guessing 00:3.0 is a kind of bridge device between guest and host which would be there anyway.

What do?

Not my strongest area, but I wanted to point out the possibility of a typo. In the line where you are assigning the vm passthrough do you mean to have:

pci: 0/0000:c1:00.0,0/0000:00:81:00.0;

Instead of:

pci: 0/0000:c1:00.0,0/0000:81:00.0;
1 Like

Dude, that might be it. :rofl:

I’m pretty sure I copied that part straight from the output of xe vm-param-list and then just chopped off the other params which were unrelated.

I’ll check when I get home.

:metal:

1 Like