<div dir="ltr"><div><div>Hi Serge, <br><br></div>I used the released version of vivid; I will setup another VM to test it on vivid-proposed (likely during the weekend) and get back to you asap.<br><br></div><div>Thanks,<br></div><div>Fred<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 11:58 AM, Serge Hallyn <span dir="ltr"><<a href="mailto:serge.hallyn@ubuntu.com" target="_blank">serge.hallyn@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
before I try to reproduce this, can you confirm whether using the<br>
kernel from vivid-proposed fixes it?<br>
<div class="HOEnZb"><div class="h5"><br>
Quoting Frederico Araujo (<a href="mailto:araujof@gmail.com">araujof@gmail.com</a>):<br>
> Hi Serge,<br>
><br>
> Yes, I downloaded a fresh template for ubuntu and its overlay clones start<br>
> okay, and I'm able to attach and run commands on them. However, eth0 has no<br>
> IP assigned when unconfined.<br>
><br>
> I think the problem might be related to changes in systemd (I'm using<br>
> version 219) and overlayfs on vivid. I do see many permission denied<br>
> messages in the boot logs of the container (please see attached an example<br>
> output), but couldn't find much help online.<br>
><br>
> lxc-attach -n test -- ifconfig -a<br>
> eth0      Link encap:Ethernet  HWaddr 00:16:3e:23:59:24<br>
>           inet6 addr: fe80::216:3eff:fe23:5924/64 Scope:Link<br>
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>
>           RX packets:29 errors:0 dropped:0 overruns:0 frame:0<br>
>           TX packets:8 errors:0 dropped:0 overruns:0 carrier:0<br>
>           collisions:0 txqueuelen:1000<br>
>           RX bytes:4285 (4.2 KB)  TX bytes:648 (648.0 B)<br>
><br>
> lo        Link encap:Local Loopback<br>
>           inet addr:127.0.0.1  Mask:255.0.0.0<br>
>           inet6 addr: ::1/128 Scope:Host<br>
>           UP LOOPBACK RUNNING  MTU:65536  Metric:1<br>
>           RX packets:24 errors:0 dropped:0 overruns:0 frame:0<br>
>           TX packets:24 errors:0 dropped:0 overruns:0 carrier:0<br>
>           collisions:0 txqueuelen:0<br>
>           RX bytes:1888 (1.8 KB)  TX bytes:1888 (1.8 KB)<br>
><br>
> lxc-attach -n test -- ps -ef<br>
> UID        PID  PPID  C STIME TTY          TIME CMD<br>
> root         1     0  0 15:45 ?        00:00:00 /sbin/init<br>
> root       352     1  0 15:45 ?        00:00:00<br>
> /lib/systemd/systemd-journald<br>
> root       613     1  0 15:45 ?        00:00:00 /usr/sbin/cron -f<br>
> syslog     673     1  0 15:45 ?        00:00:00 /usr/sbin/rsyslogd -n<br>
> root       710     1  0 15:45 ?        00:00:00 /usr/sbin/sshd -D<br>
> root       760     1  0 15:45 pts/1    00:00:00 /sbin/agetty --noclear<br>
> --keep-baud pts/1 115200 38400 9600 vt220<br>
> root       770     1  0 15:45 lxc/console 00:00:00 /sbin/agetty --noclear<br>
> --keep-baud console 115200 38400 9600 v<br>
> root       780     1  0 15:45 pts/2    00:00:00 /sbin/agetty --noclear<br>
> --keep-baud pts/2 115200 38400 9600 vt220<br>
> root       790     1  0 15:45 pts/0    00:00:00 /sbin/agetty --noclear<br>
> --keep-baud pts/0 115200 38400 9600 vt220<br>
> root       800     1  0 15:45 pts/3    00:00:00 /sbin/agetty --noclear<br>
> --keep-baud pts/3 115200 38400 9600 vt220<br>
> root       913     0  0 15:50 pts/2    00:00:00 ps -ef<br>
><br>
> Thanks!<br>
><br>
> Best,<br>
> Fred<br>
><br>
><br>
> On Mon, Oct 5, 2015 at 11:49 AM, Serge Hallyn <<a href="mailto:serge.hallyn@ubuntu.com">serge.hallyn@ubuntu.com</a>><br>
> wrote:<br>
><br>
> > Quoting Frederico Araujo (<a href="mailto:araujof@gmail.com">araujof@gmail.com</a>):<br>
> > > Hi,<br>
> > ><br>
> > > I've been using LXC for over two years without problems. This week, I<br>
> > > upgraded my Ubuntu from Trusty to Vivid, and I noticed that my overlayfs<br>
> > > containers stopped getting IP assigned. In my machine the error can be<br>
> > > reproduced in this way:<br>
> > ><br>
> > > 1. lxc-create -n base -t ubuntu<br>
> ><br>
> > Do you have this problem if you use the download template?<br>
> ><br>
> > > 2. Edit ubuntu/config to add  lxc.aa_profile = unconfined<br>
> ><br>
> > interesting that it has to be unconfined.<br>
> ><br>
> > if you tail -f /var/log/syslog and then start the container, does<br>
> > the tail -f output show any DENIED messages?<br>
> ><br>
> > > 3. lxc-clone -s -B overlayfs ubuntu tmp<br>
> ><br>
> > Does the 'ubuntu' container start ok?<br>
> ><br>
> > > 4. lxc-start -n tmp -d<br>
> > > 5. lxc-ls -f shows:<br>
> > ><br>
> > > NAME                       STATE    IPV4        IPV6  GROUPS  AUTOSTART<br>
> > > -----------------------------------------------------------------------<br>
> > > tmp                        RUNNING  - *(no IP)*   -     -       NO<br>
> > > ubuntu                     STOPPED  -           -     -       NO<br>
> ><br>
> > Are you able to lxc-attach -n tmp and look around?  what does 'ps -ef'<br>
> > and 'ifconfig -a' show?<br>
> ><br>
> > > Interestingly, I don't run into this issue when running the container in<br>
> > > confined mode (without lxc.aa_profile = unconfined). I checked past<br>
> > threads<br>
> > > in this list and in launchpad, and noticed that some people had problems<br>
> > > with overlayfs when upgrading to vivid, but it seems that these problems<br>
> > > were fixed in LXC 1.1 release. I'm running on LXC 1.1.2.<br>
> > ><br>
> > > Any thoughts?<br>
> > ><br>
> > > Thanks,<br>
> > > Fred<br>
> ><br>
> > > _______________________________________________<br>
> > > lxc-users mailing list<br>
> > > <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> > > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
> ><br>
> > _______________________________________________<br>
> > lxc-users mailing list<br>
> > <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> > <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
<br>
> _______________________________________________<br>
> lxc-users mailing list<br>
> <a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div></div></blockquote></div><br></div>