[lxc-users] Debian 8 container on Ubuntu 16.04 host
I am trying to install a Debian 8 container on a Ubuntu 16.04 host. The Ubuntu host is running lxc version 2.0.8 from the default ubuntu repo and Kernel 4.4.0-53-generic #74-Ubuntu. 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. Has anyone here tried running a Debian 8 container on a Ubuntu 16.04 host and had success with making systemd work properly? Help would be greatly appreciated William ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Debian 8 container on Ubuntu 16.04 host
On Fri, Dec 16, 2016 at 12:41 PM, Fajar A. Nugraha wrote: > On Fri, Dec 16, 2016 at 9:58 AM, William Cooley wrote: > >> I am trying to install a Debian 8 container on a Ubuntu 16.04 host. >> The Ubuntu host is running lxc version 2.0.8 from the default ubuntu >> repo and Kernel 4.4.0-53-generic #74-Ubuntu. >> >> 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. >> >> Has anyone here tried running a Debian 8 container on a Ubuntu 16.04 >> host and had success with making systemd work properly? >> >> > How are you installing it? Just tested with lxd, it works fine. > > I spoke to soon. 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: https://github.com/lxc/lxd/issues/1911#issuecomment-212366453 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. -- Fajar ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Debian 8 container on Ubuntu 16.04 host
On Fri, Dec 16, 2016 at 9:58 AM, William Cooley wrote: > I am trying to install a Debian 8 container on a Ubuntu 16.04 host. > The Ubuntu host is running lxc version 2.0.8 from the default ubuntu repo > and Kernel 4.4.0-53-generic #74-Ubuntu. > > 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. > > Has anyone here tried running a Debian 8 container on a Ubuntu 16.04 host > and had success with making systemd work properly? > > How are you installing it? Just tested with lxd, it works fine. My GUESS is that you're probably using lxc (not lxd), with debian template, and do some local changes? I suggest you try these one by one, to determine where your problem is: (1) install lxd, and run a debian container lxc launch images:debian/jessie/amd64 jessie lxc exec jessie bash (2) install privileged (i.e. as root) debian lxc container, using download template (3) repeat whatever you tested and didn't work. My guess is (1) and (2) will also work on your system. If you still have problems with (3), then more details would be useful: - is it privileged or unprivileged? - did you try download template - what errors do you find (e.g. does "systemctl" on the container simply hang? does "systemctl status" show anything unusual?) -- Fajar ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Debian 8 container on Ubuntu 16.04 host
On Fri, Dec 16, 2016 at 9:58 AM, William Cooley wrote: > Has anyone here tried running a Debian 8 container on a Ubuntu 16.04 host > and had success with making systemd work properly? There is absolutely no problem with that, these systems are nearly identical. S. ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users
Re: [lxc-users] Debian 8 container on Ubuntu 16.04 host
I am trying to install a Debian 8 container on a Ubuntu 16.04 host. The Ubuntu host is running lxc version 2.0.8 from the default ubuntu repo and Kernel 4.4.0-53-generic #74-Ubuntu. 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. Has anyone here tried running a Debian 8 container on a Ubuntu 16.04 host and had success with making systemd work properly? Help would be greatly appreciated William ___ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users