[lxc-users] LXD container how to start network?
Mark Constable
markc at renta.net
Thu Jul 23 06:52:42 UTC 2015
On Thursday, July 23, 2015 01:32:33 PM Fajar A. Nugraha wrote:
> > How do you folks get a working network with current wily containers?
>
> IIRC networking on unprivileged systemd container was broken due to
> some changes in systemd. This is true even on current release (vivid).
Yep, something fundamental with systemd is not working...
~ lxc stop wily # just hangs
~ lxc exec wily -- bash
root at wily:~# halt
Failed to talk to init daemon.
> If this hasn't been fixed, then you can't use unprivileged wily as-is,
> regardless whether dbus is installed or not. There are workarounds for
> this (including creating custom systemd units).
I could have sworn a wily container I tested a month ago worked ootb,
both networking and the ability to shutdown without hanging.
> You should always be able to configure network manually though (e.g.
> "ifconfig"). Another workaround is to use "lxc-attach -s", and ommit
> network namespace, so that the container would use host's networking,
> thus you will be able to install packages using apt-get.
That's a bizarre workaround. It looks like the best "workaround" for now
is to stick to utopic containers and try again in another month.
Thanks Fajar.
More information about the lxc-users
mailing list