[Lxc-users] Can not write log, openpty() failed

Serge Hallyn serge.hallyn at canonical.com
Thu Jan 26 15:08:18 UTC 2012


Quoting christian mueller (christian.mueller7 at gmx.de):
> Hi Serge,
> 
> > For now, I recommend you do it the old fashioned way:  either symlink or
> > bind mount /home/chm/lxc to /var/lib/lxc:
> > 
> > 	rm -rf /var/lib/lxc
> > 	mkdir -p /home/chm/lxc
> > 	ln -s /home/chm/lxc /var/lib/lxc
> > 
> > Now just do
> > 
> > 	lxc-create -f lxc.conf -n p1 -t ubuntu
> > 
> > and the container will sit in your homedir.
> > 
> 
> this works - thank you.
> 
> Question: How long does it usually take until you get your prompt after executing lxc-create? Here is takes several minutes - fells like it takes longer than booting on physical hardware.

It should be fast - a few seconds.  If it takes longer, please file a
bug with 'ubuntu-bug lxc'.  Stephane suggested that when he has seen
slow boots it's been due to dhcp, in particular (one time) due to
virbr0 having stp on.

We'll likely have to either find the problem in your network setup,
or else switching to static network setup should work around it regardless.

-serge




More information about the lxc-users mailing list