2021/12/13

LXC中利用Host的核显

  1. 非特权容器:否
  2. 建立LXC
  3. 修改配置文件
    /etc/pve/lxc/新建立.conf
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file

 

 
 

没有评论:

发表评论

Mastodon Daily 2026-07-25

时间范围: 7/25/2026, 12:00:00 AM - 7/25/2026, 11:59:59 PM (Asia/Shanghai) 共 0 条帖子