Skip to content

Instantly share code, notes, and snippets.

View tylinux's full-sized avatar
💭
💎Github Super VIP

tylinux tylinux

💭
💎Github Super VIP
View GitHub Profile
#EXTM3U
#EXTINF:tvg-logo="https://upload.wikimedia.org/wikipedia/commons/2/25/Kodi-logo-Thumbnail-light-transparent.png",CCTV1HD
http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8
#EXTINF:tvg-logo="https://upload.wikimedia.org/wikipedia/commons/2/25/Kodi-logo-Thumbnail-light-transparent.png",CCTV3HD
http://ivi.bupt.edu.cn/hls/cctv3hd.m3u8
#EXTINF:tvg-logo="https://upload.wikimedia.org/wikipedia/commons/2/25/Kodi-logo-Thumbnail-light-transparent.png",CCTV5+HD
http://ivi.bupt.edu.cn/hls/cctv5phd.m3u8
#EXTINF:tvg-logo="https://upload.wikimedia.org/wikipedia/commons/2/25/Kodi-logo-Thumbnail-light-transparent.png",CCTV6HD
http://ivi.bupt.edu.cn/hls/cctv6hd.m3u8
#EXTINF:tvg-logo="https://upload.wikimedia.org/wikipedia/commons/2/25/Kodi-logo-Thumbnail-light-transparent.png",CCTV8HD
@tylinux
tylinux / use_host_gpu_in_pve.md
Created February 4, 2024 14:32
PVE 使用 宿主 GPU
  1. 在 PVE 中安装驱动: ./NVIDIA-Linux-x86_64-535.146.02.run
  2. 在 lxc 配置里允许使用 GPU:
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 195:* rwm
lxc.cgroup2.devices.allow: c 506:* rwm
lxc.cgroup2.devices.allow: c 509:* 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