TUN/TAP device for lxc guest

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

 



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:

<domain type="lxc">
  <name>centos</name>
  <memory unit="MiB">1024</memory>
  <os>
    <type>exe</type>
    <init>/sbin/init</init>
  </os>
  <devices>
    <console type="pty"/>
    <filesystem type="mount">
      <source dir="/virsh/centos"/>
      <target dir="/"/>
    </filesystem>
    <interface type="bridge">
      <source bridge="br0"/>
      <model type="virtio"/>
    </interface>
  </devices>
</domain>

Thanks
Yao
_______________________________________________
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