Re: TUN/TAP device for lxc guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 28, 2014 at 12:06:41PM +0800, 邓尧 wrote:
> I want to run a VPN software inside an lxc guest, but the required TUN/TAP
> device (/dev/net/tun) is missing in the container. Anyone knows how to
> enable this device ? Here is the definition XML:

We only create a few device nodes by default:

  http://libvirt.org/drvlxc.html#devnodes

You can ask for more using this syntax:

  http://libvirt.org/formatdomain.html#elementsHostDevCaps

eg

  <hostdev mode='capabilities' type='misc'>
    <source>
      <char>/dev/net/tun</char>
    </source>
  </hostdev>



Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users





[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux