Re: [libvirt] How does virsh lxc-enter-namespace work? Does it?

2013-06-07 Thread Daniel P. Berrange
On Thu, Jun 06, 2013 at 09:13:27AM +0100, Daniel P. Berrange wrote: On Thu, Jun 06, 2013 at 10:07:26AM +0200, Richard Weinberger wrote: I'm sure in my case setns() fails because the calling thread did not open() the ns files itself. Do you have user namespaces enabled by chance ?

Re: [libvirt] How does virsh lxc-enter-namespace work? Does it?

2013-06-07 Thread Richard Weinberger
Am 07.06.2013 17:34, schrieb Daniel P. Berrange: On Thu, Jun 06, 2013 at 09:13:27AM +0100, Daniel P. Berrange wrote: On Thu, Jun 06, 2013 at 10:07:26AM +0200, Richard Weinberger wrote: I'm sure in my case setns() fails because the calling thread did not open() the ns files itself. Do you

[libvirt] How does virsh lxc-enter-namespace work? Does it?

2013-06-06 Thread Richard Weinberger
Hi! I'm facing the issue that virsh lxc-enter-namespace ... does not work for me. setns() always fails with EINVAL. Reading the code confused me a bit, maybe you can help me. :D virsh itself calls: cmdLxcEnterNamespace() virDomainLxcOpenNamespace() conn-driver-domainLxcOpenNamespace() Here

Re: [libvirt] How does virsh lxc-enter-namespace work? Does it?

2013-06-06 Thread Daniel P. Berrange
On Thu, Jun 06, 2013 at 08:57:21AM +0200, Richard Weinberger wrote: Hi! I'm facing the issue that virsh lxc-enter-namespace ... does not work for me. setns() always fails with EINVAL. Reading the code confused me a bit, maybe you can help me. :D virsh itself calls:

Re: [libvirt] How does virsh lxc-enter-namespace work? Does it?

2013-06-06 Thread Richard Weinberger
Am 06.06.2013 09:56, schrieb Daniel P. Berrange: On Thu, Jun 06, 2013 at 08:57:21AM +0200, Richard Weinberger wrote: Hi! I'm facing the issue that virsh lxc-enter-namespace ... does not work for me. setns() always fails with EINVAL. Reading the code confused me a bit, maybe you can help me.

Re: [libvirt] How does virsh lxc-enter-namespace work? Does it?

2013-06-06 Thread Daniel P. Berrange
On Thu, Jun 06, 2013 at 10:07:26AM +0200, Richard Weinberger wrote: Am 06.06.2013 09:56, schrieb Daniel P. Berrange: On Thu, Jun 06, 2013 at 08:57:21AM +0200, Richard Weinberger wrote: Hi! I'm facing the issue that virsh lxc-enter-namespace ... does not work for me. setns() always fails

Re: [libvirt] How does virsh lxc-enter-namespace work? Does it?

2013-06-06 Thread Richard Weinberger
Am 06.06.2013 10:13, schrieb Daniel P. Berrange: On Thu, Jun 06, 2013 at 10:07:26AM +0200, Richard Weinberger wrote: Am 06.06.2013 09:56, schrieb Daniel P. Berrange: On Thu, Jun 06, 2013 at 08:57:21AM +0200, Richard Weinberger wrote: Hi! I'm facing the issue that virsh lxc-enter-namespace

Re: [libvirt] How does virsh lxc-enter-namespace work? Does it?

2013-06-06 Thread Richard Weinberger
Am 06.06.2013 10:13, schrieb Daniel P. Berrange: On Thu, Jun 06, 2013 at 10:07:26AM +0200, Richard Weinberger wrote: Am 06.06.2013 09:56, schrieb Daniel P. Berrange: On Thu, Jun 06, 2013 at 08:57:21AM +0200, Richard Weinberger wrote: Hi! I'm facing the issue that virsh lxc-enter-namespace