<div dir="ltr">lxc-attach works. But not able to find systemctl?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 11:24 AM, SIVA SUBRAMANIAN.P <span dir="ltr"><<a href="mailto:psiva87@gmail.com" target="_blank">psiva87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Fajar,<div>Migrated to latest 1.1.2 version. But <span style="font-size:14px;font-family:Calibri,sans-serif;color:rgb(0,0,0)">logging into container is struck as below, not getting the prompt.</span></div><div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px"><font face="Calibri,sans-serif" size="2"><span style="font-size:14px"><br></span></font></div><div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px"><font face="Calibri,sans-serif" size="2"><span style="font-size:14px">$lxc-console -n XRE</span></font></div><div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px"><font face="Calibri,sans-serif" size="2"><span style="font-size:14px">Connected to tty 1</span></font></div><div style="color:rgb(0,0,0);font-family:Tahoma;font-size:13.3333330154419px"><font face="Calibri,sans-serif" size="2"><span style="font-size:14px">Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself</span></font></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 27, 2015 at 9:23 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Thu, May 28, 2015 at 5:11 AM, SIVA SUBRAMANIAN.P <<a href="mailto:psiva87@gmail.com" target="_blank">psiva87@gmail.com</a>> wrote:<br>
> Hi,<br>
> I'm compiling lxc in linux using yocto, how can I add systemd support to the<br>
> lxc containers.<br>
<br>
</span>Short version: you need up-to-date systemd on the container and<br>
up-to-date lxc on the host (preferably 1.1.2, with lxcfs installed as<br>
well). Also note that it currently only works fine for privileged<br>
containers (the default when containers are created by root).<br>
<br>
For the host, the easiest way is to use ubuntu 14.04 +<br>
<a href="https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxc-stable" target="_blank">https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxc-stable</a><br>
<br>
For the containers:<br>
- if you use ubuntu vivid containers, it should just work.<br>
- if you use centos 7 containers, you can either compile your own<br>
systemd (latest at 220) or use my packages (built from 219):<br>
<a href="https://lists.linuxcontainers.org/pipermail/lxc-users/2015-March/008658.html" target="_blank">https://lists.linuxcontainers.org/pipermail/lxc-users/2015-March/008658.html</a><br>
- if you use other distro/versions, try compiling systemd 220.<br>
<span><font color="#888888"><br>
--<br>
Fajar<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>