[libvirt-users] oddity with lxc-enter-namespace

Martin Kletzander mkletzan at redhat.com
Wed Apr 15 08:38:07 UTC 2015


On Tue, Apr 14, 2015 at 06:30:13PM +0200, Thierry Parmentelat wrote:
>Hello
>
>The latest attempts that I made on fedora21 all gave me the same result
>I have tried
>. vanilla rpm from f21 (1.2.9 IIRC)
>. 1.2.14
>. 1.2.13
>. 1.2.12
>these three ones I rebuilt from the source rpm published by libvirt
>

All x86_64 RPMs are available here: ftp://libvirt.org/libvirt/ no need
to rebuild them.

>eventually I reworked my own tools to enter the container via ssh, so this is not an immediate concern to me any longer but it is definitely odd
>

This is better in more ways than just a workaround for this.  For
example if you have some restriction on the processes inside that
container (e.g. using cpuset cgroup) , lxc-enter-namespace will not
take that into account.

>I currently use 1.2.12 because neither 1.2.13 nor 1.2.14 would accept to start any lxc container in my environment
>I can do further tests based on that setup if it can be helpful
>

Not even start?  What's the XML you are using?

>thanks — Thierry
>
>
>> On 14 Apr 2015, at 14:37, Martin Kletzander <mkletzan at redhat.com> wrote:
>>
>> On Thu, Apr 02, 2015 at 10:25:23AM +0200, Thierry Parmentelat wrote:
>>> Hi folks
>>>
>>> I have a question about lxc-enter-namespace
>>> I am migrating lxc containers from a host running libvirt-1.2.5 on f20 to another one running libvirt-1.2.9 on f21
>>>
>>> and now I can't seem to use lxc-enter-namespace for entering in a container any more
>>>
>>> I would do
>>> virsh -c lxc:/// lxc-enter-namespace --noseclabel container /bin/bash
>>>
>>> but when I try the same now I am getting this:
>>>
>>> #  virsh -c lxc:/// lxc-enter-namespace --noseclabel nagios /bin/bash
>>> setlocale: No such file or directory
>>> libvirt:  error : Expected at least one file descriptor
>>> error: internal error: Child process (137198) unexpected exit status 125
>>>
>>> I tried to google that but nothing too relevant showed up..
>>>
>>> are there known regressions to lxc-enter-namespace, or what else do I seem to do wrong here?
>>>
>>
>> I see none of that being possible to happen in the current upstream.
>> Could you try reproducing that with latest version if you have the
>> possibility to do so?  Thank you.
>>
>>> thanks
>>>
>>>
>>> _______________________________________________
>>> libvirt-users mailing list
>>> libvirt-users at redhat.com
>>> https://www.redhat.com/mailman/listinfo/libvirt-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20150415/35f81ddf/attachment.sig>


More information about the libvirt-users mailing list