hzguanqiang@corp.netease.com
2013-Nov-14 02:59 UTC
[libvirt-users] Problem about lxc-enter-namespace interface
Hi experts, When I test lxc-enter-namespace interface, it turned out such an error: hzguanqiang@debian:~$ vir version Compiled against library: libvirt 1.1.4 Using library: libvirt 1.1.4 Using API: LXC 1.1.4 Running hypervisor: LXC 3.9.6 hzguanqiang@debian:~$ vir list Id Name State ---------------------------------------------------- 1544 instance-00000015 running hzguanqiang@debian:~$ vir lxc-enter-namespace 1544 --noseclabel /bin/df -hl error: Cannot get namespaces for 1545: Function not implemented hzguanqiang@debian:~$ ls /proc/self/ns ipc mnt net pid user uts What's the problem? ------------------ Best regards! GuanQiang 2013-11-14
Gao feng
2013-Nov-14 05:24 UTC
Re: [libvirt-users] Problem about lxc-enter-namespace interface
On 11/14/2013 10:59 AM, hzguanqiang@corp.netease.com wrote:> Hi experts, > > When I test lxc-enter-namespace interface, it turned out such an error: > > hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> vir version > Compiled against library: libvirt 1.1.4 > Using library: libvirt 1.1.4 > Using API: LXC 1.1.4 > Running hypervisor: LXC 3.9.6 > > hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> vir list > Id Name State > ---------------------------------------------------- > 1544 instance-00000015 running > > hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> vir lxc-enter-namespace 1544 --noseclabel /bin/df -hl > error: Cannot get namespaces for 1545: Function not implemented > > hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> ls /proc/self/ns > ipc mnt net pid user uts > > What's the problem? >Does your system have system call setns?
Gao feng
2013-Nov-14 05:41 UTC
Re: [libvirt-users] Problem about lxc-enter-namespace interface
On 11/14/2013 01:24 PM, Gao feng wrote:> On 11/14/2013 10:59 AM, hzguanqiang@corp.netease.com wrote: >> Hi experts, >> >> When I test lxc-enter-namespace interface, it turned out such an error: >> >> hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> vir version >> Compiled against library: libvirt 1.1.4 >> Using library: libvirt 1.1.4 >> Using API: LXC 1.1.4 >> Running hypervisor: LXC 3.9.6 >> >> hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> vir list >> Id Name State >> ---------------------------------------------------- >> 1544 instance-00000015 running >> >> hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> vir lxc-enter-namespace 1544 --noseclabel /bin/df -hl >> error: Cannot get namespaces for 1545: Function not implemented >> >> hzguanqiang@debian:~$ <mailto:hzguanqiang@debian:~$> ls /proc/self/ns >> ipc mnt net pid user uts >> >> What's the problem? >> > > Does your system have system call setns?grep setns /proc/kallsyms and grep setns the config.log of libvirt.