lxc 3.0.2 equivalent of lxc.network.type = veth

Solution 1:

Found a tip in /etc/lxc/default.conf:

lxc.network.type 

as become

lxc.net.0.type

lxc.network.ipv4 -> lxc.net.0.ipv4.address

lxc.network.ipv4.gateway -> lxc.net.0.ipv4.gateway

lxc.network.veth.pair -> lxc.net.0.veth.pair

Also

lxc.rootfs and lxc.rootfs.backend -> lxc.rootfs.path

Solution 2:

As of LXC 3.0 legacy config keys are not supported anymore.

For a reference on the deprecated keys and which ones replace them see this page:

https://discuss.linuxcontainers.org/t/lxc-2-1-has-been-released/487

You can use lxc-update-config to update an old config to a new one.

My info comes from here:

https://discuss.linuxcontainers.org/t/lxc-3-0-0-has-been-released/1449