PCI Sata controller: no devices in Proxmox

notarobot

New Member
Apr 15, 2019
10
0
1
30
Hello everyone,
New server is up and running and is working like a charm except one major issue.
I had to add a few extra SATA ports so I bought this SATA PCI controller (based on Marvell 9215).
At boot I see the card and the drive attached to it but one Proxmox is started no traces of the disk

If I do lspci -v:
Bash:
02:00.0 SATA controller: Marvell Technology Group Ltd. Device 9215 (rev 11) (prog-if 01 [AHCI 1.0])
        Subsystem: Marvell Technology Group Ltd. Device 9215
        Physical Slot: 2
        Flags: fast devsel, IRQ 16
        I/O ports at d050 [size=8]
        I/O ports at d040 [size=4]
        I/O ports at d030 [size=8]
        I/O ports at d020 [size=4]
        I/O ports at d000 [size=32]
        Memory at df340000 (32-bit, non-prefetchable) [size=2K]
        Expansion ROM at df300000 [disabled] [size=256K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [70] Express Legacy Endpoint, MSI 00
        Capabilities: [e0] SATA HBA v0.0
        Kernel driver in use: vfio-pci
        Kernel modules: ahci
No traces of the disks in /dev/ and they are working everywhere else and detected in BIOS. I'm thinking of a kernel issue ?

If anybody can help that would be nice !
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
3,917
357
83
31
Vienna
Kernel driver in use: vfio-pci
it seem that the 'vfio-pci' driver takes the card (maybe you configured something for passthrough?) so the kernel will not query it for disks
 

notarobot

New Member
Apr 15, 2019
10
0
1
30
I also thought that was weird. I haven't configured the card for passthrough so that's even weirder...
 
Last edited:

notarobot

New Member
Apr 15, 2019
10
0
1
30
I double checked: At boot I have a screen that says I have this card plugged in with a 500GB SSD plugged in. That makes me think that the problem is at Proxmox level.
 

notarobot

New Member
Apr 15, 2019
10
0
1
30
I may have found something: the SATA PCI Card is on the same IOMMU group that a network card. This network card is being passthrough in one of my VM so maybe that's the problem. How can I put this card in its own IOMMU group ?
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
3,917
357
83
31
Vienna
I may have found something: the SATA PCI Card is on the same IOMMU group that a network card. This network card is being passthrough in one of my VM so maybe that's the problem. How can I put this card in its own IOMMU group ?
you cannot really, this is depending on the mainboard bios and pcie configuration.
you can try to switch pcie slots (if possible)

can you post your vfio module configs (if any) and the config of the vm with the passed through network card and the output of lspci ?
did you blacklist any drivers ?

(side note: we have included the acs override patch (https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Bypassing_the_IOMMU_groups_(ACS_override_patch)) in our kernel, but make sure you know the possible side effects)
 

notarobot

New Member
Apr 15, 2019
10
0
1
30
I've "solved" this issue this morning, my VM needed a network card and a SATA controller so instead of using my motherboard controller I gave it the PCI card. Problem solved !
Thanks a lot for the help anyway !
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!