Hi List,<div><br></div><div>I saw there was a call for a nice frontend over the lxc commands, and I needed one, so Martyn Smith and I have come up with lxc-simple [0].</div><div><br></div><div>Quoting the docs:</div><div><div>

"lxc-simple wraps around the low-level commands for controlling linux containers, to</div><div>make it easier to manage containers for the common case - which is creating</div><div>containers that work in a similar fashion to vservers or jails."</div>

<div><br></div><div>Synopsis:</div><div><div>     lxc [name] create [-u] --template=[lucid|maverick|etc...]</div><div>     lxc [name] destroy</div><div>     lxc [name] start|stop|restart</div><div>     lxc [name] enter</div>

<div>     lxc [name] console</div><div>     lxc status</div></div><div><br></div><div>It's very rough, however it's a starting point. We'd very much like feedback on it. In particular, we'd like to know if it looks like a reasonable implementation/approach that could be part of lxc upstream? If not, how could it be adjusted to suit?</div>

<div><br></div><div>Some notes:</div><div>- alpha quality; might eat your face; bla bla bla</div><div>- The program interface, including order of arguments, is largely inspired by vserver, as that's what we've used up until recently</div>

<div>- Tested working on maverick & natty; no other platforms tested</div><div>- Read the README.md, it has setup instructions you need to follow for now, although Martyn is working on removing all the networking ones</div>

<div>- Related to the above: we implemented 'enter' (which gives you a shell in a container) not with lxc-attach, which still appears to be broken, but with ssh and various networking/ssh config trickery. It does work, but requires the network setup stuff mentioned in the README for now. Martyn has plans to do the setup automatically without affecting the host networking, and of course when lxc-attach works, we can implement 'enter' using that.</div>

<div>- There is some mention in the docs of using puppet to configure the containers. None of that is implemented, so don't be scared. I'd like more input on that idea though, if anyone has any thoughts.</div><div>

<br></div><div>All thoughts, ideas and testing welcome!</div><div><br></div><div>[0] <a href="https://github.com/nigelmcnie/lxc-simple">https://github.com/nigelmcnie/lxc-simple</a></div><br>-- <br>Regards,<br>Nigel McNie<br>

<a href="http://nigel.mcnie.name/" target="_blank">http://nigel.mcnie.name/</a> | +64 27 469 6038 | <a href="http://twitter.com/nigelmcnie" target="_blank">http://twitter.com/nigelmcnie</a> | <a href="http://about.me/nigel" target="_blank">http://about.me/nigel</a><br>

My latest blog post: <a href="http://nigel.mcnie.name/blog/fixing-website-performance-issues-page-request-theory">http://nigel.mcnie.name/blog/fixing-website-performance-issues-page-request-theory</a><br>
</div>