OpenVZ Forum


Home » General » Support » tap device support
tap device support [message #3237] Thu, 18 May 2006 15:40 Go to next message
dbeery is currently offline  dbeery
Messages: 34
Registered: April 2006
Location: Des Moines, IA
Member

Just curious:

Does anyone know why there is no tap device support for netdev_add?


Thanks,
Derrick
Re: tap device support [message #3261 is a reply to message #3237] Fri, 19 May 2006 05:32 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
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.
Re: tap device support [message #37755 is a reply to message #3261] Fri, 16 October 2009 22:22 Go to previous message
jeffa is currently offline  jeffa
Messages: 8
Registered: September 2006
Junior Member
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?
Previous Topic: How do I access a serial usb device from a VE?
Next Topic: openvz start faild
Goto Forum:
  


Current Time: Fri Aug 02 18:14:33 GMT 2024

Total time taken to generate the page: 0.02939 seconds