[lxc-devel] lxc-start from git hangs in init

Serge Hallyn serge.hallyn at ubuntu.com
Mon Apr 29 13:29:03 UTC 2013


Quoting Kevin Wilson (wkevils at gmail.com):
> Hello,
> This is the output (o1); I ran on
> Ubuntu 12.10 (GNU/Linux 3.5.0-17-generic x86_64)
> 
> lxc-start -n CN -l info -o o1  -f /etc/lxc/lxc.conf /sbin/init
> 
> 
> And /etc/lxc/lxc.conf is in fact commented out:
>  more  /etc/lxc/lxc.conf
> #lxc.network.type=veth
> #lxc.network.link=lxcbr0
> #lxc.network.flags=up

If you actually do lxc-start like this, you'll be trying to run
/sbin/init (presumably upstart) without being in a network
namespaces.  Since upstart talks over an abstract unix socket,
your container will be talking to the host's upstart.  So when
poweroff in the container you shut down the host.

In tried exactly your commands in precise (not oneiric), and
mine failed because it couldn't mount /proc, which was because
i had no rootfs.

What exactly are you trying to do?  What's your goal?

-serge




More information about the lxc-devel mailing list