Hello, i've added these settings to CT config:
lxc.cgroup.devices.allow: c 10:200 rwm
lxc.hook.autodev: sh -c "modprobe tun; cd ${LXC_ROOTFS_MOUNT}/dev; mkdir net; mknod net/tun c 10 200; chmod 0666 net/tun"
now when i do pct shutdown <ctid>; pct start <ctid> then tun driver (and openvpn) starts working immediately. But i have some CTs that cannot be restarted because of availability reasons. i understand that i can do pct enter and execute all the commands from lxc.hook.autodev line manualy. But how do i make pve reload lxc.cgroup.devices.allow without container restart? is there something like pct reload <vmid> which would cause these settings to apply without restarting container?
lxc.cgroup.devices.allow: c 10:200 rwm
lxc.hook.autodev: sh -c "modprobe tun; cd ${LXC_ROOTFS_MOUNT}/dev; mkdir net; mknod net/tun c 10 200; chmod 0666 net/tun"
now when i do pct shutdown <ctid>; pct start <ctid> then tun driver (and openvpn) starts working immediately. But i have some CTs that cannot be restarted because of availability reasons. i understand that i can do pct enter and execute all the commands from lxc.hook.autodev line manualy. But how do i make pve reload lxc.cgroup.devices.allow without container restart? is there something like pct reload <vmid> which would cause these settings to apply without restarting container?
Last edited: