Skip to content

An Ansible role to automate Passthrough, SR-IOV and GVT-g Virtual Machines on a single Host Laptop or Tower

License

Notifications You must be signed in to change notification settings

fanfan42/ansible-role-pgs

Repository files navigation

ansible-role-pgs

Introduction

PGS stands for Passthrough GVT-g SR-IOV. The goal of this role is to allow the automatic installation of a full Windows 10/11 Pro (other variants are also possible) Virtual Machine (VM) on a Linux host. The VM is customized to allow maximum performance at the price of security "features" and can be built with these virtualization technologies :

  • Passthrough
  • Intel GVT-g
  • Intel SR-IOV (In progress)

The VM built runs with QEMU+KVM and Libvirt is used to manage the VM.

This role can build the VM on 3 Linux distributions (or distros):

  • Arch Linux based : EndeavourOS with lightdm + XFCE (my personal distro)
  • Debian with gdm3 + GNOME
  • Fedora based : Nobara with sddm + KDE

The 3 distros are not randomly chosen, I think they are the best to provide a good desktop experience and they are also designed/easy to configure for the best gaming experience on Linux (for example, Zen/Liquorix kernels are easy to install). The VM built atop of it only adds other options for gaming in case Wine/Proton don't offer good stability for some Windows games or emulators.

For my tests, I used 2 laptops :

  • Lenovo Legion Y540-15IRH, compatible with Passthrough and GVT-g. It has an Intel Core i7-9750H, a Nvidia Geforce GTX 1660Ti, 16GB of RAM, a NVMe drive and a SSD SATA drive.
  • Asus ROG Strix G814 (2023), compatible with Passthrough and SR-IOV. It has an Intel Core i7-13650HX and Nvidia Geforce RTX 4080, 32 GB of RAM, 2 NVMe drives.

I also used old step by step on my old Github repository especially to help me with AMD CPU on Passthrough virtualization mode.

Depending on the virtualization mode you want, please go and follow instructions in documentation directory, example: Passthrough.md

About

An Ansible role to automate Passthrough, SR-IOV and GVT-g Virtual Machines on a single Host Laptop or Tower

Topics

Resources

License

Stars

Watchers

Forks