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
$
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to