Skip to content

Instantly share code, notes, and snippets.

@pa-0
Forked from felipemarques/999.conf
Created May 18, 2024 18:51
Show Gist options
  • Select an option

  • Save pa-0/78b9d2a4460e15e8f526e382c3235a30 to your computer and use it in GitHub Desktop.

Select an option

Save pa-0/78b9d2a4460e15e8f526e382c3235a30 to your computer and use it in GitHub Desktop.

Revisions

  1. @felipemarques felipemarques revised this gist Apr 7, 2024. 1 changed file with 25 additions and 8 deletions.
    33 changes: 25 additions & 8 deletions README.md
    Original 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 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.

    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
    ## 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
    ## Update /etc/modules

    ```
    nano /etc/modules
    ```

    # Update/create /etc/modprobe.d/kvm.conf
    ## 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](https://gist.github.com/assets/2640656/7113212a-a55b-43d1-a558-d249aa4a0401)
    ![image](https://gist.github.com/assets/2640656/a9d0cbd3-62d0-430c-80c7-667da0f3705f)
    ![image](https://gist.github.com/assets/2640656/e876b122-174d-4b6d-a828-f3129c2fa021)
    ![image](https://gist.github.com/assets/2640656/b7ed7a17-e2f7-4f9c-8f23-b4e669a321ad)
    ![image](https://gist.github.com/assets/2640656/3e0fc824-61ab-4201-b5fd-246053cb8019)
    ![image](https://gist.github.com/assets/2640656/09d7c09f-f50b-4acc-82e4-0a6790bf38ab)
    ![image](https://gist.github.com/assets/2640656/c596086b-7dab-4b62-8d65-5eb4d69494fa)
    ![image](https://gist.github.com/assets/2640656/57577975-1aed-44c0-a27c-71d52503d5c4)
    ![image](https://gist.github.com/assets/2640656/7b93582a-e9b9-462b-b5a4-1bc5bdde8110)
    ![image](https://gist.github.com/assets/2640656/c9f01254-dfae-4d28-9be7-980d32673259)
    ![image](https://gist.github.com/assets/2640656/3a7cf197-b159-45bf-97c7-ee26140da247)


    Sources:
    ## Sources:

    - https://pve.proxmox.com/wiki/PCI_Passthrough
    - https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough
  2. @felipemarques felipemarques revised this gist Apr 7, 2024. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,10 @@
    # Setup the VM config
    # 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

  3. @felipemarques felipemarques revised this gist Apr 7, 2024. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions README.md
    Original 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
    ```
  4. @felipemarques felipemarques revised this gist Apr 7, 2024. 9 changed files with 53 additions and 14 deletions.
    15 changes: 1 addition & 14 deletions gistfile1.txt → 999.conf
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,3 @@
    # VM config for Windows 10

    ```
    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
    ```

    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/
    -
    vmgenid: 71xxxx7-xxxx-xxxx-xxxx-xxxx98167f
    26 changes: 26 additions & 0 deletions README.md
    Original 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/
    7 changes: 7 additions & 0 deletions blacklist.conf
    Original 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*
    10 changes: 10 additions & 0 deletions grub
    Original 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=""
    1 change: 1 addition & 0 deletions iommu_unsafe_interrupts.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    options vfio_iommu_type1 allow_unsafe_interrupts=1
    1 change: 1 addition & 0 deletions kvm.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    options kvm ignore_msrs=1 report_ignored_msrs=0
    4 changes: 4 additions & 0 deletions modules
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    vfio
    vfio_iommu_type1
    vfio_pci
    vfio_virqfd
    2 changes: 2 additions & 0 deletions softdep.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    softdep nouveau pre: vfio-pci
    softdep nvidiafb pre: vfio-pci
    1 change: 1 addition & 0 deletions vfio.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    options vfio-pci ids=10de:1184,10de:0e0a disable_vga=1
  5. @felipemarques felipemarques created this gist Apr 7, 2024.
    36 changes: 36 additions & 0 deletions gistfile1.txt
    Original 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/
    -