[lxc-users] Debian 8 container on Ubuntu 16.04 host

Fajar A. Nugraha list at fajar.net
Fri Dec 16 05:41:48 UTC 2016


On Fri, Dec 16, 2016 at 9:58 AM, William Cooley <mailingl at wtip.net> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161216/388e772d/attachment.html>


More information about the lxc-users mailing list