From 186815c36211ed7a1b9e1c25b848c624d3c7c9f0 Mon Sep 17 00:00:00 2001 From: 3np <3np@example.com> Date: Thu, 26 Jun 2025 21:55:19 +0000 Subject: [PATCH] sys-gui-gpu: separate template with gpu drivers - doc(sys-gui-gpu): clarify GPU attachment --- salt/sys-gui-gpu/README.md | 12 ++++++++++++ salt/sys-gui-gpu/clone.sls | 4 ++-- salt/sys-gui-gpu/create.sls | 17 +++++++++++++---- salt/sys-gui-gpu/init.top | 2 +- salt/sys-gui-gpu/install.sls | 23 +++++++++++++++++++++++ salt/sys-gui-gpu/install.top | 2 +- 6 files changed, 52 insertions(+), 8 deletions(-) diff --git a/salt/sys-gui-gpu/README.md b/salt/sys-gui-gpu/README.md index 1ba6bee..e2fad77 100644 --- a/salt/sys-gui-gpu/README.md +++ b/salt/sys-gui-gpu/README.md @@ -52,6 +52,18 @@ vendor, please use [qvm-pci](https://www.qubes-os.org/doc/how-to-use-pci-devices/#qvm-pci-usage) to persistently attach the GPU with the permissive option to `sys-gui-gpu`. +For example, after identifying PCI device identifier: + +```sh +qvm-pci ls -vs --resolve-paths +``` + +To assign device for persistent attachment: + +```sh +qvm-assign -v -o permissive=True -o no-strict-reset=True -r sys-gui-gpu dom0:00_02.1-00_00.0 +``` + Shutdown all your running qubes as the global property `default_guivm` has changed to `sys-gui-gpu`. diff --git a/salt/sys-gui-gpu/clone.sls b/salt/sys-gui-gpu/clone.sls index de43c2e..8805ae5 100644 --- a/salt/sys-gui-gpu/clone.sls +++ b/salt/sys-gui-gpu/clone.sls @@ -4,5 +4,5 @@ SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S.