new created ubuntu machines result in: "init: Unable to listen for private connections: Failed to bind socket "/com/ubuntu/upstart": Address already in use

Bug #884428 reported by Lars Heer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Invalid
High
Unassigned

Bug Description

Created new machine with:
lxc-create -n test -t ubuntu -- -r oneiric

The machine hangs on lxc-start with the message.

lars@wiesel:~$ ps -elf | grep lxc-star[t]
4 S root 28932 31912 0 80 0 - 596 ep_pol 22:10 pts/8 00:00:00 lxc-start -n test
lars@wiesel:~$ pstree -p 28932
lxc-start(28932)───init(28933)─┬─plymouthd(28944)
                               └─ureadahead(28948)

Old lxc containers still working.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: lxc 0.7.5-0ubuntu8
ProcVersionSignature: Ubuntu 3.0.0-12.21~ppa3~loms~oneiric-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Mon Oct 31 22:04:19 2011
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to oneiric on 2011-09-13 (48 days ago)

Revision history for this message
Lars Heer (l-heer) wrote :
description: updated
Changed in lxc (Ubuntu):
importance: Undecided → High
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to report this bug.

Is the command in the description exactly the command you used, or did you specify a config file with '-f'? If you specified a config file, can you paste it here?

If you did not specify a config file, then you shoudl have seen a warning like:

=====================================================================
Warning:
-------
Usually the template option is called with a configuration
file option too, mostly to configure the network.
eg. lxc-create -n foo -f lxc.conf -t debian
The configuration file is often:

lxc.network.type=macvlan
lxc.network.link=eth0
lxc.network.flags=up

or alternatively:

lxc.network.type=veth
lxc.network.link=br0
lxc.network.flags=up

For more information look at lxc.conf (5)

At this point, I assume you know what you do.
Press <enter> to continue ...
=====================================================================

Such a container indeed will fail to start because it will not have
a network configuration, and therefore not create a new network
namespace, so that the container's upstart shares abstract unix sockets
with the host's. It's reasonable for certain containers, but not
supported with a full ubuntu container.

Changed in lxc (Ubuntu):
status: New → Incomplete
Revision history for this message
Lars Heer (l-heer) wrote :

Hi Serge,

adding the network interface fixed it.

Sorry... but I thought that it should be possible to start a machine without a network interface connected to it...

Tanks,

Lars

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

If you want a container with no network interface at all, then you can place the following into your config:

lxc.network.type = empty

That will create an empty private network namespace. However what you cannot do (due to how upstart works) is have a full ubuntu container sharing the network interface with the host.

Changed in lxc (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.