SATA Passthrough Partially Working[SOLVED]

jShomp

New Member
Mar 4, 2023
11
1
3
Hello,

I built an Unraid VM in PVE and had originally attached all my drives using qm set but decided to rebuild from scratch and use passthrough instead. I'm passing through both my HBA card and SATA controller, and while all my drives attached to my HBA are showing in Unraid, only 2 out of 3 of my SATA controller drives showing. I can see it under Datacenter->Node->Disks, and it isn't and never was used for anything in PVE itself. I don't think it should matter but it was my parity drive in Unraid before I reinstalled everything, but I have since wiped it and formatted with ext4, fat32, and even reiserfs but I just can't get it to show up. I rebooted Unraid and PVE several times, and have rebuilt the Unraid VM from scratch 3 times now. Am I missing something? Maybe some kind of conflict from using qm set before? Any help is appreciated, and will provide any needed info.
 
Last edited:
I think I found my problem. My motherboard has 8 SATA connectors but 2 different controllers, and my "missing drive" is on the one shared by PVE that's obviously not being passed through. I'm such a newb! :oops:

6 x SATA3 6.0 Gb/s Connectors by Intel Z97, support RAID (RAID 0, RAID 1, RAID 5, RAID 10, Intel® Rapid Storage
2 x SATA3 6.0 Gb/s Connectors by ASMedia ASM1061, support NCQ, AHCI, Hot Plug and ASRock HDD Saver Technology
 
Last edited:
  • Like
Reactions: leesteken
May I ask you if you fixed the problem and how?
I'm facing a strange problem, I can't passtrhough my sata controller pci because the VM crashes and entire server become unreachable forcing me to reboot it physically.
But if I passthrough the pysical drives instead it works like a charm.
I noticed i've 2 sata controller listed in lspci but I'm passing only the SATA PCIe one, should I pass both instead?

Code:
root@homelab:~# lspci | grep -i sata
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)
 
Last edited:
I noticed i've 2 sata controller listed in lspci but I'm passing only the SATA PCIe one, should I pass both instead?
You should passthrough the one that has the drives that you want to pass. Don't passthrough the one that has the Proxmox drives, because that makes Proxmxo crash. Use ls -l /dev/disk/by-path/ to check which drive/disk is connected to which controller.
 
You should passthrough the one that has the drives that you want to pass. Don't passthrough the one that has the Proxmox drives, because that makes Proxmxo crash. Use ls -l /dev/disk/by-path/ to check which drive/disk is connected to which controller.
very useful! But this didn’t help actually, all the disks are connected to the same controller and not shared or separated to other controllers, which means I already passed the right and the only one
 
very useful! But this didn’t help actually, all the disks are connected to the same controller and not shared or separated to other controllers, which means I already passed the right and the only one
And your Proxmox still crashes when you passthrough the one controller? What are your IOMMU groups like (without using pcie_acs_override): cat /proc/cmdline; for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU group %s ' "$n"; lspci -nns "${d##*/}"; done? What does the VM configuration file (qm config YOUR_VMID) look like?
 
And your Proxmox still crashes when you passthrough the one controller? What are your IOMMU groups like (without using pcie_acs_override): cat /proc/cmdline; for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU group %s ' "$n"; lspci -nns "${d##*/}"; done? What does the VM configuration file (qm config YOUR_VMID) look like?
Thank you for your help, i finally found a solution changing the BIOS configuration from SeaBIOS to OMVF UEFI setting up a brand new VM.
I found a similar problem because of the controller ASM1062 in this thread
 
  • Like
Reactions: leesteken