[lxc-users] busybox template in ubuntu 14.04 fails to install /usr/sbin/init.lxc?
Dan Kegel
dank at kegel.com
Sun May 11 18:25:49 UTC 2014
This has probably been raised before, but unless you copy in init.lxc
manually, e.g.
sudo cp /usr/sbin/init.lxc /var/lib/lxc/busybox/rootfs/usr/sbin/
the commands
sudo lxc-create -n busybox -t busybox
sudo lxc-execute -n busybox -- top
will create the container, but fail on execute with the confusing message
lxc-execute: Failed to find an lxc-init
By contrast, starting the container worked fine:
sudo lxc-start -n busybox
...
Please press Enter to activate this console
/ # top
...
/ # halt
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system halt
$
More information about the lxc-users
mailing list