⟩ Do you know how to setup the tun/tap network for a container?
OpenVZ uses tun/tap network module to configure a container. To setup the container using tun/tap device:
• Check your system and see that tun/tap module is already being installed. Use the command to find out:
lsmod | grep tun
• If not present then use the command to load the tun module:
modprobe tun
• Edit the modules.conf that is inside /etc/ to allow the tun module to run automatically during the start of the system.
• set the permission for the container to use the tun/tap module
• the following command allows the container to be set with the permission for the use of tun/tap networking module:
vzctl set 101 --devnodes net/tun:rw –save