proxmox lxc gpu passthrough
LXC の非特権コンテナにホストの GPU をパススルーする - kWatanabe の 技術帖
SOLVED - PVE 7.0 LXC Intel Quick Sync passtrough not working anymore Proxmox Support Forum
snaps in lxc on proxmox 7.1 Proxmox Support Forum
The Official Nvidia driver will overwrite some files that are installed with a distro's package manager.
- First, you should install the driver in your distro's way.
- After you can install it from the official drivers!
For LXC Users!!
If you wanna use GPUs or share them whit a host from containers, you must run with the flag --no-kernel-modules
.
pkg-config, i386 binaries
no displays found -> Install any display managers
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
glx-docker-headless-gpuREADME.md at master · ryoughtglx-docker-headless-gpu
NVIDIA GPU の X11 headless setup + X11VNCRDP 接続のメモ - Qiita
NoMachine - Connecting to Linux headless machines with NoMachine – Knowledge Base
glx-docker-headless-gpuREADME.md at master · ryoughtglx-docker-headless-gpu
ConnectPolicy autocreate=1,autoconnect=1,automigrate=1,desktop=1,dialog=1,xsessions=1,udp=1
#
# Enable or disable starting the NoMachine HTTP server. If enabled,
# the server will be started automatically at every reboot.
#
# 1: Automatic. Enable automatic starting of the HTTP server.
#
# 0: Manual. Disable automatic starting of the HTTP server.
# The server can be started manually.
#
#StartHTTPDaemon Automatic
#
# Enable or disable starting the NX service. If enabled, the service
# will be started automatically at every reboot.
#
# 1: Automatic. Enable automatic starting of the NX server.
#
# 0: Manual. Disable automatic starting of the NX server.
# The server can be started manually.
#
StartNXDaemon 1
arch: amd64
cmode: tty
console: 1
cores: 8
features: fuse=1,keyctl=1,mknod=1,nesting=1
hostname: arch-gaming
memory: 11264
mp1: DATA_01:vm-130-disk-0,mp=/mnt/01/Data,backup=1,mountoptions=noatime,size=200G
nameserver: 10.196.1.1
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=E2:28:FB:B5:21:EA,ip=dhcp,ip6=dhcp,type=veth
onboot: 0
ostype: archlinux
rootfs: SSD_MAIN:vm-130-disk-0,size=170G
swap: 2048
tty: 4
unprivileged: 1
lxc.cgroup.devices.allow: c 195:* rwm
lxc.cgroup.devices.allow: c 236:* rwm
lxc.cgroup.devices.allow: c 226:* rwm
lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file
lxc.mount.entry: /dev/nvidiactl dev/nvidiactl none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm dev/nvidia-uvm none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-modeset dev/nvidia-modeset none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=dir
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=dir
lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net dev/net none bind,create=dir