PVE是使用Debian系统作为底层。我们创建Debian LXC容器。
下载Debian11DE ct模板
创建CT,一定把无特权容器前面的勾去掉。我们需要一个特权的容器。勾选嵌套。完成后不要启动!
。
开启ct102容器前,进入pve shell 设置ct102容器设置
nano /etc/pve/lxc/102.conf
添加代码
lxc.apparmor.profile: unconfined
lxc.cap.drop:
ctrl+x保存配置,y确认,回车。