Hi was able to passthrough my Quadro P400 GPU to a VM successfully doing the following in my Proxmox v7.1 host:
Now, I want to use a LXC instead of a VM, and for that I saw this link: https://theorangeone.net/posts/lxc-nvidia-gpu-passthrough/
But I presume that this explanation is for a "clean" proxmox and mine already got the changes I wrote above.
So my question is, what above steps I must cancel?
For instance, should I remove "GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on" line from the grub?
What about, the contents of the /etc/modules file?
I guess that now the "blacklist nvidia" should be removed from the /etc/modprobe.d/blacklist.conf, right?
Any tips are welcome.
Regards
Hélio
Code:
# Add IOMMU Support
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"
update-grub
# Load VFIO modules at boot
nano /etc/modules
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
# Edit several files
echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/iommu_unsafe_interrupts.conf
echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf
# Configure GPU for PCIe Passthrough
lspci -v
0c:00.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P400] (rev a1) (prog-if 00 [VGA controller])
Subsystem: NVIDIA Corporation GP107GL [Quadro P400]
Flags: fast devsel, IRQ 5, IOMMU group 15
Memory at f4000000 (32-bit, non-prefetchable) [disabled] [size=16M]
Memory at d0000000 (64-bit, prefetchable) [disabled] [size=256M]
Memory at e0000000 (64-bit, prefetchable) [disabled] [size=32M]
I/O ports at e000 [disabled] [size=128]
Expansion ROM at f5000000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Legacy Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [250] Latency Tolerance Reporting
Capabilities: [128] Power Budgeting <?>
Capabilities: [420] Advanced Error Reporting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] Secondary PCI Express
Kernel modules: nvidiafb, nouveau
0c:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
Subsystem: NVIDIA Corporation GP107GL High Definition Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 94, IOMMU group 15
Memory at f5080000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
lspci -n -s 0c:00
0c:00.0 0300: 10de:1cb3 (rev a1)
0c:00.1 0403: 10de:0fb9 (rev a1)
echo "options vfio-pci ids=10de:1cb3,10de:0fb9 disable_vga=1"> /etc/modprobe.d/vfio.conf
update-initramfs -u
reboot
Now, I want to use a LXC instead of a VM, and for that I saw this link: https://theorangeone.net/posts/lxc-nvidia-gpu-passthrough/
But I presume that this explanation is for a "clean" proxmox and mine already got the changes I wrote above.
So my question is, what above steps I must cancel?
For instance, should I remove "GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on" line from the grub?
What about, the contents of the /etc/modules file?
I guess that now the "blacklist nvidia" should be removed from the /etc/modprobe.d/blacklist.conf, right?
Any tips are welcome.
Regards
Hélio