Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As an alternative to Virtualizing several Ubuntu Servers im looking into the possibility of using containers. But I am not sure if I should go for OpenVZ or LXC. Can anyone recommend one of them, or maybe list pros and cons?

share|improve this question

closed as primarily opinion-based by Eric Carvalho, guntbert, Charles Green, Afshin Hamedi, psusi Nov 22 '14 at 0:11

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 11 down vote accepted

Personally I find LXC is in rapid development and documentation lags.

I personally use openvz on "production servers" and do not think LXC is yet mature enough to use in "production".

I suggest you look at proxmox

Offers a Debian host, web interface, and KVM and openvz. They are planning to use LXC once they consider it stable.

enter image description here

share|improve this answer
Any updates on this? – muru Dec 9 '14 at 10:07
@muru I still feel LLC is not ready for production, and when it is I still plan to use Proxmox – bodhi.zazen Dec 9 '14 at 23:57
Proxmox now uses lxc – bodhi.zazen Oct 17 '15 at 20:28
If you see Proxmox forum then there are many bugs on LXC implementation here, Need more time to make LXC more stable. Also I read LXC security issue here: – Wendy William Feb 9 at 14:27
@WendyWilliam - IMHO those are long standing issues with LXC. IMHO documentation lags in LXC, the isolation is not as great as other options leading to security issues . IMHO LXC is not ready for production, I still prefer openvz or KVM. – bodhi.zazen Feb 9 at 16:04

From what I can tell LXC has some advantages like being available on the Linux kernel (so you don't need a special kernel to use it). From the other side, OpenVZ supports live migration.

You will have to check the capabilities of each tool and see which ones are most important to you.


You can find here a short review of the capabilities of each own.

Update for OpenVZ 4:

As of OpenVZ 4, you can run OpenVZ on a stock Linux 3.0 kernel. OpenVZ still benefits from it's own kernel; there are some OpenVZ kernel specific features.

share|improve this answer

This is a 1 year old question, but in view of changes in the playing field I would add my 2 cents.

I would recommend that for containerization people should look at Docker. It is built on top of LXC (and other tools) and provides extensive tooling for container building, maintenance, distribution, and upgrade. As well, there is a fairly large community around it.

One notable difference is that Docker promotes "single-process containers" as opposed to the traditional use of LXC which is more of a light-weight fully fledged virtual machine. This requires some adjustment in thinking, but it has its benefits.

share|improve this answer

I find it curious that there is all this sudden interest in LXC when the much more mature OpenVZ platform has been doing this very successfully for many years. LXC is actually a derivative of OpenVZ for the mainline kernel so it's not some new idea. Booting from different kernels has always been trival so I don't see why that would be an issue with using OpenVZ. I guess some people are not comfortable using a non-mainline kernel and maybe think newer things are sexier.

LXC will probably eventually replace 10 years. It's no where near ready yet. Not even for bleeding edge development unless you don't mind missing features, spotty documentation, lack of 'internet experience' (ie. built up knowledge base that is found by doing internet searches).

In another year or two when it is more feature complete and there is more of a knowledgebase it will probably be ready for some offline non-critical things. However, doing an internet search, people were saying that about it a year ago and it's still not there yet imho.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.