lxc template ubuntu fails on first run: command get_init_pid failed to receive response

Bug #1257109 reported by Adam Ryczkowski on 2013-12-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Mint

Bug Description

How to reproduce:

1. Install Mint 16 Cinnamon
2. Open terminal

$ sudo su
$ apt-get install lxc lxc-templates
$ lxc-create -t ubuntu -n my-container
$ lxc-start -d -n my-container
lxc-start: command get_init_pid failed to receive response

When replacing the last line with "lxc-start -n my-container" I get different reply:
lxc-start: failed to spawn 'my-container'.

The problem is Mint-specific; the same steps works well on Ubuntu 13.10 (no need for install the lxc-templates, it is already in dependencies for lxc)

Install the missing dependencies. Do

sudo apt-get install bridge-utils cgroup-lite cloud-image-utils debootstrap distro-info distro-info-data euca2ools libaio1 libboost-thread1.53.0 liblxc0 librados2 librbd1 libseccomp1 python-boto python-distro-info python-m2crypto python3-lxc qemu-utils sharutils

Some of them are needed (I can't tell which, since the new Cinnamon 2.0's terminal is not shipped with the menu, where one can set the option to keep the log of all output; but that is a totally different story).

Tianon Gravi (tianon) wrote :

The culprit here would have to be cgroup-lite specifically, since that's in charge of the cgroup mounts, and that's how lxc-info finds the init pid.

We (Docker) had a user with a similar issue on Mint 16 and it was fixed by simply installing cgroup-lite.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers