5
edits
Changes
→Granting container an access to TUN/TAP
== Granting container an access to TUN/TAP ==
Allow your container to use the tun/tap deviceby running the following commands on the host node:
vzctl set 101 --devices c:10:200:rw --save
vzctl set 101 --capability net_admin:on --save
And create the character device file inside the container(execute the following on the host node):
vzctl exec 101 mkdir -p /dev/net