[Lxc-users] lxc-instance fail

zoolook nbensa+lxcusers at gmail.com
Fri Oct 4 15:05:20 UTC 2013


On 13/10/04 10:29, Stéphane Graber wrote:
> On Fri, Oct 04, 2013 at 04:11:58PM +0200, Tamas Papp wrote:
> > hi,
> > 
> > Starting a container from cli by lxc-start works fine, lxc-info shows the right state.
> > 
> > Using upstart:
> > 
> > start lxc-instance NAME=archiva-test CONFIG=/tank/lxc/archiva-test/config
> > 
> > # lxc-info -n archiva-test
> > state:     STOPPED
> > 
> > Though the container gets started.
> > 
> > As a result I cannot use lxc-stop, lxc-ls or any other tool.
> > But, stop lxc-instance... works fine.
> > 
> > 
> > I was able to reproduce this issue on various machines with the latest daily build.
> > 
> > 
> > Am I alone with this issue?
> > 
> > 
> > 10x
> > tamas
> 
> 
> Try: lxc-info -n archiva-test -P /tank/lxc
> 
> LXC can't guess for you where you've put your containers, so it'll look
> for /var/lib/lxc by default, if they're somewhere else, you need to use
> -P or set the path in /etc/lxc/lxc.conf (lxcpath = /tank/lxc)

I have also seen this problem from time to time in different boxes and different
versions of lxc. It's not easily reproducible and I can't remember if I reported
it (maybe not since I couldn't make a 100% reproducible test case).

I also use a non-standard directory, /srv/lxc in my case. Symlinking and -P made
no difference. 

When the bug manifests the only solution I found was a complete reboot of the
host.

Regards,
Norberto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20131004/d380ce98/attachment.pgp>


More information about the lxc-users mailing list