« RetroArch » : différence entre les versions

De Le Wiki de Lug
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 6 : Ligne 6 :
= Réglage conteneur non privilégié =
= Réglage conteneur non privilégié =
[https://pve.proxmox.com/wiki/Unprivileged_LXC_containers Source] [https://www.reddit.com/r/Proxmox/comments/mttwtf/gpu_passthrough_for_unpriviliged_containers/ source reddit..]
[https://pve.proxmox.com/wiki/Unprivileged_LXC_containers Source] [https://www.reddit.com/r/Proxmox/comments/mttwtf/gpu_passthrough_for_unpriviliged_containers/ source reddit..]
lxc.mount.entry: /dev/dri/card1 dev/dri/card0 none bind,optional,create=file
lxc.cgroup2.devices.allow: c 226:1 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.cgroup2.devices.allow: c 226:128 rwm
#lxc.mount.entry: /dev/tty10 dev/tty8 none bind,optional,create=file
#lxc.cgroup2.devices.allow: c 4:10 rwm
#lxc.mount.entry: /dev/tty11 dev/tty0 none bind,optional,create=file
#lxc.cgroup2.devices.allow: c 4:11 rwm
== GPU NVidia ==
Voir [[GPU_Passthrough#NVidia_LXC|partage d'une carte graphique NVidia avec un conteneur LXC]]
=Installation=
=Installation=
  # apt update && apt upgrade
  # apt update && apt upgrade
== GPU NVidia ==
== Base ==
 
# apt install plasma-desktop lightdm build-essential libglvnd-dev pkg-config konsole xterm lightdm-gtk-greeter
Voir [[GPU_Passthrough#NVidia_LXC|partage d'une carte graphique NVidia avec un conteneur LXC]]
# nvidia-xconfig -a --allow-empty-initial-configuration --use-display-device=None --virtual=1920x1080 --busid 47:00.0 --use-display-device="DFP-0" --connected-monitor="DFP-0"
== Sunshine ==
== Sunshine ==
[https://github.com/loki-47-6F-64/sunshine Source]
[https://github.com/loki-47-6F-64/sunshine Source]

Version du 29 octobre 2021 à 12:43



Source

Réglage conteneur non privilégié

Source source reddit..

lxc.mount.entry: /dev/dri/card1 dev/dri/card0 none bind,optional,create=file
lxc.cgroup2.devices.allow: c 226:1 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.cgroup2.devices.allow: c 226:128 rwm
#lxc.mount.entry: /dev/tty10 dev/tty8 none bind,optional,create=file
#lxc.cgroup2.devices.allow: c 4:10 rwm
#lxc.mount.entry: /dev/tty11 dev/tty0 none bind,optional,create=file
#lxc.cgroup2.devices.allow: c 4:11 rwm

GPU NVidia

Voir partage d'une carte graphique NVidia avec un conteneur LXC

Installation

# apt update && apt upgrade

Base

# apt install plasma-desktop lightdm build-essential libglvnd-dev pkg-config konsole xterm lightdm-gtk-greeter
# nvidia-xconfig -a --allow-empty-initial-configuration --use-display-device=None --virtual=1920x1080 --busid 47:00.0 --use-display-device="DFP-0" --connected-monitor="DFP-0"

Sunshine

Source

# apt install cmake gcc-10 g++-10 libssl-dev libavdevice-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libpulse-dev libopus-dev libevdev-dev
# apt install libxtst-dev libx11-dev libxrandr-dev libxfixes-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev
# apt install libdrm-dev libcap-dev
# apt install libwayland-dev
# apt install nvidia-cuda-dev nvidia-cuda-toolkit
# apt install libgbm1 git
# cd /usr/local/
# git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules
# cd sunshine && mkdir build && cd build
# cmake -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 ..
# make -j ${nproc}

lxc.mount.entry: /dev/dri/card1 dev/dri/card0 none bind,optional,create=file
lxc.cgroup.devices.allow: c 226:1 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.cgroup.devices.allow: c 226:128 rwm
# tty8 will be the "display"
# EDIT: be sure to mount it onto a host tty >= 10 or the host's monitor will be unusable while running
lxc.mount.entry: /dev/tty10 dev/tty8 none bind,optional,create=file
lxc.cgroup.devices.allow: c 4:10 rwm
lxc.mount.entry: /dev/tty11 dev/tty0 none bind,optional,create=file
lxc.cgroup.devices.allow: c 4:11 rwm
lxc.mount.entry: /dev/uinput dev/uinput none bind,optional,create=file
lxc.cgroup.devices.allow: c 10:223 rwm
lxc.mount.entry: /dev/input       dev/input       none bind,create=dir 0 0
lxc.cgroup.devices.allow: c 13:* rwm