[lxc-users] Yum hangs on CentOS 7 [Host] -> CentOS [Guest] privileged container
Rahul Rege
rahul.rege at sungardas.com
Tue Feb 9 17:10:01 UTC 2016
Thanks Fajar, I was unaware of the lxcfs. I will install it on my host.
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.
I am revisiting LXC again and this time the guest had to be a CentOS with
following tasks in my mind :
- 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.
- Guest should be able to run openVSwitch, be able to create veth pairs,
bridges and do all advanced networking.
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.
I am currently using Centos 7 host with lxc and lxc-template packages from
EPEL
So in general, running priviledged CentOS guest on Ubuntu for above
objectives should be OK and recommended right ? sorry its bit offtopic.
Going through your how to on Centos systemd on ubuntu. Thanks for that
- Rahul
On Tue, Feb 9, 2016 at 4:10 PM, Fajar A. Nugraha <list at fajar.net> wrote:
> On Tue, Feb 9, 2016 at 5:11 PM, Rahul Rege <rahul.rege at sungardas.com>
> wrote:
>
>> Forgot to update it.
>>
>> 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.
>>
>>
> What is your setup like? What lxc-related packages, which versions, where
> they're from.
>
> 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).
>
> My GUESS is you don't have lxcfs installed on the host.
>
> 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:
> http://lxc-users.linuxcontainers.narkive.com/O71XtgHR/working-unprivileged-centos-7-container-under-ubuntu
>
> 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.
>
> --
> Fajar
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160209/d57a720d/attachment.html>
More information about the lxc-users
mailing list