[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lxc-users
Subject:    Re: [lxc-users] Systemd inside lxc
From:       "Fajar A. Nugraha" <list () fajar ! net>
Date:       2015-05-28 4:23:48
Message-ID: CAG1y0sc2YW6bS9FidnFt1TkV6YZ8s6pkLfH_oFbb0HbA-sRARw () mail ! gmail ! com
[Download RAW message or body]

On Thu, May 28, 2015 at 5:11 AM, SIVA SUBRAMANIAN.P <psiva87@gmail.com> wrote:
> Hi,
> I'm compiling lxc in linux using yocto, how can I add systemd support to the
> lxc containers.

Short version: you need up-to-date systemd on the container and
up-to-date lxc on the host (preferably 1.1.2, with lxcfs installed as
well). Also note that it currently only works fine for privileged
containers (the default when containers are created by root).

For the host, the easiest way is to use ubuntu 14.04 +
https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxc-stable

For the containers:
- if you use ubuntu vivid containers, it should just work.
- if you use centos 7 containers, you can either compile your own
systemd (latest at 220) or use my packages (built from 219):
https://lists.linuxcontainers.org/pipermail/lxc-users/2015-March/008658.html
- if you use other distro/versions, try compiling systemd 220.

-- 
Fajar
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic