The original script created the ephemeral container, started it with lxc-start, then ssh'd to it.
I wonder if it would suffice to create the ephemeral container, then run the specified command in it with lxc-execute, rather than using lxc-start. That would mean the upstart jobs would not start however.
The original script created the ephemeral container, started it with lxc-start, then ssh'd to it.
I wonder if it would suffice to create the ephemeral container, then run the specified command in it with lxc-execute, rather than using lxc-start. That would mean the upstart jobs would not start however.
Would that suffice for your use case?