Hi there,
I know there are already many threads about HBA passthrough issues on this forum and I went through a lot of them trying out a few suggested solutions. I might have missed one that would fix my problem.
Goal:
Setup:
Running
As shown, the
I tried to pass it to
Then running
Question:
Happy Holidays to all. Cheers,
I know there are already many threads about HBA passthrough issues on this forum and I went through a lot of them trying out a few suggested solutions. I might have missed one that would fix my problem.
Goal:
Being able to pass the HBA card directly to a TrueNAS VM to handle my storage.
Setup:
Dell PowerEdge R730xd with a couple of HDDs in the front and 2 SSDs in the back.
HBA 330 card in IT mode
Proxmox 8.3 installed on one of the SSDs formatted with ext4:
pve-manager/8.3.0/c1689ccb1065a83b (running kernel: 6.8.12-4-pve)
Start is using Grub.
Code:
BootCurrent: 0006
BootOrder: 0006,0001,0002
Boot0000* BRCM MBA Slot 0100 v21.6.3 BBS(128,BRCM MBA Slot 0100 v21.6.3,0x0)................b...........G.........................................................A....................B.R.C.M. .M.B.A. .S.l.o.t. .0.1.0.0. .v.2.1...6...3...
Boot0001* Integrated NIC 1 Port 1 Partition 1 VenHw(3a191845-5f86-4e78-8fce-c4cff59f9daa)
Boot0002* Cruzer Blade PciRoot(0x0)/Pci(0x1a,0x0)/USB(0,0)/USB(4,0)/USB(0,0)
Boot0006* proxmox HD(2,GPT,70a2fe31-e315-465c-a8f1-0a3f2e1ddf93,0x800,0x200000)/File(\EFI\proxmox\shimx64.efi)
IOMMU is enabled in the R730xd bios:
Code:
root@prox:~# dmesg | grep -e DMAR -e IOMMU
[ 0.009741] ACPI: DMAR 0x000000007BAFE000 0000F8 (v01 DELL PE_SC3 00000001 DELL 00000001)
[ 0.009777] ACPI: Reserving DMAR table memory at [mem 0x7bafe000-0x7bafe0f7]
[ 0.934109] DMAR: Host address width 46
[ 0.934110] DMAR: DRHD base: 0x000000fbffc000 flags: 0x0
[ 0.934120] DMAR: dmar0: reg_base_addr fbffc000 ver 1:0 cap 8d2078c106f0466 ecap f020df
[ 0.934123] DMAR: DRHD base: 0x000000c7ffc000 flags: 0x1
[ 0.934128] DMAR: dmar1: reg_base_addr c7ffc000 ver 1:0 cap 8d2078c106f0466 ecap f020df
[ 0.934130] DMAR: ATSR flags: 0x0
[ 0.934132] DMAR: ATSR flags: 0x0
[ 0.934134] DMAR-IR: IOAPIC id 10 under DRHD base 0xfbffc000 IOMMU 0
[ 0.934136] DMAR-IR: IOAPIC id 8 under DRHD base 0xc7ffc000 IOMMU 1
[ 0.934138] DMAR-IR: IOAPIC id 9 under DRHD base 0xc7ffc000 IOMMU 1
[ 0.934139] DMAR-IR: HPET id 0 under DRHD base 0xc7ffc000
[ 0.934140] DMAR-IR: x2apic is disabled because BIOS sets x2apic opt out bit.
[ 0.934141] DMAR-IR: Use 'intremap=no_x2apic_optout' to override the BIOS setting.
[ 0.934945] DMAR-IR: Enabled IRQ remapping in xapic mode
[ 1.473513] DMAR: No RMRR found
[ 1.473515] DMAR: No SATC found
[ 1.473518] DMAR: dmar0: Using Queued invalidation
[ 1.473523] DMAR: dmar1: Using Queued invalidation
[ 1.556478] DMAR: Intel(R) Virtualization Technology for Directed I/O
root@prox:~# dmesg | grep 'remapping'
[ 0.934945] DMAR-IR: Enabled IRQ remapping in xapic mode
[ 0.934946] x2apic: IRQ remapping doesn't support X2APIC mode
Running
lspci -nnk
shows the following output:
Code:
03:00.0 Serial Attached SCSI controller [0107]: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 [1000:0097] (rev 02)
DeviceName: Integrated RAID
Subsystem: Dell HBA330 Mini [1028:1f53]
Kernel driver in use: mpt3sas
Kernel modules: mpt3sas
As shown, the
mpt3sas
driver is loaded and the HBA card is being used by Proxmox, so if I try to pass it to a VM it crashes Proxmox as it cannot being used both by the host and the VM.I tried to pass it to
vfio.conf
in the /etc/modprobe.d/
directory with the two following lines:
Code:
options vfio-pci ids=1000:0097
softdep mpt3sas pre: vfio-pci
Then running
update-initramfs -u
and rebooting. Proxmox did not like it and cannot successfully boot anymore.Question:
How to prevent Proxmox from needing the HBA card but still booting from the SSD?
My fear is that the backplane with the SSDs uses the HBA card.
My fear is that the backplane with the SSDs uses the HBA card.
Happy Holidays to all. Cheers,
Last edited: