On 11/14/2013 01:24 PM, Gao feng wrote:
On 11/14/2013 10:59 AM, hzguanqiang(a)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.