HP DL380 G6: Difference between revisions
mNo edit summary |
No edit summary |
||
| Line 25: | Line 25: | ||
!Description | !Description | ||
|- | |- | ||
|F9 | |<code>F9</code> | ||
|BIOS Setup | |BIOS Setup | ||
|- | |- | ||
|F10 | |<code>F10</code> | ||
|System maintenance | |System maintenance | ||
|- | |- | ||
|F11 | |<code>F11</code> | ||
|Default boot override options, (brings up the boot menu) | |Default boot override options, (brings up the boot menu) | ||
|- | |- | ||
|F12 | |<code>F12</code> | ||
|Network boot | |Network boot | ||
|} | |} | ||
== Linux and IOMMU == | |||
I bought a cheap Nvidia Quadro P400 graphics card to see if I can help transcode video streams faster in one of my VMs. Ideally, I'd like to pass the GPU through to a VM. The card has the following PCI address and ID and it's in its own iommu group: | |||
{{Highlight | |||
| code = root@server:~# lspci -vv {{!}} grep -i nvid | |||
10:00.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P400] (rev a1) (prog-if 00 [VGA controller]) | |||
Kernel modules: nvidiafb, nouveau | |||
10:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1) | |||
root@server:~# lspci -n {{!}} grep -i 10:00 | |||
10:00.0 0300: 10de:1cb3 (rev a1) | |||
10:00.1 0403: 10de:0fb9 (rev a1) | |||
root@server:~# find /sys/kernel/iommu_groups/ -type l {{!}} grep '31/dev' | |||
/sys/kernel/iommu_groups/31/devices/0000:10:00.1 | |||
/sys/kernel/iommu_groups/31/devices/0000:10:00.0 | |||
| lang = terminal | |||
}} | |||
=== Issues === | |||
==== Enabling iommu breaks storage during boot ==== | |||
I tried enabling iommu on Proxmox 7.3 running on this machine by booting with the <code>intel_iommu=on</code> kernel argument, but it ended up causing the SD card that I'm booting off of to stop working. The system comes up to the point where systemd is trying to start but can't read the disk anymore. It also threw read errors to the linux console which made it appear as though the SD card was failing (when it wasn't). | |||
This was 'fixed' by appending <code>iommu=pt</code> as well. | |||
==== PCIe passthrough fails due to platform RMRR requirement ==== | |||
When I try to pass through a Nvidia graphics card, I am getting this message when trying to start a VM: <code>DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.</code>. | |||
Full dmesg logs regarding DMAR: | |||
{{Highlight | |||
| code = [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.83-1-pve root=/dev/mapper/pve-root ro intel_iommu=on iommu=pt | |||
[ 0.010527] ACPI: DMAR 0x00000000B761FE80 000172 (v01 HP ProLiant 00000001 \xd2? 0000162E) | |||
[ 0.010585] ACPI: Reserving DMAR table memory at [mem 0xb761fe80-0xb761fff1] | |||
[ 0.273100] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.83-1-pve root=/dev/mapper/pve-root ro intel_iommu=on iommu=pt | |||
[ 0.273168] DMAR: IOMMU enabled | |||
[ 0.683529] DMAR-IR: This system BIOS has enabled interrupt remapping | |||
[ 1.109267] iommu: Default domain type: Passthrough (set via kernel command line) | |||
[ 1.184180] DMAR: Host address width 39 | |||
[ 1.184233] DMAR: DRHD base: 0x000000bfffe000 flags: 0x1 | |||
[ 1.184241] DMAR: dmar0: reg_base_addr bfffe000 ver 1:0 cap c90780106f0462 ecap f0207e | |||
[ 1.184417] DMAR: RMRR base: 0x000000b77fc000 end: 0x000000b77fdfff | |||
[ 1.184474] DMAR: RMRR base: 0x000000b77f5000 end: 0x000000b77fafff | |||
[ 1.184531] DMAR: RMRR base: 0x000000b763e000 end: 0x000000b763ffff | |||
[ 1.184588] DMAR: ATSR flags: 0x0 | |||
[ 1.184665] DMAR: No SATC found | |||
[ 1.184720] DMAR: dmar0: Using Queued invalidation | |||
[ 1.184863] pci 0000:00:00.0: Adding to iommu group 0 | |||
... | |||
[ 1.191883] pci 0000:3f:06.3: Adding to iommu group 44 | |||
[ 1.192057] DMAR: Intel(R) Virtualization Technology for Directed I/O | |||
[ 56.506358] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor. | |||
[ 92.930663] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor. | |||
[ 302.300476] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor. | |||
[ 313.659322] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor. | |||
[ 327.929358] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor. | |||
[ 528.494808] vfio_iommu_type1: `' invalid for parameter `allow_unsafe_interrupts' | |||
[ 594.778634] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor. | |||
[ 679.647684] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor. | |||
[ 773.746381] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor. | |||
| lang = text | |||
}} | |||
One possible solution seems to be to just patch out that restriction in the kernel. Here are some links and resources from searching around: | |||
* Reddit user who originally patched out the restriction: https://old.reddit.com/r/homelab/comments/iw5cew/proxmox_i_created_a_script_to_fix_gpu_pass/ | |||
* A subsequent project that streamlines this patch kernel: https://github.com/Aterfax/relax-intel-rmrr | |||
{{Navbox Hardware}} | {{Navbox Hardware}} | ||
[[Category:Hardware]] | [[Category:Hardware]] | ||
Revision as of 19:27, 10 March 2023
Some notes on the HP DL380 G6 server that I have.
Accessing iLo with old Java
In order to use the virtual console, you need to use their old Java applets. I had to use a Windows XP VM running Firefox 52.9.0 ESR with Java 6u45. Alternatively, you can try the instructions at Dell Remote Access Controller#Accessing old iDRAC which uses an old version of Firefox and Java with the security settings disabled.
Booting
After the server posts, it takes about a minute for any text to appear. The first thing that loads next is the SATA Option ROM for the CD-ROM. At this point, you can press F9 to enter setup.
Broadcom NetXtreme Ethernet Boot Agent
Ctrl-S to enter configuration menu
Integrated Lights-Out
You have 2 seconds to press F8 to configure the iLo.
HP Smart Array Controller
After initializing, you have 3 seconds to press one of:
- F8 - run option rom utility
- ESC - skip configuration and continue
Booting
After all that, you have 2-3 seconds to do one of the following before the boot process continues on.
| Key | Description |
|---|---|
F9
|
BIOS Setup |
F10
|
System maintenance |
F11
|
Default boot override options, (brings up the boot menu) |
F12
|
Network boot |
Linux and IOMMU
I bought a cheap Nvidia Quadro P400 graphics card to see if I can help transcode video streams faster in one of my VMs. Ideally, I'd like to pass the GPU through to a VM. The card has the following PCI address and ID and it's in its own iommu group:
root@server:~# lspci -vv | grep -i nvid
10:00.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P400] (rev a1) (prog-if 00 [VGA controller])
Kernel modules: nvidiafb, nouveau
10:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
root@server:~# lspci -n | grep -i 10:00
10:00.0 0300: 10de:1cb3 (rev a1)
10:00.1 0403: 10de:0fb9 (rev a1)
root@server:~# find /sys/kernel/iommu_groups/ -type l | grep '31/dev'
/sys/kernel/iommu_groups/31/devices/0000:10:00.1
/sys/kernel/iommu_groups/31/devices/0000:10:00.0
Issues
Enabling iommu breaks storage during boot
I tried enabling iommu on Proxmox 7.3 running on this machine by booting with the intel_iommu=on kernel argument, but it ended up causing the SD card that I'm booting off of to stop working. The system comes up to the point where systemd is trying to start but can't read the disk anymore. It also threw read errors to the linux console which made it appear as though the SD card was failing (when it wasn't).
This was 'fixed' by appending iommu=pt as well.
PCIe passthrough fails due to platform RMRR requirement
When I try to pass through a Nvidia graphics card, I am getting this message when trying to start a VM: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor..
Full dmesg logs regarding DMAR:
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.83-1-pve root=/dev/mapper/pve-root ro intel_iommu=on iommu=pt
[ 0.010527] ACPI: DMAR 0x00000000B761FE80 000172 (v01 HP ProLiant 00000001 \xd2? 0000162E)
[ 0.010585] ACPI: Reserving DMAR table memory at [mem 0xb761fe80-0xb761fff1]
[ 0.273100] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.83-1-pve root=/dev/mapper/pve-root ro intel_iommu=on iommu=pt
[ 0.273168] DMAR: IOMMU enabled
[ 0.683529] DMAR-IR: This system BIOS has enabled interrupt remapping
[ 1.109267] iommu: Default domain type: Passthrough (set via kernel command line)
[ 1.184180] DMAR: Host address width 39
[ 1.184233] DMAR: DRHD base: 0x000000bfffe000 flags: 0x1
[ 1.184241] DMAR: dmar0: reg_base_addr bfffe000 ver 1:0 cap c90780106f0462 ecap f0207e
[ 1.184417] DMAR: RMRR base: 0x000000b77fc000 end: 0x000000b77fdfff
[ 1.184474] DMAR: RMRR base: 0x000000b77f5000 end: 0x000000b77fafff
[ 1.184531] DMAR: RMRR base: 0x000000b763e000 end: 0x000000b763ffff
[ 1.184588] DMAR: ATSR flags: 0x0
[ 1.184665] DMAR: No SATC found
[ 1.184720] DMAR: dmar0: Using Queued invalidation
[ 1.184863] pci 0000:00:00.0: Adding to iommu group 0
...
[ 1.191883] pci 0000:3f:06.3: Adding to iommu group 44
[ 1.192057] DMAR: Intel(R) Virtualization Technology for Directed I/O
[ 56.506358] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.
[ 92.930663] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.
[ 302.300476] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.
[ 313.659322] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.
[ 327.929358] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.
[ 528.494808] vfio_iommu_type1: `' invalid for parameter `allow_unsafe_interrupts'
[ 594.778634] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.
[ 679.647684] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.
[ 773.746381] vfio-pci 0000:10:00.1: DMAR: Device is ineligible for IOMMU domain attach due to platform RMRR requirement. Contact your platform vendor.
One possible solution seems to be to just patch out that restriction in the kernel. Here are some links and resources from searching around:
- Reddit user who originally patched out the restriction: https://old.reddit.com/r/homelab/comments/iw5cew/proxmox_i_created_a_script_to_fix_gpu_pass/
- A subsequent project that streamlines this patch kernel: https://github.com/Aterfax/relax-intel-rmrr