<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 16, 2016 at 12:41 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">On Fri, Dec 16, 2016 at 9:58 AM, William Cooley <span dir="ltr"><<a href="mailto:mailingl@wtip.net" target="_blank">mailingl@wtip.net</a>></span> wrote:<br></span><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> I am trying to install a Debian 8 container on a Ubuntu 16.04 host.<br>
The Ubuntu host is running lxc version 2.0.8 from the default ubuntu repo and Kernel 4.4.0-53-generic #74-Ubuntu.<br>
<br>
I'm using the default Debian jessie image from the images repo. systemd is not working correctly inside of the container and I am not able to do things like restart a service.<br>
<br>
Has anyone here tried running a Debian 8 container on a Ubuntu 16.04 host and had success with making systemd work properly?<br>
<br></blockquote><div><br></div></span><div>How are you installing it? Just tested with lxd, it works fine.</div><div><br></div></div></div></div></blockquote><div><br></div><div>I spoke to soon.</div><div><br></div><div>While it seems to work fine (including installing and restarting rsyslog) on first launch, a restart broke everything. Short version: you need to upgrade systemd, e.g. using stretch repo: <a href="https://github.com/lxc/lxd/issues/1911#issuecomment-212366453">https://github.com/lxc/lxd/issues/1911#issuecomment-212366453</a></div><div><br></div><div>The exact steps would vary depend on whether you use lxc or lxd, and privileged or unprivileged. If you use privileged, it should be as simple as running chroot and apt.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>