Hi everyone.
So, I've have been having some issues with GPU passthrough on my Proxmox server. I did had it working beforehand and was working fine for a couple of weeks. Then, it started to not work for these past couple of hours. I don't what the cause exactly is and how to fix it. For whatever reason when I add in my GPU into one of the VM's, I started noticing that my ram usage spikes up and hangs there.
However, when I remove the GPU, this issue goes away. I've used this guide in order to get GPU Passthrough to work properly for me.
https://www.youtube.com/watch?v=S6jQx4AJlFw&t=332s
Here is what I have for /etc/default/grub. Afterwards I ran update-grub.
/etc/modules
/etc/modprobe.d/blacklist.conf.
blacklist.conf
/etc/modprobe.d/vfio.conf
Then I did update-initramfs -u
/etc/pve/qemu-server/100.conf
I tried going over the tutorial once again to make sure I had everything setup properly. However, I did notice when using this line of code
No output text appeared after I used that code. I know this means something is not working correctly, but I don't know what exactly. I checked if my bios settings was setup properly for virtualization since I had the IOMMU and SV-T enabled. I don't know if there is something I also have to setup within the bios. I have an ASROCK b450M Pro 4 if anyone knows how to properly setup virtualization on that motherboard.
So, I've have been having some issues with GPU passthrough on my Proxmox server. I did had it working beforehand and was working fine for a couple of weeks. Then, it started to not work for these past couple of hours. I don't what the cause exactly is and how to fix it. For whatever reason when I add in my GPU into one of the VM's, I started noticing that my ram usage spikes up and hangs there.
However, when I remove the GPU, this issue goes away. I've used this guide in order to get GPU Passthrough to work properly for me.
https://www.youtube.com/watch?v=S6jQx4AJlFw&t=332s
Here is what I have for /etc/default/grub. Afterwards I ran update-grub.
Code:
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt"
GRUB_CMDLINE_LINUX=""
/etc/modules
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
/etc/modprobe.d/blacklist.conf.
blacklist.conf
Code:
blacklist radeon
blacklist nouveau
blacklist nvidia
blacklist nvidiafb
/etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=10de:1b80,10de:10f0 disable_vga=1
Then I did update-initramfs -u
/etc/pve/qemu-server/100.conf
Code:
agent: 1
bios: ovmf
boot: order=virtio0;ide2;net0;ide0
cores: 8
cpu: host,hidden=1,flags=+pcid
efidisk0: local-lvm:vm-100-disk-3,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:07:00,pcie=1
ide0: none,media=cdrom
ide2: none,media=cdrom
machine: pc-q35-6.2
memory: 16384
meta: creation-qemu=6.2.0,ctime=1664684829
name: Win11
net0: virtio=F6:9B:5A:3F:97:27,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: win11
scsihw: virtio-scsi-pci
smbios1: uuid=336adb50-43a5-4831-8585-32f0bc552a61
sockets: 1
tpmstate0: local-lvm:vm-100-disk-4,size=4M,version=v2.0
vga: none
virtio0: local-lvm:vm-100-disk-5,cache=writethrough,size=256G
vmgenid: f92b96a8-81e7-42cb-80b2-9aa00a7e3f22
I tried going over the tutorial once again to make sure I had everything setup properly. However, I did notice when using this line of code
Code:
dmesg | grep -e DMAR -e IOMMU