cat > /etc/apt/sources.list <<EOF deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free EOF
vim /etc/pve/lxc/102.conf # 根据lxc对应ID进行修改 lxc.cgroup2.devices.allow: c 226:0 rwm lxc.cgroup2.devices.allow: c 226:128 rwm lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file lxc.apparmor.profile: unconfined lxc.cap.drop:
vim /etc/modprobe.d/i915.conf options i915 enable_guc=3 vim /lib/systemd/system/rc-local.service [Install] WantedBy=multi-user.target
cat <<EOF >/etc/rc.local #!/bin/sh -e # #rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits # # By default this script does nothing.** chmod 777 /dev/dri/* exit 0 EOF
cat <<EOF >/etc/rc.local #!/bin/sh -e # #rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits # # By default this script does nothing.** mount -t nfs ip:/volumnX/xxx /mnt/xxx # mount -t nfs ip:/volumnX/xxx /mnt/xxx # mount -t nfs ip:/volumnX/xxx /mnt/xxx # mount -t nfs ip:/volumnX/xxx /mnt/xxx # mount -t nfs ip:/volumnX/xxx /mnt/xxx EOF