[lxc-users] no network in vivid image? - addendum

david.andel at bli.uzh.ch david.andel at bli.uzh.ch
Tue May 5 07:50:01 UTC 2015


Thanks Fajar for the explanations!
I am going to stick to utopic for the time being :-)

David

-----"lxc-users" <lxc-users-bounces at lists.linuxcontainers.org> wrote: -----
To: LXC users mailing-list <lxc-users at lists.linuxcontainers.org>
From: "Fajar A. Nugraha" 
Sent by: "lxc-users" 
Date: 05/05/2015 9:16
Subject: Re: [lxc-users] no network in vivid image? - addendum

Longer version:

/lib/systemd/system/ifup at .service has
BindsTo=sys-subsystem-net-devices-%i.device, which doesn't work on
unprivileged container. You can do either one of these workaround:

(1) remove the dependency, by creating a mask (inside the container),
and then install the service manually

cp /lib/systemd/system/ifup at .service /etc/systemd/system/
edit /etc/systemd/system/ifup at .service, comment-out Before and BindsTo

add these lines
###
[Install]
WantedBy=network.target
###

systemctl daemon-reload
systemctl enable ifup at eth0
reboot

Note that even with this method you'd still have other problems with
systemd on unprivileged container, like the fact that
systemd-journald.service is dead. These problems doesn't happen on
privileged container.

(2) use upstart as init

apt-get install upstart-sysv

You'd then use upstart to manage system services, the same way you do
on trusty/utopic.

-- 
Fajar

On Tue, May 5, 2015 at 12:53 PM, Fajar A. Nugraha <list at fajar.net> wrote:
> Short version: don't run systemd unpriviledged containers yet
> (including vivid). Priviledged containers should work fine.
>
> On Tue, May 5, 2015 at 3:51 AM,  <david.andel at bli.uzh.ch> wrote:
>> It definitely is a problem of vivid in the container, although not only the
>> image.
>> After installing utopic fresh in an unprivileged container I've got an ipv4
>> address and connectivity, as I wrote below.
>> However, after running a do-release-upgrade to vivid the ipv4 address
>> disappeared.
>>
>> David
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150505/3303fdf0/attachment.html>


More information about the lxc-users mailing list