anchor.diff:  
   |===
   
  -=== Update Boot Settings
  +== Update Boot Settings
   
  -Configure IOMMU and VFIO to load first so that framebuffer drivers don’t grab the GPU first while booting. After these changes, we commit them to grub and generate a new initrd image.
  +Configure IOMMU and VFIO to load first so that framebuffer drivers don’t grab the GPU while booting. After these changes, commit them to grub and generate a new boot image.
   
  -Type: `nano /etc/default/grub` and change `GRUB_CMDLINE_LINUX_DEFAULT="quiet"` as follows:
  +Run `nano /etc/default/grub` and change `GRUB_CMDLINE_LINUX_DEFAULT="quiet"` as follows:
   
   `GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on kvm_amd.avic=1 rd.driver.pre=vfio-pci video=efifb:off"`
   
  
positive.code: 
  === Configure the VFIO Modules
  
  Identify the GPU to passthrough:
  
  . Identify all GPUs: `lspci -nn | grep VGA`
  . Capture the GPU slot IDs (first pair of numbers separated by a colon):
  .. My GPU Slot ID for passthrough is: `28:00`
  .. My GPU Slot ID for the host is: `21:00`
  . Capture the vendor IDs for the passthrough GPU Slot ID: `lspci -nns 28:00`
  .. The vendor ID for my GPU VGA device: `10de:1b80`
  .. The vendor ID for my GPU Audio device: `10de:10f0`
  
  //lspci -nns 28:00 | cut -d "]" -f 2 | cut -d "[" -f 2
  
  To enable link:https://pve.proxmox.com/wiki/Pci_passthrough[PCI passthrough^] for our VM, add the following module options (including the comma separated vendor IDs identified in the prior step). This loads the vfio-pci kernel module, which maps memory regions from the PCI bus to the VM, and activates support for IOMMU groups.
  
  . Type: `nano /etc/modprobe.d/kvm.conf` and add the following:
  ```
  options vfio_iommu_type1 allow_unsafe_interrupts=1
  options vfio-pci         ids=10de:1b80,10de:10f0
  options vfio-pci         disable_vga=1
  options kvm-amd          npt=0
  
negative.code: 
  = PVE: Virtualization for Work and Play (Part 3)
  :hp-alt-title: Server Virtualization Management Part3
  :hp-tags: Blog, Open_Source, Technology, ProxMox
  :icons: image
  :linkattrs:
  :published_at: 2017-05-03
  