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(2024-05-01)

Nothing