OpenVZ Question: Download Questions PDF
Do you know 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:
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
• 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
Download OpenVZ Interview Questions And Answers
PDF
Previous Question | Next Question |
Can you explain what are the different features of OpenVZ? | Do you have any idea what are the required steps to improve the efficiency of services in OpenVZ? |