pve虚拟机安装CT容器,容器内无法使用tuntap设备,需要开启权限
C#
//编辑配置文件nano /etc/pve/lxc/<CTID>.conf//末尾加入,开启权限和映射tun设备lxc.cgroup.devices.allow = c 10:200 rwmlxc.mount.entry = /dev/net/tun dev/net/tun none bind,create=file//保存,重启CT容器

支付宝微信扫一扫,打赏作者吧~
