Skip to content

Instantly share code, notes, and snippets.

@gdesatrigraha
Created May 3, 2014 07:48
Show Gist options
  • Save gdesatrigraha/915d544f0ee841dcb227 to your computer and use it in GitHub Desktop.
Save gdesatrigraha/915d544f0ee841dcb227 to your computer and use it in GitHub Desktop.
enabling tun/tap in LXC Guest
# in LXC Host (Container), set the following config for the guest
lxc.cgroup.devices.allow = c 10:200 rwm
# in the LXC Guest, run the following commands as root
mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 666 /dev/net/tun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment