Last active
January 22, 2025 20:45
-
-
Save felipemarques/bc0990b60aac19153e09f0c591b696f2 to your computer and use it in GitHub Desktop.
Revisions
-
felipemarques revised this gist
Apr 7, 2024 . 1 changed file with 25 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,33 +1,50 @@ # 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.            ## Sources: - https://pve.proxmox.com/wiki/PCI_Passthrough - https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough -
felipemarques revised this gist
Apr 7, 2024 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,10 @@ # 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 execution 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 -
felipemarques revised this gist
Apr 7, 2024 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ # 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 ``` -
felipemarques revised this gist
Apr 7, 2024 . 9 changed files with 53 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,3 @@ balloon: 0 bios: ovmf boot: order=scsi0;ide2;net0;ide0 @@ -23,14 +20,4 @@ scsihw: virtio-scsi-single smbios1: uuid=ca26xxxe3a4-4xxx6-axx3-0054xxxx942de sockets: 2 vga: memory=256 vmgenid: 71xxxx7-xxxx-xxxx-xxxx-xxxx98167f This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # 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 ``` Sources: - https://pve.proxmox.com/wiki/PCI_Passthrough - https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough - https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/ - https://forum.proxmox.com/threads/gpu-passthrough-not-working.126537/ - https://www.reddit.com/r/Proxmox/comments/lcnn5w/proxmox_pcie_passthrough_in_2_minutes/ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ blacklist radeon blacklist amdgpu blacklist nouveau blacklist nvidiafb blacklist nvidia-gpu blacklist nvidia blacklist nvidia* This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # 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="" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ options vfio_iommu_type1 allow_unsafe_interrupts=1 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ options kvm ignore_msrs=1 report_ignored_msrs=0 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ vfio vfio_iommu_type1 vfio_pci vfio_virqfd This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ softdep nouveau pre: vfio-pci softdep nvidiafb pre: vfio-pci This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ options vfio-pci ids=10de:1184,10de:0e0a disable_vga=1 -
felipemarques created this gist
Apr 7, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ # VM config for Windows 10 ``` 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 ``` Sources: - https://pve.proxmox.com/wiki/PCI_Passthrough - https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough - https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/ - https://forum.proxmox.com/threads/gpu-passthrough-not-working.126537/ - https://www.reddit.com/r/Proxmox/comments/lcnn5w/proxmox_pcie_passthrough_in_2_minutes/ -