Created
May 3, 2014 07:48
-
-
Save gdesatrigraha/915d544f0ee841dcb227 to your computer and use it in GitHub Desktop.
enabling tun/tap in LXC Guest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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