D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] LXC to the rescue...

 


So a few weeks ago I started to experiment with LXC with a view to building a virtualised PBX product (something my resellers are after). My experiments and tests have gone really well and I'm building a pair of new systems to to run this on up in the co-lo...

But this week I had a server up there go bad. Random stops - the worst kind. Nothing in the logs nor console )-: Turns out to be an intermittent memory problem. The problem is compounded by the fact that there also seems to be another motherboard/bios issue as it won't remember the BIOS settings (even with a new battery), so a remote power cycle leaves it turned off, waiting for a human to push the on-button (OK through the day, but not OK at midnight when I have to pay a call-out fee )-: I think basically the mobo is knackered...

Anyway, it's not a terribly busy server at all - runs a semi custom LAMPy type application for a single client, but it's an older version of PHP & MySQL and didn't migrate to one of my newer servers without several things breaking, so I took the plunge to re-configure an existing server with a new kernel and all the LXC stuff enabled and move the entire old server over into a container in this server...

And I have to say; it's worked a charm! New server is Debian Lenny, old is Etch, so Etch is effectively running inside a container on a Lenny host - and to the outside it's indistinguishable from the real server. A few differences when you ssh into it on the ps list, and filesystems, but other than that, it's as it if were on the old box. It has it's own network stack too, so it's own firewall rules as required by my customer.

So I'm happy - my client is happy and LXC seems to work!

What I need to find out about now is fine-tuning LXC containers - limiting CPU usage and so on - and there doesn't seem to be too much documentation about that yet - time to do more digging!

Cheers,

Gordon

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html