***** This may not be needed. If default network isn't started by default for you, start the network manually.
**** This may not be needed. If default network isn't started by default for you, start the network manually.
#+BEGIN_SRC bash
#+BEGIN_SRC bash
sudo virsh net-start default
sudo virsh net-start default
sudo virsh net-autostart default
sudo virsh net-autostart default
#+END_SRC
#+END_SRC
** Setup Guest OS
** Setup Guest OS
***** Launch virt-manager, and start creating guest. On final step, check "Customize before install".
**** Launch virt-manager, and start creating guest. On final step, check "Customize before install".
***** > In the "Overview" section, set Chipset to "Q35" and firmware to "UEFI".
**** > In the "Overview" section, set Chipset to "Q35" and firmware to "UEFI".
***** > In the "CPUs" section, change CPU model to "host-passthrough". You need to type it manually. According to Arch Wiki, this makes sure that the CPU is detected properly. Without it, some applications may complain about your CPU being of an unknown model.
**** > In the "CPUs" section, change CPU model to "host-passthrough". You need to type it manually. According to Arch Wiki, this makes sure that the CPU is detected properly. Without it, some applications may complain about your CPU being of an unknown model.
***** > Set Disk Bus of Storage to "virtio".
**** > Set Disk Bus of Storage to "virtio".
***** > Set NIC Device Model to "virtio".
**** > Set NIC Device Model to "virtio".
***** Now, you can *Begin Installation*. You can continue installing Windows right now or after setting up Passthrough.
**** Now, you can *Begin Installation*. You can continue installing Windows right now or after setting up Passthrough.
** Attach PCI devices
** Attach PCI devices
***** Remove devices such as Spice Channel, XQL video adaper, USB tablet, etc.
**** Remove devices such as Spice Channel, XQL video adaper, USB tablet, etc.
***** Click on "Add Hardware" and add PCI devices for GPU and HDMI Audio. For NVIDIA GPU, GPU ROM should be patched. See next section.
**** Click on "Add Hardware" and add PCI devices for GPU and HDMI Audio. For NVIDIA GPU, GPU ROM should be patched. See next section.
** NVIDIA GPU Patching
** NVIDIA GPU Patching
***** Dump GPU VBIOS
**** Dump GPU VBIOS
Using GPU-Z in Windows is the easiest method of dumping VBIOS. The following command didn't work for me but it's worth trying.
Using GPU-Z in Windows is the easiest method of dumping VBIOS. The following command didn't work for me but it's worth trying.
#+BEGIN_SRC bash
#+BEGIN_SRC bash
su
su
@ -47,10 +47,10 @@ Using GPU-Z in Windows is the easiest method of dumping VBIOS. The following com