Lxc-net, no such thing on arch

I am on a laptop with wifi. All I want is a local bridge to connect my containers to (Host/lxc).

Any ideas?

I got the default lxc bridge working…
I basically just compared an Ubuntu install with Arch install and created the missing parts…

I had to add:

lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:xx:xx:xx

to /etc/lxc/default.conf

Also had to create /etc/default/lxc-net

# Leave USE_LXC_BRIDGE as "true" if you want to use lxcbr0 for your
# containers.  Set to "false" if you'll use virbr0 or another existing
# bridge, or mavlan to your host's NIC.

# If you change the LXC_BRIDGE to something other than lxcbr0, then
# you will also need to update your /etc/lxc/default.conf as well as the
# configuration (/var/lib/lxc/<container>/config) for any containers
# already created using the default config to reflect the new bridge
# name.
# If you have the dnsmasq daemon installed, you'll also have to update
# /etc/dnsmasq.d/lxc and restart the system wide dnsmasq daemon.
# Uncomment the next line if you'd like to use a conf-file for the lxcbr0
# dnsmasq.  For instance, you can use 'dhcp-host=mail1,' to have
# container 'mail1' always get ip address

# Uncomment the next line if you want lxcbr0's dnsmasq to resolve the .lxc
# domain.  You can then add "server=/lxc/' (or your actual $LXC_ADDR)
# to your system dnsmasq configuration file (normally /etc/dnsmasq.conf,
# or /etc/NetworkManager/dnsmasq.d/lxc.conf on systems that use NetworkManager).
# Once these changes are made, restart the lxc-net and network-manager services.
# 'container1.lxc' will then resolve on your host.

Installed dnsmasq …

sudo pacman -s dnsmasq

Bonus question, whats the legacy code its complaining about?

I have no idea why this is not documented anywhere, one would think there should be some documentation from arch or at least a reference to the legacy lxc-bridge…

If you’re using LXC 2.1 and getting the legacy key warning, update your default.conf from “lxc.network.*” to “lxc.net.0.*”:

lxc.net.0.type = veth
lxc.net.0.link = lxcbr0
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:16:3e:xx:xx:xx

Thank you, that worked like a charm.