Рет қаралды 22,657
GPU passthrough on Arch Linux and integration into Hyprland and Qtile with RDP and Looking glass. Step by step guide to passthrough a second graphics card into a virtual machine for full gaming performance, ready for video editing and advanced office applications. No dual boot configuration with Windows 11 is needed anymore.
With RDP and the fascinating application Looking glass you can integrate your VM seamlessly into your workflow. No second monitor or switching to another monitor input needed.
For this tutorial you need two GPUs installed on your system. One for the host and one for the Windows 11 guest.
PLEASE NOTE that this tutorial is for advanced Linux users. Don't forget to backup your system (e.g., with Timeshift or Snapper)
The success depends on your local system setup and may require additional steps.
PLEASE NOTE: It’s possible that you need to connect a monitor cable to your second GPU to make it work. As far as I know there are also fake cables/dongles available for this.
------------------------------
Online/Video resources:
------------------------------
Arch Linux Wiki PCI passthrough via OVMF:
wiki.archlinux.org/title/PCI_...
Rising prism tutorial about single GPU passthrough:
gitlab.com/risingprismtv/sing...
Looking Glass Download:
looking-glass.io/
How to setup RDP connection:
• WINDOWS 11 Virtual Mac...
Windows 11 in a VM:
• Windows 11 in a LINUX ...
Install KVM/QEMU and Virt Manager:
• VIRTUAL Machines on LI...
------------------------------
Configuration
------------------------------
Download my configuration files and scripts here:
gitlab.com/stephan-raabe/arch...
Updated GRUB config with additional kernel parameters:
gitlab.com/stephan-raabe/arch...
sudo vim /etc/default/grub
Regenerate: sudo grub-mkconfig
Test IOMMU Groups:
gitlab.com/stephan-raabe/arch...
Bind second GPU to vfio:
gitlab.com/stephan-raabe/arch...
sudo vim /etc/modprobe.d/vfio.conf
MODULES=(... vfio_pci vfio vfio_iommu_type1 ...)
HOOKS=(... modconf ...)
Regenerate: sudo mkinitcpio -p linux
Test vfio configuration:
gitlab.com/stephan-raabe/arch...
dmesg | grep -i vfio
------------------------------
Virtual Machine setup
------------------------------
My win11 configuration file:
gitlab.com/stephan-raabe/arch...
Dumping the GPU rom file:
gitlab.com/risingprismtv/sing...
------------------------------
Looking Glass
------------------------------
Looking Glass Download:
looking-glass.io/
Learn how you can use Linux for your work.
Linux is a great Operating System (OS) to support me daily at my business. Linux is stable, fast and you can customize it to individual needs. In this channel, I want to share my setup of Arch Linux and show how I use my system as a daily driver.
My name is Stephan Raabe and I'm a Digital Marketing Professional with more than 20 years of experience in B2B Digital Marketing, computer science and web technologies.
This channel provides tutorials about Linux, the distribution Arch, window managers (e.g. Qtile) and desktop environments, and Microsoft 365 (Office 365) plus other cloud based services that I use in Digital Marketing activities.
Homepage:
www.ml4w.com
My Dotfiles for my Linux configuration:
gitlab.com/stephan-raabe/dotf...
Arch Installation Script:
gitlab.com/stephan-raabe/arch...
MyChatGPT Python Script:
gitlab.com/stephan-raabe/mych...
00:00 Overview
00:53 The final result
04:06 Prerequisites
05:12 Installation and configuration
09:43 Prepare Windows 11
11:40 Prepare VM for passthrough
14:15 First start of RDP with GPU passthrough
16:10 Looking glass
#linux #archlinux #tutorial #learning