Category Archives: lxc

problems and solutions pertaining to lxc

OpenVPN refuses to start in LXC container

I was getting the following error when trying to start openvpn from within an LXC container: Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) This fixed it: mkdir /dev/net mknod /dev/net/tun c 10 200 chmod 666 … Continue reading

Posted in Linux, lxc | Comments Off on OpenVPN refuses to start in LXC container

Best LXC blog. Ever.

I didn’t want to lose this link. So I posted it here. http://www.stgraber.org/category/lxc/

Posted in lxc | Comments Off on Best LXC blog. Ever.

How to create multiple network interfaces in an LXC container.

You can specify more than one interface in your lxc configuration file.  Just add the interfaces one after the other and use lxc-create to create your container, like this: lxc.network.mtu = 1500 lxc.network.type = veth lxc.network.name = eth0 lxc.network.link = … Continue reading

Posted in lxc | Tagged , | Comments Off on How to create multiple network interfaces in an LXC container.