lxc template ubuntu fails on first run: command get_init_pid failed to receive response
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned |
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)
Walkaround:
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-
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).
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.