[lxc-devel] lxc-execute only finds lxc-init when lxc-init is manually populated inside of the container
Stéphane Graber
stgraber at ubuntu.com
Wed Mar 26 21:13:19 UTC 2014
On Wed, Mar 26, 2014 at 05:08:31PM -0400, Peter Fedorow wrote:
> How to Reproduce
> ----------------
> 1. lxc-create -n test1 -t ubuntu
> 2. lxc-execute -n test1 -- /bin/bash
>
> Fails:
> lxc-execute: Failed to find an lxc-init
>
> 3. lxc-start -n test1 -d
> 4. lxc-console -n test1
> 5. login
> 6. sudo apt-get install lxc
> 7. sudo shutdown -h now
> 8. lxc-execute -n test1 -- /bin/bash
>
> Success!
>
>
> LXC Versions Tested
> -------------------
> Ubuntu automatic upstream - 1.0.1+master~20140326-1500-0ubuntu1~ppa1~saucy1
> Ubuntu Trusty - 1.0.1-0ubuntu1
> Ubuntu 13.10 - 1.0.0~alpha1-0ubuntu14.1
>
> OS
> --
> $ lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 13.10
> Release: 13.10
> Codename: saucy
> $ uname -a
> Linux bigserver 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:11:14
> UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>
>
> Additional Notes
> ----------------
>
> Installing the binary is a work-around for 64-bit, there is no
> obvious work-around for 32-bit containers on a 64-bit host.
>
> This is not the same as bug #22. The library is being found, but it
> needs to be loaded from outside of the container's rootfs.
> Providing the binary alone inside of the container is insufficient
> unless the binary is statically linked and 32-bit compatible.
>
>
> Regards,
> Peter Fedorow
lxc-execute depends on lxc-init being available in the container rootfs,
just like lxc-start depends on /sbin/init being available in the
container rootfs.
So to use lxc-execute, you just need to make sure whatever package
provides lxc-init (in Ubuntu's case, lxc itself) is installed inside the
rootfs before you use lxc-execute.
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140326/0fb1cac9/attachment.pgp>
More information about the lxc-devel
mailing list