Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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, KasiyA, psusi Nov 22 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.

4 Answers 4

up vote 7 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

http://pve.proxmox.com/wiki/Main_Page

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

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.

Edit:

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

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 OpenVZ....in 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

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

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