转:PVE8.3 以LXC安装openwrt,pppoe拨号问题解决

/etc/pve/lxc/200.conf 文件内容

arch: amd64
cores: 4
hostname: openwrt1
memory: 1024
net0: name=eth0,bridge=vmbr1,hwaddr=BC:24:11:46:A7:28,type=veth
net1: name=eth1,bridge=vmbr2,hwaddr=BC:24:11:79:EF:EC,type=veth
net2: name=eth2,bridge=vmbr2,hwaddr=BC:24:11:AD:9E:F8,type=veth
net3: name=eth3,bridge=vmbr2,hwaddr=BC:24:11:73:70:D2,type=veth
net4: name=eth4,bridge=vmbr3,hwaddr=BC:24:11:16:7E:DF,type=veth
ostype: unmanaged
rootfs: local-lvm:vm-200-disk-0,size=512M
swap: 0

添加下面部分才可拨号

lxc.include: /usr/share/lxc/config/openwrt.common.conf
lxc.apparmor.profile: unconfined
lxc.apparmor.allow_nesting: 1
lxc.cgroup.devices.allow: a
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.mount.entry: /dev/ppp dev/ppp none bind,create=file
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
lxc.mount.entry: tmp tmp tmpfs rw,nodev,relatime,mode=1777 0 0
lxc.mount.auto: cgroup:rw
lxc.mount.auto: proc:rw
lxc.mount.auto: sys:rw
lxc.autodev: 1