[Lxc-users] Ubuntu (maverick) container won't start (hangs at init)
Marat BN
maratbn at gmail.com
Mon Mar 5 06:37:23 UTC 2012
Daniel Lezcano <daniel.lezcano at ...> writes:
>
> On 12/29/2010 11:44 AM, Thomas Schweikle wrote:
> > Hi!
> >
> > After setting up an ubuntu container (maverick, 10.10). I tried to
> > start it --- but: it just hangs at init after doing
> >
> > lxc-start -n cnt
> >
> > I followed the instructions given at:
> >
> > http://lxc.teegra.net/
> > https://help.ubuntu.com/community/LXC
> > http://blog.bodhizazen.net/linux/lxc-configure-ubuntu-lucid-containers/
> > https://www.ibm.com/developerworks/linux/library/l-lxc-containers/
> >
> > but without any success. The container still hangs at init when started.
> >
> > I've upgraded to lxc-tools 0.7.3: same problem. I've recreated the
> > container from scratch using
> >
> > lxc-ubuntu -p /lxc
> > debootstrap --variant=minbase --arch x86_64 maverick rootfs.ubuntu
> >
> > removed all scripts within /etc/init in the container, modified
> > rc.sysinit as given, removed all unnecessary devices, added all
> > necessary ones, created the config file, then created the container,
> > started it and --- frustratingly it hangs running init.
> >
> > Any idea where to look next?
> >
>
> After launching the container, what does show the "lxc-ps --lxc" command ?
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
>
In my experience with Ubuntu 11.10, the Ubuntu LXC guest was temporarily stuck
waiting for a response from a DHCP server that I did not have enabled on my host.
I went into /etc/network/interfaces on the guest, and commented out this line:
iface eth0 inet dhcp
(To make it not try to gets its IP via DHCP.)
After that the LXC guest started in a jiffy.
Of course I assign an IP address in the config file for my guest. The syntax
I'm using for that is:
lxc.network.ipv4 = 192.168.43.10/24
-- Marat
More information about the lxc-users
mailing list