<div dir="ltr">Thanks Fajar, I was unaware of the lxcfs. I will install it on my host. <div><br></div><div>I would love to move back to Ubuntu since I had used it with LXC about a year back and I was happy with it, although that time it was just a basic app and a db that I was using it for and it didn't complain about anything. </div><div><br></div><div>I am revisiting LXC again and this time the guest had to be a CentOS with following tasks in my mind : </div><div>- Guest should be able to run a full KVM inside it, I don't intend to run it heavy but need it for some compute experiments.</div><div>- Guest should be able to run openVSwitch, be able to create veth pairs, bridges and do all advanced networking.</div><div><br></div><div>So I started with priviledged Centos 7 containers on Ubu 14.04, I faced some issues and moved to having CentOS 7 host, probably I should revisit using Ubuntu.</div><div><br></div><div>I am currently using Centos 7 host with lxc and lxc-template packages from EPEL</div><div><br></div><div>So in general, running priviledged CentOS guest on Ubuntu for above objectives should be OK and recommended right ? sorry its bit offtopic.<br><br>Going through your how to on Centos systemd on ubuntu. Thanks for that</div><div><br></div><div><br></div><div><br></div><div>- Rahul</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 9, 2016 at 4:10 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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, Feb 9, 2016 at 5:11 PM, Rahul Rege <span dir="ltr"><<a href="mailto:rahul.rege@sungardas.com" target="_blank">rahul.rege@sungardas.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Forgot to update it. <div><br></div><div>I think the problem was with the systemd-journalctl consuming 99.9% CPU leading to the hangs. I retested it with some of the packages it was failing for and as long as I had it killed, everything works ok.</div><div><br></div></div></blockquote><div><br></div></span><div>What is your setup like? What lxc-related packages, which versions, where they're from.</div><div><br></div><div>AFAIK systemd-based containers (including c7) needs lxcfs installed on the host. And the host OS that is most tested to run lxc is ubuntu (debian can work as well, if you're willing to port some ubuntu packages).</div><div><br></div><div>My GUESS is you don't have lxcfs installed on the host.</div><div><br></div><div>As an alternative, if it's the CONTAINER's systemd that's hanging, you can test my updated systemd packages for c7, which works great even in unpriv container: <a href="http://lxc-users.linuxcontainers.narkive.com/O71XtgHR/working-unprivileged-centos-7-container-under-ubuntu" target="_blank">http://lxc-users.linuxcontainers.narkive.com/O71XtgHR/working-unprivileged-centos-7-container-under-ubuntu</a></div><div><br></div><div>Fair warning though: systemd is an essential core port of the OS, and improper modification can lead to unusable system. Use at your own risk.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- </div><div>Fajar</div></font></span></div></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>