Bug 1031122 - make /dev/net/tun available in a container
make /dev/net/tun available in a container
Product: Fedora
Classification: Fedora
Component: lxc (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Thomas Moschny
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-11-15 11:33 EST by dann
Modified: 2014-06-05 15:06 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-06-05 15:06:56 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description dann 2013-11-15 11:33:38 EST
Description of problem:

The tun device is not available inside an lxc container created with the Fedora template.

It is very useful to be able to run a VPN inside a container, and it's not possible because the tun device is not available (and cannot be created using mknod).  Some kinds of testing or some builds require a VPN.

Version-Release number of selected component (if applicable):

How reproducible:
 lxc-create -n MYCONTAINER -t fedora -B none 

Steps to Reproduce:
1. lxc-create -n MYCONTAINER -t fedora -B none
2. run libvirt-insall for the container created above
3. see that /dev/net/tun is not available in the container and cannot be created with mkdod

If it's not acceptable to create the "tun" device by default, maybe provide an alternate template fedora-with-tun that can creates it by default, or 
maybe clearly document how to do it..

Comment 1 Michael H. Warfield 2014-06-04 17:05:57 EDT
This should be addressed in documentation.  There are many examples of specific container requirements (such as requiring loop devices) that are not appropriate as a default in a generic container.
Comment 2 Michael H. Warfield 2014-06-05 12:57:26 EDT
Additional Information...

This issue has been addressed on the lxc-users mailing list and a number of forums...



It's not going to be something that will be added to the default configuration for all containers as it's more appropriately a container specific custom configuration option.  Really not a bug.  Please direct further queries to the lxc-users mailing list.

Note You need to log in before you can comment on or make changes to this bug.