From 4c0cbf3d91e76af581e27f55d8250d2e0a248af0 Mon Sep 17 00:00:00 2001 From: Derek McTavish Date: Wed, 1 Apr 2026 08:33:38 +0000 Subject: [PATCH] --- Linux/Guides/GPU Passthrough/VM.md | 139 +++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 Linux/Guides/GPU Passthrough/VM.md diff --git a/Linux/Guides/GPU Passthrough/VM.md b/Linux/Guides/GPU Passthrough/VM.md new file mode 100644 index 0000000..1580340 --- /dev/null +++ b/Linux/Guides/GPU Passthrough/VM.md @@ -0,0 +1,139 @@ +# Windows VM Setup + +Start virt-manager + +```bash +virt-manager +``` + +When creating VM: + +- Local ISO +- Windows 11 ISO +- Firmware: UEFI (OVMF) +- Chipset: Q35 +- TPM: emulated + +Before you start the VM: + +```bash +sudo vim /etc/default/ufw +``` + +Find `DEFAULT_FORWARD_POLICY="DROP"` and change it to `DEFAULT_FORWARD_POLICY="ACCEPT"` + +Now boot the VM. + +## Network Issues + +If the network is being wonky, or if you want to bypass updates... Shift-F10 + +``` +OOBE\BYPASSNRO +``` + +Now add the PCI devices in virt-manager. + +```bash +yay -S looking-glass +``` + +On Windows, download the host from https://looking-glass.io/downloads + +```bash +sudo virsh edit win11 +``` + +Inside `` + +```xml + + + 128 + +``` + +```bash +sudo vim /etc/tmpfiles.d/10-looking-glass.conf +``` + +``` +# Type Path Mode UID GID Age Argument +f /dev/shm/looking-glass 0660 YOURUSER kvm - +``` + +```bash +sudo rm -f /dev/shm/looking-glass +``` +```bash +sudo systemd-tmpfiles --create /etc/tmpfiles.d/10-looking-glass.conf +``` +```bash +ls -l /dev/shm/looking-glass +``` + +Should be owned by my user. + +## Install Virtual Display Driver on Windows. + +## Configure Looking Glass + +```bash +vim ~/.looking-glass-client.ini +``` + +```ini +[win] +fullscreen=yes +size=2880x18900 +dontUpscale=yes +``` + +```bash +env -u WAYLAND_DISPLAY looking-glass-client +``` + +## Audio + +Edit XML. Inside `` + +```xml + +