<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Thanks, now we have more info.<br><br>First I have deleted all containers and images and relaunched wily from todays builds and noticed that I can run an interactive shell in it just fine.<br>It does not exit. Even though the out file shows lots of file system permission errors, from a user perspective the container works just fine.<br><br>See attached file out.wily.no-prob<br><br>Then I've installed upstart inside the container, published the image and launched wily-u-1. An interactive shell in that container exits.<br><br>See attached file out.wily-u-1.exits . Interestingly, after starting the container and running the shell and waiting until it exits, only the first two line were written. The rest of the file has been written only after I've stopped the container.<br><br>After having done this when I stop wily-u-1 and start the original wily container again, the shell exits also here.<br><br>See attached file out.wily.exits . Also here, only the first two lines are written until I stop the container.<br><br>I am running on btrfs and the subvolumes are generated just fine:<br><br>root@kimera:~# btrfs sub list -t / | grep lxd<br>429    337692    257        var/lib/lxd/images/8eca2e28b14279723857f5757df870c09d1eaccbb841965f072b58eab98ab605.btrfs<br>430    337738    257        var/lib/lxd/containers/wily<br>431    337727    257        var/lib/lxd/images/9df3fc421acd4da88feb1bcb8f302bb20a894e95b69296f5fc4f49b4a156d7a4.btrfs<br>432    337734    257        var/lib/lxd/containers/wily-u-1<br><br>David<br><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><span></span></font><br></div></font></span><br><font color="#990099">-----"lxc-users" <lxc-users-bounces@lists.linuxcontainers.org> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: LXC users mailing-list <lxc-users@lists.linuxcontainers.org><br>From: Serge Hallyn <serge.hallyn@ubuntu.com><br>Sent by: "lxc-users" <lxc-users-bounces@lists.linuxcontainers.org><br>Date: 12/21/2015 17:55<br>Subject: Re: [lxc-users] Serge Hallyn's article "Publishing LXD images"<br><br><div><font face="Courier New,Courier,monospace" size="2">Oh, that's because lxd has started setting lxc.console = 0.  Add<br><br>lxc.console =<br><br>to the raw.lxc section to undo that.<br><br>Quoting david.andel@bli.uzh.ch (david.andel@bli.uzh.ch):<br>> And the same is true for the original wily container from the official image:<br>> <br>> david@kimera:~$ lxc stop wily<br>> david@kimera:~$ lxc profile apply wily default,debug_init<br>> Profile default,debug_init applied to wily<br>> david@kimera:~$ lxc start wily<br>> david@kimera:~$ time lxc exec wily /bin/bash<br>> root@wily:~# <br>> real    0m9.781s<br>> user    0m0.008s<br>> sys     0m0.000s<br>> david@kimera:~$ lxc exec wily -- ls -alh /tmp/<br>> total 0<br>> drwxrwxrwt 1 root root   0 Dec 10 07:51 .<br>> drwxr-xr-x 1 root root 132 Dec  9 03:54 ..<br>> <br>> I have also checked with a fresh trusty launch with the latest daily builds, and still, the problem with the shell quitting by itself does not occur in the trusty container, however, init does not write any debug log either:<br>> <br>> david@kimera:~$ lxc launch images:ubuntu/trusty/amd64 trusty<br>> Creating trusty done.<br>> Starting trusty done.<br>> david@kimera:~$ lxc image list<br>> +----------------+--------------+--------+-----------------------+--------+----------+------------------------------+<br>> |     ALIAS      | FINGERPRINT  | PUBLIC |      DESCRIPTION      |  ARCH  |   SIZE   |         UPLOAD DATE          |<br>> +----------------+--------------+--------+-----------------------+--------+----------+------------------------------+<br>> | wily-w-upstart | ac1181e4561c | no     |                       | x86_64 | 130.31MB | Dec 9, 2015 at 4:36pm (CET)  |<br>> |                | 2ad5a41c86ac | no     | Ubuntu wily (amd64)   | x86_64 | 72.76MB  | Dec 9, 2015 at 4:33pm (CET)  |<br>> |                | 7f26ac9d570e | no     | Ubuntu trusty (amd64) | x86_64 | 63.93MB  | Dec 10, 2015 at 8:55am (CET) |<br>> +----------------+--------------+--------+-----------------------+--------+----------+------------------------------+<br>> david@kimera:~$ lxc stop trusty<br>> david@kimera:~$ lxc profile apply trusty default,debug_init<br>> Profile default,debug_init applied to trusty<br>> david@kimera:~$ lxc start trusty<br>> david@kimera:~$ time lxc exec trusty /bin/bash<br>> root@trusty:~# ls -l /tmp/<br>> total 0<br>> root@trusty:~# exit<br>> <br>> real    2m15.496s<br>> user    0m0.008s<br>> sys     0m0.008s<br>> david@kimera:~$ lxc exec trusty -- ls -alh /tmp/<br>> total 0<br>> drwxrwxrwt 1 root root   0 Dec  9 04:06 .<br>> drwxr-xr-x 1 root root 132 Dec  9 04:05 ..<br>> <br>> <br>> -----"lxc-users" <lxc-users-bounces@lists.linuxcontainers.org> wrote: -----<br>> To: LXC users mailing-list <lxc-users@lists.linuxcontainers.org><br>> From: Serge Hallyn <br>> Sent by: "lxc-users" <br>> Date: 12/10/2015 3:52<br>> Subject: Re: [lxc-users] Serge Hallyn's article "Publishing LXD images"<br>> <br>> Quoting david.andel@bli.uzh.ch (david.andel@bli.uzh.ch):<br>> > Ok, after installing the daily builds, relaunching wily from scratch, installing upstart in it, creating a config profile and applying it to the container:<br>> > <br>> > david@kimera:~$ lxc profile show debug_init<br>> > name: debug_init<br>> > config:<br>> >   raw.lxc: |-<br>> >     lxc.console.logfile = /tmp/out<br>> >     lxc.init_cmd = /sbin/init --debug --verbose<br>> > devices: {}<br>> > <br>> > david@kimera:~$ lxc profile apply wily-u-1 default,debug_init<br>> > Profile default,debug_init applied to wily-u-1<br>> > <br>> > No log is being written after running a bash shell and just waiting until it quits by itself:<br>> <br>> Wait, did you restart the container after applying the new<br>> profile?  Since we're setting debug arguments for init, we<br>> need init to be restart anyway.<br>> <br>> _______________________________________________<br>> lxc-users mailing list<br>> lxc-users@lists.linuxcontainers.org<br>> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br><br>> _______________________________________________<br>> lxc-users mailing list<br>> lxc-users@lists.linuxcontainers.org<br>> <a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br><br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br><a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></font></div></lxc-users-bounces@lists.linuxcontainers.org></serge.hallyn@ubuntu.com></div></div><div></div></font>