Skip to content

Instantly share code, notes, and snippets.

@felipemarques
Last active April 7, 2024 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipemarques/bc0990b60aac19153e09f0c591b696f2 to your computer and use it in GitHub Desktop.
Save felipemarques/bc0990b60aac19153e09f0c591b696f2 to your computer and use it in GitHub Desktop.
GPU Passthrough NVIDIA GTX 770 on Proxmox 7.4
balloon: 0
bios: ovmf
boot: order=scsi0;ide2;net0;ide0
cores: 6
cpu: host,hidden=1
efidisk0: local-lvm:vm-109-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:81:00,pcie=1,x-vga=on,romfile=GK104-patched.rom
ide0: local:iso/virtio-win-0.1.229.iso,media=cdrom,size=522284K
ide2: local:iso/HBCD_PE_x64.iso,media=cdrom,size=3026566K
machine: q35
memory: 16384
meta: creation-qemu=7.2.0,ctime=1xxx611
name: windows10-python
net0: rtl8139=1x:xF:x7:xx:xx:xx,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsi0: local-lvm:vm-xxx-disk-1,iothread=1,size=100G
scsihw: virtio-scsi-single
smbios1: uuid=ca26xxxe3a4-4xxx6-axx3-0054xxxx942de
sockets: 2
vga: memory=256
vmgenid: 71xxxx7-xxxx-xxxx-xxxx-xxxx98167f

DISCLAIMER

This tutorial assumes that you have already created the VM and installed Windows 10 on the VM. I am not responsible for any maneuvers or wrong executions of commands that may cause any problems in your Proxmox server or VMS or anything else. The intention of this document is to help anyone experiencing error code 43 and also document it for my own personal use.

Setup the VM config

see the file: https://gist.github.com/felipemarques/bc0990b60aac19153e09f0c591b696f2#file-999-conf

Update grub

Follow the file here in this gist: /etc/default/grub

update-grub && update-initramfs -u -k all && proxmox-boot-tool refresh

Update /etc/modules

nano /etc/modules

Update/create /etc/modprobe.d/kvm.conf

nano /etc/modprobe.d/kvm.conf

Update your other files as in this docs:

  • dont forget to check every file.

THE MAIN

For me, I needed to patch the rom bios of the GTX 770. Here I will describe with images how I could solve the error Code 43.

image image image image image image image image image image image

Sources:

blacklist radeon
blacklist amdgpu
blacklist nouveau
blacklist nvidiafb
blacklist nvidia-gpu
blacklist nvidia
blacklist nvidia*
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction initcall_blacklist=sysfb_init nofb nomodeset video=efifb:off video=vesa:off vfio-pci.ids=10de:1184,10de:0e0a"
GRUB_CMDLINE_LINUX=""
options vfio_iommu_type1 allow_unsafe_interrupts=1
options kvm ignore_msrs=1 report_ignored_msrs=0
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
softdep nouveau pre: vfio-pci
softdep nvidiafb pre: vfio-pci
options vfio-pci ids=10de:1184,10de:0e0a disable_vga=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment