I am using LXC on my desktop to run my mediasenter amongst other containers.

I made a bridge with NetworkManager: Allowing LXC access from network (mediaserver)

alt text

I successfully migrated my LXCs from my previous Ubuntu desktop and they are running on the same subnet.

BUT:

After creating the bridge my boot time skyrocketed:

18.834s NetworkManager-wait-online.service
[[email protected] ~]$ journalctl --no-pager -b 0 -u NetworkManager
-- Logs begin at Sat 2017-05-20 20:56:41 CEST, end at Sun 2017-05-21 14:25:16 CEST. --
May 21 14:10:16 idea systemd[1]: Starting Network Manager...
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6468] NetworkManager (version 1.8.0-1, Arch Linux) is starting... (for the first time)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6469] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 20-connectivity.conf)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6523] manager[0x11c20c0]: monitoring kernel firmware directory '/usr/lib/firmware'.
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6528] policy: hostname management mode: default
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6529] dns-mgr[0x11c9970]: init: dns=default, rc-manager=resolvconf
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6532] manager[0x11c20c0]: WiFi hardware radio set enabled
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6532] manager[0x11c20c0]: WWAN hardware radio set enabled
May 21 14:10:16 idea systemd[1]: Started Network Manager.
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6634] settings: loaded plugin keyfile: (c) 2007 - 2016 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6641] settings: loaded plugin iBFT: (c) 2014 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list. (/usr/lib/NetworkManager/libnm-settings-plugin-ibft.so)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6749] keyfile: new connection /etc/NetworkManager/system-connections/Bridge (efc9ea96-2277-4277-a450-da397e6a3e86,"Bridge")
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6752] keyfile: new connection /etc/NetworkManager/system-connections/br0 slave enp4s0 (7a05c7b7-0289-44ea-8532-daa74a83c5e4,"br0 slave enp4s0")
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6823] settings: hostname: using hostnamed
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6824] settings: hostname changed from (none) to "idea"
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6825] dhcp-init: default DHCP client 'dhclient' is not available
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6825] dhcp-init: Using DHCP client 'internal'
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6825] manager: WiFi enabled by radio killswitch; enabled by state file
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] manager: WWAN enabled by radio killswitch; enabled by state file
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] manager: Networking is enabled by state file
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] Loaded device plugin: NMBondDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] Loaded device plugin: NMBridgeDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] Loaded device plugin: NMDummyDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] Loaded device plugin: NMEthernetDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] Loaded device plugin: NMInfinibandDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] Loaded device plugin: NMIPTunnelDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] Loaded device plugin: NMMacsecDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6826] Loaded device plugin: NMMacvlanDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6827] Loaded device plugin: NMTunDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6827] Loaded device plugin: NMVethDeviceFactory (internal)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6971] device (lo): link connected
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6976] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/1)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6988] manager: (enp4s0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.6998] device (enp4s0): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8172] device (veth0NE8RN): driver 'veth' does not support carrier detection.
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8176] manager: (veth0NE8RN): new Veth device (/org/freedesktop/NetworkManager/Devices/3)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8178] device (vethU7FTWN): driver 'veth' does not support carrier detection.
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8182] manager: (vethU7FTWN): new Veth device (/org/freedesktop/NetworkManager/Devices/4)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8195] manager: (br0): new Bridge device (/org/freedesktop/NetworkManager/Devices/5)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8283] device (br0): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8286] bluez: use BlueZ version 5
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8288] ModemManager available in the bus
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8308] device (br0): state change: unavailable -> disconnected (reason 'none') [20 30 0]
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8313] policy: auto-activating connection 'Bridge'
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8319] device (br0): Activation: starting connection 'Bridge' (efc9ea96-2277-4277-a450-da397e6a3e86)
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8320] device (br0): state change: disconnected -> prepare (reason 'none') [30 40 0]
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8321] manager: NetworkManager state is now CONNECTING
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8326] device (br0): state change: prepare -> config (reason 'none') [40 50 0]
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8328] device (br0): state change: config -> ip-config (reason 'none') [50 70 0]
May 21 14:10:16 idea NetworkManager[510]: <info>  [1495368616.8328] device (br0): IPv4 config waiting until carrier is on
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1082] device (enp4s0): link connected
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1093] device (enp4s0): state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1108] policy: auto-activating connection 'br0 slave enp4s0'
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1124] device (enp4s0): Activation: starting connection 'br0 slave enp4s0' (7a05c7b7-0289-44ea-8532-daa74a83c5e4)
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1130] device (enp4s0): state change: disconnected -> prepare (reason 'none') [30 40 0]
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1144] device (enp4s0): state change: prepare -> config (reason 'none') [40 50 0]
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1154] device (enp4s0): state change: config -> ip-config (reason 'none') [50 70 0]
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1177] device (br0): attached bridge port enp4s0
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1177] device (enp4s0): Activation: connection 'br0 slave enp4s0' enslaved, continuing activation
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1179] device (br0): IPv4 config waiting until carrier is on
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1189] device (enp4s0): state change: ip-config -> secondaries (reason 'none') [70 90 0]
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1197] device (enp4s0): state change: secondaries -> activated (reason 'none') [90 100 0]
May 21 14:10:19 idea NetworkManager[510]: <info>  [1495368619.1209] device (enp4s0): Activation: successful, device activated.
May 21 14:10:21 idea NetworkManager[510]: <info>  [1495368621.8320] manager: (vethF3SLXP): new Veth device (/org/freedesktop/NetworkManager/Devices/6)
May 21 14:10:21 idea NetworkManager[510]: <info>  [1495368621.8339] manager: (vethBE3770): new Veth device (/org/freedesktop/NetworkManager/Devices/7)
May 21 14:10:21 idea NetworkManager[510]: <info>  [1495368621.8909] device (vethBE3770): link connected
May 21 14:10:21 idea NetworkManager[510]: <info>  [1495368621.8910] device (br0): link connected
May 21 14:10:21 idea NetworkManager[510]: <info>  [1495368621.8912] dhcp4 (br0): activation: beginning transaction (timeout in 45 seconds)
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2737] dhcp4 (br0):   address 10.0.1.50
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2738] dhcp4 (br0):   plen 24
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2738] dhcp4 (br0):   expires in 86400 seconds
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2738] dhcp4 (br0):   nameserver '10.0.1.1'
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2738] dhcp4 (br0):   hostname 'idea'
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2738] dhcp4 (br0):   gateway 10.0.1.1
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2740] dhcp4 (br0): state changed unknown -> bound
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2748] device (br0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2751] device (br0): state change: ip-check -> secondaries (reason 'none') [80 90 0]
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2753] device (br0): state change: secondaries -> activated (reason 'none') [90 100 0]
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2755] manager: NetworkManager state is now CONNECTED_LOCAL
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2757] manager: NetworkManager state is now CONNECTED_SITE
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2758] policy: set 'Bridge' (br0) as default for IPv4 routing and DNS
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.2761] dns-mgr: Writing DNS information to /usr/bin/resolvconf
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.3016] device (br0): Activation: successful, device activated.
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.3021] manager: startup complete
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.3773] manager: (vethQEXBM2): new Veth device (/org/freedesktop/NetworkManager/Devices/8)
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.3785] manager: (vethMWILKC): new Veth device (/org/freedesktop/NetworkManager/Devices/9)
May 21 14:10:41 idea NetworkManager[510]: <info>  [1495368641.4242] device (vethMWILKC): link connected
May 21 14:10:42 idea NetworkManager[510]: <info>  [1495368642.4139] manager: NetworkManager state is now CONNECTED_GLOBAL
May 21 14:15:09 idea NetworkManager[510]: <info>  [1495368909.5118] keyfile: update /etc/NetworkManager/system-connections/Bridge (efc9ea96-2277-4277-a450-da397e6a3e86,"Bridge")
May 21 14:15:09 idea NetworkManager[510]: <info>  [1495368909.5121] audit: op="connection-update" uuid="efc9ea96-2277-4277-a450-da397e6a3e86" name="Bridge" args="connection.timestamp,ipv6.method" pid=7231 uid=1000 result="success"

I’m guessing this is why my LXC’s dont start like they should either.
Turns out you have to manually enable lxc-auto.service lxc.service on arch, :)