# 创建CT:
## 1、CT模板换源
```
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
sed -i 's|http://download.proxmox.com|https://mirrors.tuna.tsinghua.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
```
重启服务
```
systemctl restart pvedaemon.service
```
## 2、下载模板、创建******特权********LXC
## 3、为容器加入渲染器硬件,并关闭AppArmor(部分显卡可能需要更新内核才能找到渲染器)
```
nano /etc/pve/lxc/[CT_ID].conf
```
加入硬件参数:(可先用ls -l /dev/dri查询)
```
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.cgroup2.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
lxc.apparmor.profile: unconfined
```
## 4、换Debian源
```
mv /etc/apt/sources.list /etc/apt/sources.list.bk
nano /etc/apt/sources.list
```
黏贴:
```
deb https://mirrors.ustc.edu.cn/debian/ bullseye main non-free contrib
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main non-free contrib
deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main
deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main
deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main non-free contrib
deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-backports main non-free contrib
```
更新
```
apt update
apt upgrade -y
```
## 5、挂载远程smb
安装SMB组件并创建共享目录(nas_share可自定义)
```
apt install cifs-utils -y
mkdir /mnt/nas_share
```
创建密码文件(注意保护文件,此处为明文密码):
```
nano ~/.smbcredentials
```
设置SMB登录密码,自行替换:
```
username=smb_share
password=share_password
```
修改自动挂载文件
```
nano /etc/fstab
```
加入挂载位置,自行替换
```
//$smb_server/share /mnt/nas_share cifs credentials=/root/.smbcredentials,iocharset=utf8 0 0
```
## 6、安装docker
一键安装Docker
```
apt install curl -y
curl -sSL https://get.daocloud.io/docker | sh
```
安装portainer
```
docker volume create portainer_data
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
```
## J4125 CPU使用Jellyfin,可能需要使用以下Docker影响
nyanmisaka/jellyfin:latest
## N5105需要开启GuC,并更新PVE内核
开启GuC
```
nano /etc/default/grub
加入:
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on i915.enable_guc=3 quiet"
update-grub
reboot
```
确认是否开启
```
dmesg | grep -iE "guc|huc"
```
更新5.17内核
```
curl -1sLf 'https://dl.cloudsmith.io/public/pve-edge/kernel/gpg.8EC01CCF309B98E7.key' | apt-key add -
echo "deb https://dl.cloudsmith.io/public/pve-edge/kernel/deb/debian bullseye main" > /etc/apt/sources.list.d/pve-edge-kernel.list
apt update
apt install pve-kernel-5.17-edge -y
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论

格式:docx 资源大小:513.4KB 页数:7




























收起资源包目录
























共 17 条
- 1
资源评论


Java程序员-张凯
- 粉丝: 1w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 数据库技术在学位电子注册工作中的运用.docx
- WCDMA-网络规划原则.doc
- 基于web的单片机课程远程实验系统研究设计.doc
- 单片机课程设计数字温度计.doc
- (源码)基于Web技术的简易博客系统.zip
- 实践创新驱动的计算机专业学位研究生培养模式分析.docx
- 地源热泵地埋管系统勘察研究报告范本(桂林光电通信产业园).doc
- 项目开发计划excel模板下载.xls
- 探讨互联网+下计算机专业的创新型人才培养模式应用.docx
- 科技哲学大数据发展简论.docx
- 关于公路施工项目管理问题探究.docx
- 计算机日常使用和维护操作规程.doc
- 当前我国电子商务存在的问题与对策.doc
- 基于微信小程序的教学评价平台设计与实现.docx
- 基于知识图谱与循环神经网络构建推荐系统的研究
- 互联网+时代线上线下混合式教学模式探究.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
