OpenVZ Forum - RDF feed
type: channel
items: tap device support
items: Re: tap device support

tap device support
type: item
description: Just curious: Does anyone know why there is no tap device support for netdev_add? Thanks, Derrick
creator: dbeery
date: 2006-05-18T15:40:32-00:00

Re: tap device support
type: item
description: Quote: Does anyone know why there is no tap device support for netdev_add? This is my point: netdev_add is for adding adding net devices inside VPS. /dev/net/tun isn't a network device. Its purpose is to manage network devices /dev/tunXX, /dev/tapXX: when you open /dev/net/tun /dev/tunXX and /dev/tapXX are created; after closing /dev/net/tun these files dissappear. Thus netdev_add mustn't work with /dev/net/tun. I also suppose, that tapXX and tunXX mustn't be controlled by netdev_add, cause they are created in HN by user space program. So, after terminating of this program - these devices dissappear. If you want to use TAN/TUN devices inside VPS, you can follow the link below: http://kb.swsoft.com/article_130_696_en.html Good luck.
creator: Vasily Tarasov
date: 2006-05-19T05:32:34-00:00

Re: tap device support
type: item
description: This thread is quite old, but I wasn't satisfied with how it ended... When you run "vzctl set nnn --netdev_add tap0" on the host node, it may be that you want to push the TUN/TAP device into a container while retaining the socket on the host node. Then you can have an app on the HN that sends and receives packets directly from devices in the containers. Is this unsupported because the TUN/TAP devices are created and destroyed by a userspace program?
creator: jeffa
date: 2009-10-16T22:22:02-00:00