[systemd-devel] network interface down in container

Dan Williams dcbw at redhat.com
Thu Apr 30 06:50:44 PDT 2015


On Thu, 2015-04-30 at 11:44 +0200, Lennart Poettering wrote:
> On Thu, 30.04.15 10:01, arnaud gaboury (arnaud.gaboury at gmail.com) wrote:
> 
> > I used to boot the container this way :
> > # systemd-nspawn --network-bridge=br0 -bD /path_to/my_container
> > 
> > Is this correct?
> 
> Looks fine.
> 
> > 
> > 
> >           *****************
> > Now on the container side:
> > 
> > Nothing configured. NetworkManager enabled, systemd-networkd enabled
> > and started.
> 
> NM doesn't really support being run in a container. 

FYI not really true, NM git master (upcoming 1.2) does support being run
without udev in a container...

Dan

> > -------------------------------
> > $ ip a
> > 2: host0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
> > default qlen 1000
> >     link/ether 0e:7f:c3:fb:25:b1 brd ff:ff:ff:ff:ff:ff
> > -------------------------------------
> > host0 is down
> 
> Please check what "networkctl status -a" in the container shows. It
> should tell you whether networkd is configured to do anything.
> 
> Also, what does "journalctl -u systemd-networkd -n 200" show in the
> container?
> 
> Lennart
> 




More information about the systemd-devel mailing list