[Lxc-users] lxc-execute-ephemeral?

Serge Hallyn serge.hallyn at canonical.com
Fri Aug 24 03:03:56 UTC 2012


BTW, note also that you can use lxc-clone with an lvm backed pristine
container to create snapshotted containers, which are created as fast
as an ephemeral container.

Quoting Dan Kegel (dank at kegel.com):
> On Thu, Aug 23, 2012 at 12:16 PM, Dan Kegel <dank at kegel.com> wrote:
> > I had to reboot (lxc-stop wasn't enough?) and do lxc-destroy to get
> > rid of the ephemeral container.
> 
> ^C, ps augxw | grep lxc.*temp
> and then lxc-stop suffice, no reboot needed.
> 
> What I'm leaning towards now is:
> at the start of a build, use lxc-start-ephemeral -d to start the
> ephemeral container,
> then (until I figure out a better way to do things) use schroot repeatedly
> to execute the build's commands inside the ephemeral chroot (but not contained);
> then when the build is over, use lxc-stop to get rid of the ephemeral container.
> 
> I know, using schroot is very wrong, but it might do just barely enough,
> and I don't know how to execute a series of command in an
> already-started ephermeral container.
> - Dan




More information about the lxc-users mailing list