mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-09 06:32:24 -04:00
feat: sys-gui-gpu: separate template for drivers
Co-authored-by: Ben Grande <ben.grande.b@gmail.com>
This commit is contained in:
parent
bcea67d353
commit
e827bf64d6
6 changed files with 55 additions and 10 deletions
|
@ -26,7 +26,7 @@ sudo qubesctl top.enable qvm.sys-gui-gpu pillar=True
|
||||||
sudo qubesctl top.enable mgmt sys-gui-gpu
|
sudo qubesctl top.enable mgmt sys-gui-gpu
|
||||||
sudo qubesctl --targets=tpl-mgmt state.apply
|
sudo qubesctl --targets=tpl-mgmt state.apply
|
||||||
sudo qubesctl state.apply sys-gui.prefs-mgmt
|
sudo qubesctl state.apply sys-gui.prefs-mgmt
|
||||||
sudo qubesctl --targets=tpl-sys-gui,sys-gui-gpu state.apply
|
sudo qubesctl --targets=tpl-sys-gui-gpu,sys-gui-gpu state.apply
|
||||||
sudo qubesctl top.disable mgmt sys-gui-gpu
|
sudo qubesctl top.disable mgmt sys-gui-gpu
|
||||||
sudo qubesctl state.apply sys-gui-gpu.prefs
|
sudo qubesctl state.apply sys-gui-gpu.prefs
|
||||||
```
|
```
|
||||||
|
@ -40,7 +40,7 @@ sudo qubesctl top.enable qvm.sys-gui-gpu pillar=True
|
||||||
sudo qubesctl state.apply sys-gui-gpu.create
|
sudo qubesctl state.apply sys-gui-gpu.create
|
||||||
sudo qubesctl --skip-dom0 --targets=tpl-mgmt state.apply mgmt.install
|
sudo qubesctl --skip-dom0 --targets=tpl-mgmt state.apply mgmt.install
|
||||||
sudo qubesctl state.apply sys-gui.prefs-mgmt
|
sudo qubesctl state.apply sys-gui.prefs-mgmt
|
||||||
sudo qubesctl --skip-dom0 --targets=tpl-sys-gui state.apply sys-gui-gpu.install
|
sudo qubesctl --skip-dom0 --targets=tpl-sys-gui-gpu state.apply sys-gui-gpu.install
|
||||||
sudo qubesctl --skip-dom0 --targets=sys-gui-gpu state.apply sys-gui-gpu.configure
|
sudo qubesctl --skip-dom0 --targets=sys-gui-gpu state.apply sys-gui-gpu.configure
|
||||||
sudo qubesctl state.apply sys-gui-gpu.prefs
|
sudo qubesctl state.apply sys-gui-gpu.prefs
|
||||||
```
|
```
|
||||||
|
@ -52,6 +52,19 @@ vendor, please use
|
||||||
[qvm-pci](https://www.qubes-os.org/doc/how-to-use-pci-devices/#qvm-pci-usage)
|
[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`.
|
to persistently attach the GPU with the permissive option to `sys-gui-gpu`.
|
||||||
|
|
||||||
|
Identify PCI device identifier:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
qvm-pci ls -v
|
||||||
|
```
|
||||||
|
|
||||||
|
Assign device for persistent attachment (assuming the `backend:devid`
|
||||||
|
combination is `dom0:00_02.1-00_00.0`):
|
||||||
|
|
||||||
|
```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
|
Shutdown all your running qubes as the global property `default_guivm` has
|
||||||
changed to `sys-gui-gpu`.
|
changed to `sys-gui-gpu`.
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,5 @@ SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.co
|
||||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
#}
|
#}
|
||||||
|
|
||||||
include:
|
{% from 'utils/macros/clone-template.sls' import clone_template -%}
|
||||||
- sys-gui.clone
|
{{ clone_template('fedora-minimal', sls_path) }}
|
||||||
|
|
|
@ -12,7 +12,6 @@ SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- {{ slsdotpath }}.clone
|
- {{ slsdotpath }}.clone
|
||||||
- sys-gui.create
|
|
||||||
|
|
||||||
"{{ slsdotpath }}-installed":
|
"{{ slsdotpath }}-installed":
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
|
@ -25,16 +24,26 @@ include:
|
||||||
- dummy-psu-sender
|
- dummy-psu-sender
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% load_yaml as defaults -%}
|
||||||
|
name: tpl-{{ slsdotpath }}
|
||||||
|
force: True
|
||||||
|
require:
|
||||||
|
- sls: {{ slsdotpath }}.clone
|
||||||
|
prefs:
|
||||||
|
- audiovm: ""
|
||||||
|
{%- endload %}
|
||||||
|
{{ load(defaults) }}
|
||||||
|
|
||||||
{% load_yaml as defaults -%}
|
{% load_yaml as defaults -%}
|
||||||
name: {{ slsdotpath }}
|
name: {{ slsdotpath }}
|
||||||
force: True
|
force: True
|
||||||
require:
|
require:
|
||||||
- qvm: tpl-sys-gui
|
- qvm: tpl-{{ slsdotpath }}
|
||||||
present:
|
present:
|
||||||
- template: tpl-sys-gui
|
- template: tpl-{{ slsdotpath }}
|
||||||
- label: black
|
- label: black
|
||||||
prefs:
|
prefs:
|
||||||
- template: tpl-sys-gui
|
- template: tpl-{{ slsdotpath }}
|
||||||
- label: black
|
- label: black
|
||||||
- memory: 600
|
- memory: 600
|
||||||
- maxmem: 4000
|
- maxmem: 4000
|
||||||
|
|
|
@ -8,7 +8,7 @@ base:
|
||||||
'dom0':
|
'dom0':
|
||||||
- match: nodegroup
|
- match: nodegroup
|
||||||
- sys-gui-gpu.create
|
- sys-gui-gpu.create
|
||||||
'tpl-sys-gui':
|
'tpl-sys-gui-gpu':
|
||||||
- sys-gui-gpu.install
|
- sys-gui-gpu.install
|
||||||
'sys-gui-gpu':
|
'sys-gui-gpu':
|
||||||
- sys-gui-gpu.configure
|
- sys-gui-gpu.configure
|
||||||
|
|
|
@ -13,4 +13,27 @@ Upstream pkg.installed install weak_deps/recommends.
|
||||||
include:
|
include:
|
||||||
- sys-gui.install
|
- sys-gui.install
|
||||||
|
|
||||||
|
"{{ slsdotpath }}-installed":
|
||||||
|
pkg.installed:
|
||||||
|
- require:
|
||||||
|
- sls: sys-gui.install
|
||||||
|
- install_recommends: False
|
||||||
|
- skip_suggestions: True
|
||||||
|
- setopt: "install_weak_deps=False"
|
||||||
|
- pkgs:
|
||||||
|
- pciutils
|
||||||
|
- lshw
|
||||||
|
- linux-firmware
|
||||||
|
- amd-gpu-firmware
|
||||||
|
- amd-ucode-firmware
|
||||||
|
- xorg-x11-drv-amdgpu
|
||||||
|
- radeontop
|
||||||
|
- nvidia-gpu-firmware
|
||||||
|
- libva-nvidia-driver
|
||||||
|
- xorg-x11-drv-nouveau
|
||||||
|
- intel-gpu-firmware
|
||||||
|
- libva-intel-hybrid-driver
|
||||||
|
- libva-intel-media-driver
|
||||||
|
- xorg-x11-drv-intel
|
||||||
|
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
|
@ -5,5 +5,5 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
#}
|
#}
|
||||||
|
|
||||||
base:
|
base:
|
||||||
'tpl-sys-gui':
|
'tpl-sys-gui-gpu':
|
||||||
- sys-gui-gpu.install
|
- sys-gui-gpu.install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue