[Lxc-users] lxc-instance fail

Serge Hallyn serge.hallyn at ubuntu.com
Mon Oct 7 18:34:25 UTC 2013


Quoting Tamas Papp (tompos at martos.bme.hu):
> 
> On 10/07/2013 07:09 PM, Serge Hallyn wrote:
> > An easy way to reproduce this without zfs is:
> >
> > 	sudo lxc-create -t ubuntu -n r0
> > 	sudo cp /var/lib/lxc/r0/config /tmp
> > 	sudo lxc-start -n r0 -f /tmp/config -d
> > 	sudo lxc-info -n r0
> > 		(it shows up as stopped)
> >
> > sudo lsof shows that
> >
> > 	@/var/lib/lxc_anon/r0/command
> >
> > is the command socket, not the usual
> >
> > 	@/var/lib/lxc/r0/command
> >
> > You can see it using
> >
> > 	sudo lxc-info -P /var/lib/lxc_anon -n r0
> >
> > Perhaps lxc-instance should be following the config link, making
> > sure it is in fact $lxcpath/$lxcname/config, and then just doing
> > lxc-start -n $lxcname?
> >
> > -serge
> 
> Indeed, if I remove '-f $CONFIG' from upstart config it works fine.
> Actually why is it there?

I'm not sure.  I'm also not sure that using lxc_anon was the right
decision.  Perhaps we should use the default lxcpath (if not specified).

-serge




More information about the lxc-users mailing list