User Tools

Site Tools


proxmox:gpu_passthrough:configure_vm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
proxmox:gpu_passthrough:configure_vm [2021/06/07 10:30] – created peterproxmox:gpu_passthrough:configure_vm [2021/06/07 11:09] (current) – [Add PCI Devices (Your GPU) to VM] peter
Line 1: Line 1:
 ====== Proxmox - GPU Passthrough - Configure VM ====== ====== Proxmox - GPU Passthrough - Configure VM ======
 +
 +===== Download VirtIO drivers (Optional, but RECOMMENDED for Windows VMs) =====
 +
 +<WRAP info>
 +**NOTE:**  The VirtIO ISO file contains the VirtIO drivers to mount as a CD-ROM in order to install Windows 10 using VirtIO (SCSI).
 +
 +For the CD-Rom, it is fine if use IDE or SATA.
 +
 +  * Make sure CD-ROM is selected as the primary boot device under the **Options** tab, when you are done creating the VM.
 +  * Ensure that VirtIO (SCSI, not VirtIO Block) is selected for the Hard disk and Network Adapter.
 +</WRAP>
 +
 +----
 +
 +===== Enable OMVF (UEFI) for the VM =====
 +
 +Under the VM **Options** Tab, set the following:
 +
 +  * Boot Order:  **CD-ROM, Disk (scsi0)**.
 +  * SCSI Controller:  **VirtIO SCSI Single**.
 +  * BIOS:  **OMVF (UEFI)**.
 +
 +<WRAP info>
 +**NOTE:**  When you change the BIOS from SeaBIOS (Default) to OMVF (UEFI), Proxmox will say something about adding an EFI disk.
 +
 +In this case navigate to the **Hardware** Tab.
 +
 +  * **Add -> EFI Disk**.
 +
 +</WRAP>
 +
 +----
 +
 +===== Edit the VM Config File =====
 +
 +Edit **/etc/pve/qemu-server/<vmid>.conf**, where <vmid> is the VM ID Number you used during the VM creation (General Tab).
 +
 +Add these lines.
 +
 +<file bash>
 +machine: q35
 +cpu: host,hidden=1,flags=+pcid
 +args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'
 +</file>
 +
 +----
 +
 +===== Add PCI Devices (The GPU) to VM =====
 +
 +Select the VM.
 +
 +Under the Hardware Tab, click on the **Add** button towards the top.
 +
 +Then under the drop-down menu, click **PCI Device**.
 +
 +Look for the GPU in the list, and select it.
 +
 +On the PCI options screen, you should only need to configure it like so:
 +
 +  * All Functions: **Checked**.
 +  * Rom-Bar: **Checked**.
 +  * Primary GPU: **Not Checked**.
 +  * PCI-Express:  **Checked**.  This requires **machine: q35** in the VM config file.
 +
 +----
  
proxmox/gpu_passthrough/configure_vm.1623061802.txt.gz · Last modified: 2021/06/07 10:30 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki