Re: [lxc-users] lxc 2.0.4 lxc-ls show nothing and lxc-attach fail

2016-09-20 Thread Fajar A. Nugraha
On Tue, Sep 20, 2016 at 8:06 AM, John Y.  wrote:

> I run a container as:
> lxc-start -n test2 -f /root/test.cfg
>
> I can get info by lxc-info
> #lxc-info -n test2
> Name:   test2
> State:  RUNNING
> PID:15615
> CPU use:1.62 seconds
> BlkIO use:  8.00 KiB
> Memory use: 19.91 MiB
> KMem use:   0 bytes
>
> but lxc-ls show nothing:
> #lxc-ls
> #lxc-ls --active
> #lxc-ls --running
>
> lxc-attach fail:
> lxc-attach -n test2
> Error: container test2 is not defined
>
> Any idea?
>
>

More info would be helpful, like
- what distro/version
- is the lxc package distro-provided, or self-compiled
- do you have previous lxc installation on that server

A common cause for this kind of behavior in other software, is that if you
mix distro and compiled packages, or some old version still remain (e.g. in
/usr/local/bin) from older installation.

-- 
Fajar
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

[lxc-users] lxc 2.0.4 lxc-ls show nothing and lxc-attach fail

2016-09-19 Thread John Y.
I run a container as:
lxc-start -n test2 -f /root/test.cfg

I can get info by lxc-info
#lxc-info -n test2
Name:   test2
State:  RUNNING
PID:15615
CPU use:1.62 seconds
BlkIO use:  8.00 KiB
Memory use: 19.91 MiB
KMem use:   0 bytes

but lxc-ls show nothing:
#lxc-ls
#lxc-ls --active
#lxc-ls --running

lxc-attach fail:
lxc-attach -n test2
Error: container test2 is not defined

Any idea?

Thanks,
John
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users