[Bug 1171464] [NEW] lxc-execute fails with error Failed to find an lxc-init
Public bug reported: $ sudo lxc-info -n raring state: STOPPED pid:-1 $ sudo lxc-execute -n raring -- true lxc-execute: Failed to find an lxc-init lxc-execute: invalid sequence number 1. expected 4 lxc-execute: failed to spawn 'raring' $ dpkg -l lxc|grep lxc-init || echo not found not found $ ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: lxc 0.9.0-0ubuntu3 ProcVersionSignature: Ubuntu 3.8.0-19.29-generic 3.8.8 Uname: Linux 3.8.0-19-generic i686 NonfreeKernelModules: nvidia ApportVersion: 2.9.2-0ubuntu8 Architecture: i386 Date: Mon Apr 22 14:32:05 2013 InstallationDate: Installed on 2010-10-21 (914 days ago) InstallationMedia: Ubuntu 10.10 Maverick Meerkat - Release i386 (20101007) MarkForUpload: True ProcEnviron: TERM=xterm PATH=(custom, no user) XDG_RUNTIME_DIR=set LANG=C SHELL=/bin/bash SourcePackage: lxc UpgradeStatus: Upgraded to raring on 2012-12-20 (122 days ago) ** Affects: lxc (Ubuntu) Importance: Undecided Status: New ** Tags: apparmor apport-bug i386 raring -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1171464 Title: lxc-execute fails with error Failed to find an lxc-init To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1171464/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 1171464] [NEW] lxc-execute fails with error Failed to find an lxc-init
Thanks for taking the time to report this bug. However, in order to use lxc-execute, you must install lxc-init in the container, by chrooting into or lxc-starting the container, and doign apt-get install --no-install-recommends lxc After that, lxc-execute with a noninteractive command should succeed. If it does not, please re-open this bug. Note there is a currently known bug in that lxc-execute of a shell will freeze your terminal. (Note also that you can start the container in daemon mode and use lxc-attach or lxc-console to connect to the runnign container, which tends to be better tested so far.) status: invalid ** Changed in: lxc (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1171464 Title: lxc-execute fails with error Failed to find an lxc-init To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1171464/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs