Sata Controler Passthrough : controler detected from VM but not HDD

lxiosjao

Member
Mar 21, 2021
63
1
13
Hi,

I would like to passthrough a SATA PCIe 2.0 controler to a VM.
The controler is detected from the VM but I can't find HDD.

i used this doc : https://pve.proxmox.com/wiki/PCI(e)_Passthrough

Host config
file : /etc/modules ( update-initramfs -u -k all )
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

file : /etc/kernel/cmdline (proxmox-boot-tool refresh ok)
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"

Output of dmesg : dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
Code:
[    0.059230] DMAR: IOMMU enabled
passthrough.png



VM informations: Ubuntu (q35)
Controler SATA is : https://www.amazon.fr/dp/B07283QF8K (CHIPSET MARVELL 88SE9120-NAA2)
HDD : Western Digital WD Red Plus 8 TB SATA 6Gb/s

lspci -nn from VM
Code:
02:00.0 SATA controller [0106]: Marvell Technology Group Ltd. 88SE9120 SATA 6Gb/s Controller [1b4b:9120] (rev 12)

Any idea why I can't see HDD from the vm (lsblk command)


thanks


EDIT : If I don't do the passthrough with this controler I still can't see my HDD 8TB from the host.
I have no issue if I plug sata into the motherboard (and not in the controler pcie)
i tried with another HDD, the issue still there.
 
Last edited:
Some 88SE9128 controllers don't detect drives when IOMMU (VT-d) is on. Try booting with intel_iommu=off and check if you can see the connected drive(s) on the host. If that does work then the card probably has a firmware issue that prevents you from using this card and passthrough (of any device) at the same time.
Maybe the Proxmox staff can check whether this fix is included in the Proxmox kernel 5.15? Which kernel (and Proxmox version) are you running?
 
  • Like
Reactions: lxiosjao
Maybe the Proxmox staff can check whether this fix is included in the Proxmox kernel 5.15? Which kernel (and Proxmox version) are you running?
yes AFAICS, this is already in our current 5.15. kernel for a while
 
  • Like
Reactions: leesteken
Some 88SE9128 controllers don't detect drives when IOMMU (VT-d) is on. Try booting with intel_iommu=off and check if you can see the connected drive(s) on the host. If that does work then the card probably has a firmware issue that prevents you from using this card and passthrough (of any device) at the same time.
Maybe the Proxmox staff can check whether this fix is included in the Proxmox kernel 5.15? Which kernel (and Proxmox version) are you running?
I tried booting with intel_iommu=off
I can see my HDD from host but I can't import my zfs pool.

Code:
root # zpool import
no pools available to import
But I can read S.M.A.R.T disk.
Why ?

Information about host :
kernel : 5.15.35-2-pve #1
PVE : 7.2-4

------------------------------------------------------------------------------------------------------------------

EDIT : Now I can't see my hdd with a lsblk. I don't understand
 
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 yours easily in our online shop.

Buy now!