I have reinstalled from ubuntu 16.04 to 18.04. My lxc container config had the following line:

lxc.network.type = veth

It no longer seems to work:

lxc-ls -l DEBUG  -f
lxc-ls: confile.c: set_config_net: 258 lxc.net must not have a value
lxc-ls: parse.c: lxc_file_for_each_line_mmap: 103 Failed to parse config: lxc.net = veth
Failed to load config for u1

Is there any equivalent for specify: lxc.network.type, lxc.network.link, lxc.network.ipv4, lxc.network.ipv4.gateway and lxc.network.veth.pair ?


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


as become


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


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


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:


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

My info comes from here:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.