SATA Passthrough without RAID Controller IT Mode

neu5500

New Member
Aug 23, 2020
11
0
1
32
Hello,

it is possible without RAID Controller in IT Mode several SATA hard drives to a VM like Openmediavault?
Would this work with a SATA adapter?
 

avw

Renowned Member
May 31, 2020
1,003
173
63
Yes, there is no difference between PCIe passthrough of a RAID controller or a SATA controller. Try to make sure you have a motherboard and BIOS and PCIe card that work with PCI passthrough. Try to use something that has been reported to work by people on this forum or other VFIO-related forums. Note that PCI passthrough forces your VM to pin/lock all its memory. Why not pass the drives to the VM instead of a disk controller?
 
Last edited:

avw

Renowned Member
May 31, 2020
1,003
173
63
Maybe the SATA controller does not reset properly, and it only works once or if it in not touched by the host (kernel driver)? Have you tried binding it to vfio-pci to prevent the host from touching it? Do you know of anyone on the internet that has had success with this particular PCI card? These are the usual possible issues with PCI passthrough, regardless whether it is a RAID or SATA controller or GPU.
What is the output of lspci -vvns '01:00.0' on the host? (Please use ssh instead of screenshots.)
 

neu5500

New Member
Aug 23, 2020
11
0
1
32
This is the output from the sata controller:

Controller ID:
00:10.0 SATA controller: Marvell Technology Group Ltd. 88SE9125 PCIe SATA 6.0 Gb/s controller (rev 11)


root@OMV:~# lspci -vvns '00:10.0'
00:10.0 0106: 1b4b:9125 (rev 11) (prog-if 01 [AHCI 1.0])
Subsystem: 1b4b:9125
Physical Slot: 16
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 24
Region 0: Memory at <ignored> (32-bit, non-prefetchable)
Region 1: Memory at <ignored> (64-bit, non-prefetchable)
Region 3: Memory at <ignored> (64-bit, prefetchable)
Region 5: Memory at fea82000 (32-bit, non-prefetchable) [size=2K]
Expansion ROM at fea70000 [disabled] [size=64K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
Address: fee00000 Data: 4028
Capabilities: [70] Express (v2) Legacy Endpoint, MSI 00
DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <1us, L1 <8us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <512ns, L1 <64us
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported, TimeoutDis+, LTR-, OBFF Not Supported
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
Kernel driver in use: ahci
Kernel modules: ahci
 

avw

Renowned Member
May 31, 2020
1,003
173
63
The SATA controller does not support Function Level Reset (FLReset-), therefore it maybe necessary to prevent the host from using it with the ahci driver.
Can you try adding vfio-pci.ids=1b4b:9125 to your kernel command line? /etc/kernel/cmdline or /etc/default/grub or temporarily during the boot menu (press 'e')?
Alternatively, would it be an option to pass the drives by adding scsiX: /dev/disk/by-id/... to the VMID.conf in /etc/pve/qemu-server? This does not require PCI passthrough and is more robust and simpler.
 

neu5500

New Member
Aug 23, 2020
11
0
1
32
Ok then is use the simple way to add my disks with scsiX: /dev/disk/by-id/... if thats easier and robust.
 
Last edited:

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 your own in 60 seconds.

Buy now!