1.

How To Setup The Tun/tap Network For A Container?

Answer»

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:

    |smod| 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

OpenVZ uses tun/tap network module to configure a container. To setup the container using tun/tap device: 



Discussion

No Comment Found