×

# PVE 虚拟机为CT容器开启tuntap权限

hqy hqy 发表于2026-04-08 16:32:45 浏览7 评论0

抢沙发发表评论

# PVE 虚拟机为CT容器开启tuntap权限

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容器


打赏

本文链接:https://kinber.cn/post/6386.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

 您阅读本篇文章共花了: 

群贤毕至

访客